-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
28 changed files
with
2,111 additions
and
372 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
version: 2 | ||
|
||
jobs: | ||
test: | ||
docker: | ||
- image: node:8.15.1-stretch | ||
working_directory: ~/hetmech-frontend | ||
steps: | ||
- checkout | ||
- run: | ||
name: Frontend tests | ||
command: | | ||
npm install | ||
npm test | ||
npm run build | ||
- persist_to_workspace: | ||
root: ~/hetmech-frontend | ||
paths: | ||
- .git | ||
- build | ||
|
||
deploy: | ||
docker: | ||
- image: node:8.15.1-stretch | ||
working_directory: ~/hetmech-frontend | ||
steps: | ||
- attach_workspace: | ||
at: ~/hetmech-frontend | ||
- run: | ||
name: Install and configure dependencies | ||
command: | | ||
npm install --global --silent [email protected] | ||
- add_ssh_keys: | ||
fingerprints: | ||
- "d5:47:d4:c3:01:e8:51:b1:6e:9a:80:39:8b:ae:cc:77" | ||
- run: | ||
name: Deploy build to gh-pages branch | ||
command: | | ||
echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config | ||
touch build/.nojekyll # Disable Jekyll processing on GitHub Pages | ||
gh-pages --dist build \ | ||
--user "CircleCI Deploy Job <[email protected]>" \ | ||
--message \ | ||
"Deploy webpage on `date --utc --iso-8601` | ||
Builds https://github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/commit/$CIRCLE_SHA1 | ||
Pushed by $CIRCLE_BUILD_URL | ||
[skip ci]" | ||
workflows: | ||
version: 2 | ||
build: | ||
jobs: | ||
- test: | ||
filters: | ||
branches: | ||
ignore: gh-pages | ||
- deploy: | ||
requires: | ||
- test | ||
filters: | ||
branches: | ||
only: master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
|
||
# testing | ||
/coverage | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.