mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-15 02:36:36 +00:00
Change .travis.yml
This commit is contained in:
30
.travis.yml
30
.travis.yml
@@ -1,26 +1,6 @@
|
|||||||
language: node_js
|
language: node_js
|
||||||
# To fix the npm version in 4.x
|
node_js:
|
||||||
# refs: https://github.com/travis-ci/travis-ci/issues/4653#issuecomment-194051953
|
- 'stable'
|
||||||
before_install: 'if [[ `npm -v` != 4* ]]; then npm i -g npm@4; fi'
|
- 'lts/*'
|
||||||
matrix:
|
|
||||||
include:
|
script: npm run lint && npm run test
|
||||||
- os: osx
|
|
||||||
install:
|
|
||||||
- 'if [[ ${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH} = "master" ]]; then yarn; fi'
|
|
||||||
node_js:
|
|
||||||
- 'stable'
|
|
||||||
- 'lts/*'
|
|
||||||
script:
|
|
||||||
- 'if [[ ${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH} = "master" && ${TRAVIS_NODE_VERSION} = "stable" ]]; then
|
|
||||||
npm run lint;
|
|
||||||
npm run test;
|
|
||||||
./script/e2e-runner.sh;
|
|
||||||
fi'
|
|
||||||
- os: linux
|
|
||||||
node_js:
|
|
||||||
- 'stable'
|
|
||||||
- 'lts/*'
|
|
||||||
script:
|
|
||||||
- 'npm run lint'
|
|
||||||
- 'npm run test'
|
|
||||||
- 'if [[ ${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH} = "master" && ${TRAVIS_NODE_VERSION} = "stable" ]]; then ./script/e2e-runner.sh; fi'
|
|
||||||
|
|||||||
Reference in New Issue
Block a user