Skip to content

Commit de9b539

Browse files
committed
Use npm on travis-ci.
We are having some caching issues with yarn and chromedriver.
1 parent b40388c commit de9b539

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

.travis.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,13 @@ node_js:
1111
- "4"
1212
- "6"
1313
cache:
14-
yarn: true
1514
directories:
1615
- node_modules
17-
install:
18-
- curl -o- -L https://yarnpkg.com/install.sh | bash
19-
- export PATH=$HOME/.yarn/bin:$PATH
20-
- yarn --ignore-engines
21-
before_script:
16+
before_install:
17+
- rm yarn.lock
2218
- export DISPLAY=:99.0
2319
- sh -e /etc/init.d/xvfb start
2420
- sleep 3
21+
script:
22+
- echo "No need to use npm test since it's done in the install section via 'npm prepublish'"
2523
after_script: npm run coveralls

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,15 @@
2323
},
2424
"scripts": {
2525
"build": "gulp",
26+
"release": "gulp release",
2627
"pretestonly": "chromedriver &",
2728
"testonly": "NODE_PATH=test/lib jest test/unit/*.test.js test/isolated/*.test.js test/integration/**/test/*.test.js",
2829
"posttestonly": "pkill chromedriver",
29-
"pretest": "npm run lint && NODE_ENV=test npm run prepublish",
30+
"pretest": "npm run lint && NODE_ENV=test npm run release",
3031
"test": "npm run testonly -- --coverage --forceExit",
3132
"coveralls": "nyc --instrument=false --source-map=false report --temp-directory=./coverage --reporter=text-lcov | coveralls",
3233
"lint": "standard 'bin/*' 'client/**/*.js' 'examples/**/*.js' 'lib/**/*.js' 'pages/**/*.js' 'server/**/*.js' 'test/**/*.js'",
33-
"prepublish": "npm run lint && gulp release && npm run testonly -- --forceExit",
34+
"prepublish": "npm run test && npm run release",
3435
"precommit": "npm run lint"
3536
},
3637
"standard": {

0 commit comments

Comments
 (0)