Skip to content

Commit 3724a1a

Browse files
committed
faster test workflow
1 parent d4e4652 commit 3724a1a

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ after_script:
1818
- npm run update-coveralls
1919
- npm run check-coverage
2020

21+
script:
22+
- npm run mocha
23+
2124
notifications:
2225
email:
2326
on_success: never

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
redis:
22
image: redis
33

4-
miniprofiler:
4+
test:
55
image: node
66
volumes:
77
- .:/usr/src/miniprofiler
88
links:
99
- redis
1010
working_dir: /usr/src/miniprofiler
11-
command: bash -c "npm install && npm test"
11+
command: npm run mocha

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
"main": "lib/miniprofiler.js",
66
"scripts": {
77
"lint": "eslint .",
8-
"test": "mocha tests/ -c",
9-
"test:watch": "mocha tests/ -c --watch",
8+
"stop-services": "docker-compose stop",
9+
"test": "docker-compose up test",
10+
"mocha": "mocha tests/ -c",
1011
"coverage": "istanbul cover ./node_modules/mocha/bin/_mocha -- tests/ -R spec",
1112
"check-coverage": "istanbul check-coverage --statements 70 --branches 70 --functions 70 --lines 70",
1213
"update-coveralls": "cat coverage/lcov.info | node ./node_modules/coveralls/bin/coveralls.js"

0 commit comments

Comments
 (0)