Skip to content

Commit

Permalink
#30 - Created test step for backend in circle ci.
Browse files Browse the repository at this point in the history
  • Loading branch information
douglascvas committed Sep 4, 2018
1 parent 041925f commit 5e1b465
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
- run:
name: Deploy to S3
command: aws s3 sync /tmp/build/ s3://carpal-ui-rides-dev/ --delete
services-deploy:
services-build:
docker:
- image: circleci/node:7.10
working_directory: ~/carpal/backend/src
Expand All @@ -67,6 +67,18 @@ jobs:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
services-deploy:
docker:
- image: circleci/node:7.10
working_directory: ~/carpal/backend/src
steps:
- checkout:
path: ~/carpal
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run: ./writeSecrets.sh
- run: npm run deploy-sls
workflows:
Expand All @@ -80,6 +92,7 @@ workflows:
filters:
branches:
only: master
- services-build
- services-deploy:
filters:
branches:
Expand Down

0 comments on commit 5e1b465

Please sign in to comment.