Skip to content

Commit 4a9b296

Browse files
committed
Chore: Yarn → npm 5
1 parent 26a45bf commit 4a9b296

File tree

3 files changed

+8023
-7514
lines changed

3 files changed

+8023
-7514
lines changed

.travis.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,18 @@ language: node_js
22
node_js:
33
- 4
44
- 6
5-
- 7
5+
- 8
66
cache:
7-
yarn: true
87
directories:
9-
- $HOME/.npm
8+
- node_modules
109
- travis_phantomjs
1110
env:
1211
# Test everything in Webpack 1 and 2
1312
- export WEBPACK_VERSION="2"
1413
- export WEBPACK_VERSION="1"
1514
before_install:
15+
# Upgrade npm
16+
- if [[ `npm -v` != 5* ]]; then npm install -g npm@latest; fi
1617
# Upgrade PhantomJS
1718
- |
1819
export PHANTOMJS_VERSION=2.1.1
@@ -26,36 +27,35 @@ before_install:
2627
phantomjs -v
2728
before_script:
2829
# Manually install Webpack 1 or 2
29-
- if [ "$WEBPACK_VERSION" == "1" ]; then yarn add webpack@1; fi
30-
- yarn list webpack
30+
- if [ "$WEBPACK_VERSION" == "1" ]; then npm install --no-save webpack@1; fi
31+
- npm list webpack
3132
script:
3233
# Run lint
33-
- yarn list eslint-plugin-react
34-
- yarn run lint
34+
- npm run lint
3535
# Run tests
3636
- |
37-
if [[ "$TRAVIS_NODE_VERSION" =~ ^(4|5)$ ]]; then
37+
if [[ "$TRAVIS_NODE_VERSION" == "4" ]]; then
3838
NODE_ENV=test node --harmony-proxies $(npm bin)/jest --runInBand
3939
else
40-
if [[ "$TRAVIS_NODE_VERSION" == "7" && "$WEBPACK_VERSION" == "2" ]]; then
41-
yarn run test:coverage -- --runInBand
40+
if [[ "$TRAVIS_NODE_VERSION" == "8" && "$WEBPACK_VERSION" == "2" ]]; then
41+
npm run test:coverage -- --runInBand
4242
else
43-
yarn run test:jest -- --runInBand
43+
npm run test:jest -- --runInBand
4444
fi
4545
fi
4646
# Build all examples
47-
- yarn run build
48-
- yarn run build:customised
49-
- yarn run build:sections
47+
- npm run build
48+
- npm run build:customised
49+
- npm run build:sections
5050
# Check that examples really works: no JS errors on load
51-
- yarn run phantomjs
52-
- yarn run phantomjs:customised
53-
- yarn run phantomjs:sections
51+
- npm run phantomjs
52+
- npm run phantomjs:customised
53+
- npm run phantomjs:sections
5454
after_success:
5555
# Make release with semantic-release if needed
5656
- npm run semantic-release
5757
- |
58-
if [[ "$TRAVIS_NODE_VERSION" == "7" && "$WEBPACK_VERSION" == "2" ]]; then
58+
if [[ "$TRAVIS_NODE_VERSION" == "8" && "$WEBPACK_VERSION" == "2" ]]; then
5959
# Upload coverage report to Codecov
6060
bash <(curl -s https://codecov.io/bash)
6161
# Update site

0 commit comments

Comments
 (0)