Skip to content

Commit

Permalink
ci: using circleci machine executor for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Aug 6, 2019
1 parent 4c8df5e commit e8eac51
Showing 1 changed file with 12 additions and 33 deletions.
45 changes: 12 additions & 33 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,19 @@
version: 2
version: 2.1
orbs:
aws-ecr: circleci/[email protected]
jobs:
build_10.15.3:
tests:
docker:
- image: 'circleci/node:10.15.3'
working_directory: ~/app
- image: bayesimpact/circleci
working_directory: /adonis-lucid
steps:
- checkout
- restore_cache:
keys:
- 'v1-dependencies-{{ checksum "package.json" }}'
- v1-dependencies-
- run: npm install
- save_cache:
paths:
- node_modules
key: 'v1-dependencies-{{ checksum "package.json" }}'
- run: npm test
build_latest:
docker:
- image: 'circleci/node:latest'
working_directory: ~/app
steps:
- checkout
- restore_cache:
keys:
- 'v1-dependencies-{{ checksum "package.json" }}'
- v1-dependencies-
- run: npm install
- save_cache:
paths:
- node_modules
key: 'v1-dependencies-{{ checksum "package.json" }}'
- run: npm test
- setup_remote_docker
- run:
name: Run tests
command: docker-compose run -e "ENV_PATH=.env.testing" --rm test
workflows:
version: 2
version: 2.1
workflow:
jobs:
- build_10.15.3
- build_latest
- tests

0 comments on commit e8eac51

Please sign in to comment.