Skip to content

Commit

Permalink
ci: test circle-ci config (#7)
Browse files Browse the repository at this point in the history
* ci: test circle-ci config

* ci: test 2

* ci: fix syntax

* ci: fix gh user

* ci: fix gh user 2

* ci: test gh-pages branch

* ci: fix branch
  • Loading branch information
dviramontes authored Jul 12, 2019
1 parent af1daa1 commit 96aaccd
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 60 deletions.
36 changes: 36 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
version: 2.1
jobs:
build_test_deploy:
docker:
- image: circleci/node:10
steps:
- checkout
- restore_cache: # special step to restore the dependency cache
key: dependency-cache-{{ checksum "package.json" }}-{{ checksum "package-lock.json" }}
- run:
name: Setup Dependencies
command: npm install
- save_cache: # special step to save the dependency cache
key: dependency-cache-{{ checksum "package.json" }}-{{ checksum "package-lock.json" }}
paths:
- ./node_modules
- run: # run tests
name: Run Test
command: npm test
- run: # build amd deploy
name: Run deploy
command: |
git config --global user.email "[email protected]"
git config --global user.name "dviramontes"
npm run deploy
workflows:
version: 2
build_test_deploy:
jobs:
- build_test_deploy:
name: deploy
filters:
branches:
only:
- master
82 changes: 22 additions & 60 deletions package-lock.json

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

0 comments on commit 96aaccd

Please sign in to comment.