mirror of https://github.com/webpack/webpack.git
CI improvements
This commit is contained in:
parent
9e14196319
commit
2f428aaf44
|
@ -8,9 +8,7 @@ branches:
|
||||||
- next
|
- next
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
yarn: true
|
||||||
- $HOME/.npm
|
|
||||||
- $HOME/.yarn-cache
|
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
|
@ -24,7 +22,7 @@ matrix:
|
||||||
node_js: "6"
|
node_js: "6"
|
||||||
env: NO_WATCH_TESTS=1 JOB_PART=test
|
env: NO_WATCH_TESTS=1 JOB_PART=test
|
||||||
- os: linux
|
- os: linux
|
||||||
node_js: "4.3"
|
node_js: "4"
|
||||||
env: NO_WATCH_TESTS=1 JOB_PART=test
|
env: NO_WATCH_TESTS=1 JOB_PART=test
|
||||||
- os: osx
|
- os: osx
|
||||||
node_js: "8"
|
node_js: "8"
|
||||||
|
@ -33,7 +31,7 @@ matrix:
|
||||||
- os: osx
|
- os: osx
|
||||||
fast_finish: true
|
fast_finish: true
|
||||||
|
|
||||||
before_script:
|
install:
|
||||||
- bash ./ci/travis-install.sh
|
- bash ./ci/travis-install.sh
|
||||||
|
|
||||||
script: npm run travis:$JOB_PART
|
script: npm run travis:$JOB_PART
|
||||||
|
|
|
@ -1,7 +1,12 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -ev
|
set -ev
|
||||||
|
|
||||||
yarn link --frozen-lockfile || true && yarn link webpack --frozen-lockfile;
|
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.0.1
|
||||||
|
|
||||||
|
export PATH=$HOME/.yarn/bin:$PATH
|
||||||
|
|
||||||
|
yarn link --frozen-lockfile || true;
|
||||||
|
|
||||||
yarn --frozen-lockfile
|
yarn --frozen-lockfile
|
||||||
|
|
||||||
|
yarn link webpack --frozen-lockfile
|
||||||
|
|
|
@ -106,7 +106,7 @@
|
||||||
"nsp": "nsp check --output summary",
|
"nsp": "nsp check --output summary",
|
||||||
"benchmark": "mocha --max-old-space-size=4096 --harmony test/*.benchmark.js -R spec",
|
"benchmark": "mocha --max-old-space-size=4096 --harmony test/*.benchmark.js -R spec",
|
||||||
"cover": "node --max-old-space-size=4096 --harmony ./node_modules/istanbul/lib/cli.js cover -x '**/*.runtime.js' node_modules/mocha/bin/_mocha -- test/*.test.js",
|
"cover": "node --max-old-space-size=4096 --harmony ./node_modules/istanbul/lib/cli.js cover -x '**/*.runtime.js' node_modules/mocha/bin/_mocha -- test/*.test.js",
|
||||||
"cover:min": "node --max-old-space-size=4096 --harmony ./node_modules/.bin/istanbul cover -x '**/*.runtime.js' --report lcovonly node_modules/mocha/bin/_mocha -- test/*.test.js",
|
"cover:min": "node --max-old-space-size=4096 --harmony ./node_modules/istanbul/lib/cli.js cover -x '**/*.runtime.js' --report lcovonly node_modules/mocha/bin/_mocha -- test/*.test.js",
|
||||||
"publish-patch": "npm run lint && npm run beautify-lint && mocha && npm version patch && git push && git push --tags && npm publish"
|
"publish-patch": "npm run lint && npm run beautify-lint && mocha && npm version patch && git push && git push --tags && npm publish"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue