Skip to content

Commit

Permalink
Testing CI Wooork
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrei committed Jan 5, 2018
1 parent 86c8f2b commit caaae66
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ version: 2
jobs:
build:
docker:
# specify the version you desire here
- image: circleci/node:7.10

working_directory: ~/api-services
Expand All @@ -31,3 +30,35 @@ jobs:
- run: npm run ci:test
- run: npm run ci:coveralls
- run: npm run flow check

deploy-production:
docker:
- image: circleci/node:7.10
steps:
- run: echo 'Deploying production'
# run: npm install serverless
# run: ./node_modules/serverless/bin/serverless deploy -s staging

deploy-staging:
docker:
- image: circleci/node:7.10
steps:
- run: echo 'Deploying staging'

workflows:
version: 2
build_and_deploy:
jobs:
- build
- deploy-production:
requires:
- build
filters:
branches:
only: master
- deploy-staging:
requires:
- build
filters:
branches:
only: deploy

0 comments on commit caaae66

Please sign in to comment.