Skip to content

Commit

Permalink
#30 - Updated aws endpoints.
Browse files Browse the repository at this point in the history
#30 - Fixed merge conflicts.
#30 - Moved test line in circleci config.
#30 - Created test step for backend in circle ci.
#30 - Added mysql database to circleci
#30 - Initialising mysql in circleci
#30 - Bumped node version.
  • Loading branch information
douglascvas committed Sep 5, 2018
1 parent 1128ade commit 28aea17
Show file tree
Hide file tree
Showing 23 changed files with 2,369 additions and 106 deletions.
32 changes: 25 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ version: 2
jobs:
ui-build:
docker:
- image: circleci/node:7.10
- image: circleci/node:8.10

working_directory: ~/carpal/frontend

Expand Down Expand Up @@ -49,10 +49,13 @@ 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/infrastructure/services
- image: circleci/node:8.10
- image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: admin
working_directory: ~/carpal/backend
steps:
- checkout:
path: ~/carpal
Expand All @@ -62,16 +65,31 @@ jobs:
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run: npm install
- run: npm run refresh-db
- run: npm test
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
services-deploy:
docker:
- image: circleci/node:8.10
working_directory: ~/carpal/backend
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
- run: npm run deploy-sls
workflows:
version: 2
ui-build-deploy:
application-build-deploy:
jobs:
- services-build
- ui-build
- ui-deploy:
requires:
Expand All @@ -82,4 +100,4 @@ workflows:
- services-deploy:
filters:
branches:
only: master
only: master
Loading

0 comments on commit 28aea17

Please sign in to comment.