Skip to content

Instantly share code, notes, and snippets.

@jperata
Created January 29, 2019 21:05
Show Gist options
  • Save jperata/83bf3758981bb550e9bcd40215debe30 to your computer and use it in GitHub Desktop.
Save jperata/83bf3758981bb550e9bcd40215debe30 to your computer and use it in GitHub Desktop.
Circle CI Configuration for GuessThePrice
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