Skip to content
This repository was archived by the owner on May 4, 2019. It is now read-only.

Dev #192

Merged
merged 40 commits into from
Jul 5, 2018
Merged

Dev #192

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
03a8469
ci: add Circle config for testing, remove Travis
puregarlic Jun 25, 2018
3ff04e1
ci(circle): disable caching dependencies
puregarlic Jun 25, 2018
205bbde
fix(advanced-filter): fixed button sizing
Jun 27, 2018
e36a6e0
ci(circle): add install, test, build steps
puregarlic Jun 27, 2018
0c7180d
ci(circle): fix syntax error
puregarlic Jun 27, 2018
28b9806
ci(circle): fix cache env variable name
puregarlic Jun 27, 2018
89ee2fb
ci(circle): use circleci images
puregarlic Jun 27, 2018
6711891
ci(circle): use yaml syntax features
puregarlic Jun 27, 2018
84c55d3
ci(circle): use anchors for cache restoration
puregarlic Jun 27, 2018
a64a41d
ci(circle): remove broken save_cache
puregarlic Jun 27, 2018
0a0b0c7
ci: add link to yaml syntax info
puregarlic Jun 27, 2018
6b1a147
ci(config): reformat for readability
puregarlic Jun 27, 2018
26443d4
ci(circle): add storybook and typedoc output to workspace
puregarlic Jun 27, 2018
2e2e51a
fix(advanced-filter): button size fix for msedge
Jun 28, 2018
a3daff7
ci(circle): add docs deploy, beta release, latest release
puregarlic Jun 29, 2018
2aaf4be
Merge remote-tracking branch 'origin/dev' into setup/circleci
puregarlic Jun 29, 2018
b2a56f2
ci(tests): add junit test reporting
puregarlic Jun 29, 2018
1a08d3c
ci(circle): move node_modules from cache to workspace
puregarlic Jun 29, 2018
956c68d
ci(circle): fix syntax error
puregarlic Jun 29, 2018
e81357f
ci(circle): fix tslint command, test result paths
puregarlic Jun 29, 2018
fceae24
ci(circle): fix test results paths
puregarlic Jun 29, 2018
90a9134
ci(circle): remove coveralls job ID
puregarlic Jul 2, 2018
53dd52e
Merge pull request #188 from osu-cass/setup/circleci
tnoelcke Jul 2, 2018
a656489
feat(item search): added default selection for grades
tnoelcke Jul 2, 2018
566c019
feat(item search): default selection for grades dropdown
tnoelcke Jul 2, 2018
57433eb
chore(package file): update package file
tnoelcke Jul 2, 2018
b11084f
feat(filter): reset button causes filter to reset to correct state
tnoelcke Jul 3, 2018
3faed07
Merge branch 'dev' of https://github.com/osu-cass/sb-components into …
Jul 3, 2018
93d5603
fix(rubrictable): specify css properties
Jul 3, 2018
a1b2a6b
fix(itemtablecontainer): grid sorts individually
Jul 3, 2018
da5fe3f
chore(snapshot tests): updated snapshot tests
Jul 3, 2018
2334a08
Merge pull request #191 from osu-cass/fix/column-sort
tnoelcke Jul 3, 2018
5bad775
Merge branch 'dev' into feat/fix-grade-select
tnoelcke Jul 3, 2018
5e10958
Merge branch 'dev' into feat/fix-filter-reset
tnoelcke Jul 3, 2018
3e859fd
Merge pull request #189 from osu-cass/feat/fix-grade-select
tnoelcke Jul 3, 2018
82ea2b4
Merge branch 'dev' into feat/fix-filter-reset
tnoelcke Jul 3, 2018
3e8585d
Merge pull request #190 from osu-cass/feat/fix-filter-reset
tnoelcke Jul 3, 2018
0dd68ec
fix(item card condensed): now 1 click to redirect
Jul 3, 2018
a343cc0
Merge branch 'fix/more-like-this' of https://github.com/osu-cass/sb-c…
Jul 3, 2018
0b83efd
Merge pull request #193 from osu-cass/fix/more-like-this
tnoelcke Jul 3, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
209 changes: 209 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,209 @@
# Confused about syntax? Read this:
# >> https://blog.daemonl.com/2016/02/yaml.html

defaults: &defaults
working_directory: ~/repo
docker:
- image: circleci/node:latest

version: 2
jobs:
checkout_code:
<<: *defaults
steps:
- checkout
- save_cache:
key: v1-repo-{{ .Environment.CIRCLE_SHA1 }}
paths:
- ~/repo

install_dependencies:
<<: *defaults
steps:
- restore_cache: &repo
key: v1-repo-{{ .Environment.CIRCLE_SHA1 }}
- run: npm ci
- persist_to_workspace:
root: ~/repo
paths:
- node_modules

unit_tests:
docker:
- image: circleci/node:latest
environment:
COVERALLS_SERVICE_NAME: circle-ci
COVERALLS_REPO_TOKEN: $COVERALLS_REPO_TOKEN
working_directory: ~/repo
steps:
- restore_cache: *repo
- attach_workspace:
at: ~/repo
- run:
name: Execute Jest unit tests
command: npm run test-ci:prod
- run:
name: Report test coverage to Coveralls
command: npm run report-coverage
- store_test_results:
path: reports
- store_artifacts:
path: reports/jest

lint_typescript:
<<: *defaults
steps:
- restore_cache: *repo
- attach_workspace:
at: ~/repo
- run:
name: Run TSLint against sourcefiles
command: mkdir reports ; mkdir reports/tslint ; npm run lint-ts-ci
- store_test_results:
path: reports
- store_artifacts:
path: reports/tslint

build_webpack:
<<: *defaults
steps:
- restore_cache: *repo
- attach_workspace:
at: ~/repo
- run:
name: Test that the bundle builds correctly
command: npm run webpack:prod

build_storybook:
<<: *defaults
steps:
- restore_cache: *repo
- attach_workspace:
at: ~/repo
- run:
name: Test that storybook builds correctly
command: npm run storybook-publish
- persist_to_workspace:
root: ~/repo
paths:
- gh-site/storybook
- gh-site/lib

build_typedoc:
<<: *defaults
steps:
- restore_cache: *repo
- attach_workspace:
at: ~/repo
- run:
name: Test that typedoc builds correctly
command: npm run typedoc-publish
- persist_to_workspace:
root: ~/repo
paths:
- gh-site/tsdoc

deploy_docs:
docker:
- image: circleci/node:latest
environment:
SOURCE_BRANCH: master
TARGET_BRANCH: gh-pages
working_directory: ~/repo
steps:
- restore_cache: *repo
- attach_workspace:
at: ~/repo
- run:
name: Upload docs to GitHub Pages
command: |
if [ $CIRCLE_BRANCH == $SOURCE_BRANCH ]; then
git config --global user.email $GH_EMAIL
git config --global user.name $GH_NAME

git clone $CIRCLE_REPOSITORY_URL out

cd out
git checkout $TARGET_BRANCH || git checkout --orphan $TARGET_BRANCH
git rm -rf .
cd ..

cp -a gh-site/. out/.

mkdir -p out/.circleci && cp -a .circleci/. out/.circleci/.
cd out

git add -A
git commit -m "Automated deployment to GitHub Pages ${CIRCLE_SHA1}" --allow-empty

git push origin $TARGET_BRANCH
fi

release_beta:
<<: *defaults
steps:
- restore_cache: *repo
- attach_workspace:
at: ~/repo
- run:
name: Deploy beta dist-tag to npm
command: npx semantic-release -b staging

release_latest:
<<: *defaults
steps:
- restore_cache: *repo
- attach_workspace:
at: ~/repo
- run:
name: Create NPM credential file
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
- run:
name: Promote beta tag to latest
command: npm dist-tag add @osu-cass/sb-components@$(npm dist-tag ls @osu-cass/sb-components | grep 'beta' | grep -Po '\d+\.\d+\.\d+') latest

workflows:
version: 2
build_test_deploy:
jobs:
- checkout_code
- install_dependencies:
requires:
- checkout_code
- unit_tests:
requires:
- install_dependencies
- lint_typescript:
requires:
- install_dependencies
- build_webpack:
requires:
- unit_tests
- build_storybook:
requires:
- unit_tests
- build_typedoc:
requires:
- unit_tests
- deploy_docs:
requires:
- build_storybook
- build_typedoc
filters:
branches:
only: master
- release_beta:
requires:
- build_storybook
- build_typedoc
filters:
branches:
only: staging
- release_latest:
requires:
- build_storybook
- build_typedoc
filters:
branches:
only: master

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ storybuild
storybook-static
coverage
gh-site/tsdoc
gh-site/storybook
gh-site/storybook
reports
63 changes: 0 additions & 63 deletions .travis.yml

This file was deleted.

68 changes: 64 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading