Skip to content

Commit adbf336

Browse files
committed
⚒ fix travis script
1 parent 52317b1 commit adbf336

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ before_script:
1414
- npm i --no-save eslint@$ESLINT_VERSION; true
1515

1616
script:
17-
- if [ $ESLINT_VERSION = ^5.0.0 ]; then npm run lint; fi
18-
- npm test
17+
- if [ $ESLINT_VERSION = ^5.0.0 ]; then npm run -s lint; fi
18+
- npm run -s test:ci
1919

2020
after_success:
2121
- npm run codecov

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@
4444
"docs:watch": "vuepress dev docs",
4545
"lint": "eslint lib scripts tests",
4646
"pretest": "npm run -s lint",
47-
"test": "nyc mocha \"tests/lib/**/*.js\" --reporter dot --timeout 4000",
48-
"watch": "mocha \"tests/lib/**/*.js\" --reporter dot --timeout 4000 --watch --growl",
47+
"test": "nyc npm run -s test:mocha",
48+
"test:ci": "nyc npm run -s test:mocha",
49+
"test:mocha": "mocha \"tests/lib/**/*.js\" --reporter dot --timeout 4000",
50+
"watch": "npm run -s test:mocha -- --watch --growl",
4951
"coverage": "nyc report --reporter lcov && opener coverage/lcov-report/index.html",
5052
"codecov": "nyc report --reporter lcovonly && codecov"
5153
},

0 commit comments

Comments
 (0)