Skip to content

Commit

Permalink
Use docker only for local testing
Browse files Browse the repository at this point in the history
  • Loading branch information
kjellmorten committed Mar 28, 2018
1 parent 500cc89 commit f03c6ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker-compose-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3.1'
services:
tests:
build: .
command: npm run test:once
command: npm run test
tty: true
volumes:
- .:/usr/app/
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"license": "ISC",
"scripts": {
"start": "node index.js",
"test": "npm run lint && docker-compose -f docker-compose-test.yml up --abort-on-container-exit",
"test": "nyc --reporter=text-summary ava",
"test:teardown": "docker-compose -f docker-compose-test.yml down",
"test:once": "nyc --reporter=text-summary ava",
"test:local": "npm run lint && docker-compose -f docker-compose-test.yml up --abort-on-container-exit",
"test:watch": "ava --watch",
"dev": "docker-compose -f docker-compose-dev.yml up && exit 0",
"dev:teardown": "docker-compose -f docker-compose-dev.yml down",
Expand Down

0 comments on commit f03c6ab

Please sign in to comment.