Created
January 29, 2019 21:05
-
-
Save jperata/83bf3758981bb550e9bcd40215debe30 to your computer and use it in GitHub Desktop.
Circle CI Configuration for GuessThePrice
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
version: 2 | |
jobs: | |
test: | |
docker: | |
- image: circleci/node:6 | |
steps: | |
- checkout | |
- run: npm install | |
- run: sudo npm install -g ask-cli | |
- run: sudo npm install -g bespoken-tools | |
- run: sudo npm install -g codecov | |
- run: | |
name: unit testing | |
command: bst test unit.*yml | |
- run: codecov | |
deploy-dev: | |
docker: | |
- image: circleci/node:6 | |
steps: | |
- checkout | |
- run: npm install | |
- run: sudo npm install -g ask-cli | |
- run: sudo npm install -g bespoken-tools | |
- run: | |
name: deploy | |
command: ./deploy.sh Dev | |
- run: bst test simulation.*yml | |
deploy-prod: | |
docker: | |
- image: circleci/node:6 | |
steps: | |
- checkout | |
- run: npm install | |
- run: sudo npm install -g ask-cli | |
- run: sudo npm install -g bespoken-tools | |
- run: | |
name: deploy | |
command: ./deploy.sh Prod | |
- run: bst test simulation.*yml | |
workflows: | |
version: 2 | |
test-n-deploy: | |
jobs: | |
- test: | |
filters: | |
tags: | |
only: /.*/ | |
- deploy-dev: | |
requires: | |
- test | |
filters: | |
tags: | |
only: /.*/ | |
branches: | |
only: master | |
- deploy-prod: | |
requires: | |
- test | |
filters: | |
tags: | |
only: /prod-.*/ | |
branches: | |
ignore: /.*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment