mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-29 21:52:22 +01:00
Travis: stop using a separate stage for Browser tests.
This should be faster.
This commit is contained in:
parent
ca47a21b70
commit
497766a3a6
14
.travis.yml
14
.travis.yml
@ -10,18 +10,10 @@ install:
|
|||||||
- npm install
|
- npm install
|
||||||
script:
|
script:
|
||||||
- npm test
|
- npm test
|
||||||
- if [[ "$TRAVIS_NODE_VERSION" = "8" && "$TRAVIS_BUILD_STAGE_NAME" = "Test" ]]; then npm run check-broken-links; fi
|
- if [[ "$TRAVIS_NODE_VERSION" = "8" ]]; then npm run check-broken-links; fi
|
||||||
|
- if [[ "$TRAVIS_NODE_VERSION" = "8" && "$TRAVIS_EVENT_TYPE" = "push" && ! `git log --format=%B --no-merges -n 1 | grep '\[skip browser\]'` ]]; then npm run js-test-cloud; fi
|
||||||
after_success:
|
after_success:
|
||||||
- if [[ "$TRAVIS_NODE_VERSION" = "8" && "$TRAVIS_BUILD_STAGE_NAME" = "Test" ]]; then npm run coveralls; fi
|
- if [[ "$TRAVIS_NODE_VERSION" = "8" ]]; then npm run coveralls; fi
|
||||||
stages:
|
|
||||||
- test
|
|
||||||
- name: browser
|
|
||||||
if: type = push
|
|
||||||
jobs:
|
|
||||||
include:
|
|
||||||
- stage: browser
|
|
||||||
node_js: 8
|
|
||||||
script: if ! git log --format=%B --no-merges -n 1 | grep '\[skip browser\]'; then npm run js-test-cloud; fi
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- node_modules
|
- node_modules
|
||||||
|
@ -56,7 +56,6 @@
|
|||||||
"js-test-karma-old": "cross-env USE_OLD_JQUERY=true npm run js-test-karma",
|
"js-test-karma-old": "cross-env USE_OLD_JQUERY=true npm run js-test-karma",
|
||||||
"js-test-karma-bundle": "cross-env BUNDLE=true npm run js-test-karma",
|
"js-test-karma-bundle": "cross-env BUNDLE=true npm run js-test-karma",
|
||||||
"js-test-karma-bundle-old": "cross-env BUNDLE=true USE_OLD_JQUERY=true npm run js-test-karma",
|
"js-test-karma-bundle-old": "cross-env BUNDLE=true USE_OLD_JQUERY=true npm run js-test-karma",
|
||||||
"prejs-test-cloud": "npm run js-compile && npm run js-test-karma",
|
|
||||||
"js-test-cloud": "cross-env BROWSER=true npm run js-test-karma",
|
"js-test-cloud": "cross-env BROWSER=true npm run js-test-karma",
|
||||||
"lint": "npm-run-all --parallel js-lint* css-lint*",
|
"lint": "npm-run-all --parallel js-lint* css-lint*",
|
||||||
"coveralls": "shx cat js/coverage/lcov.info | coveralls",
|
"coveralls": "shx cat js/coverage/lcov.info | coveralls",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user