Skip to content

Commit db381ca

Browse files
committed
Change mocha reporter for CI
1 parent bb16473 commit db381ca

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

.github/run-test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ jobs:
1414
- name: Run the test
1515
run: |
1616
npm install
17-
npm test
17+
npm run test-ci

.travis.yml

+2
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ cache:
1414
- node_modules
1515

1616
sudo: false
17+
18+
script: npm run test-ci

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@
101101
"scripts": {
102102
"build": "uglifyjs src/ua-parser.js -o dist/ua-parser.min.js --comments '/UAParser\\.js/' && uglifyjs src/ua-parser.js -o dist/ua-parser.pack.js --comments '/UAParser\\.js/' --compress --mangle",
103103
"test": "jshint src/ua-parser.js && mocha -R nyan test/test.js",
104+
"test-ci": "jshint src/ua-parser.js && mocha -R spec test/test.js",
104105
"verup": "node ./node_modules/verup",
105106
"version": "node ./node_modules/verup 0"
106107
},

0 commit comments

Comments
 (0)