mirror of
https://github.com/twbs/bootstrap.git
synced 2025-06-06 00:03:01 -04:00
Move Travis to build stages and fix skip browser flag. (#23961)
This commit is contained in:
parent
2dcce4ec30
commit
e296c13741
21
.travis.yml
21
.travis.yml
@ -8,27 +8,24 @@ node_js:
|
|||||||
- "8"
|
- "8"
|
||||||
before_install:
|
before_install:
|
||||||
- if [[ `npm -v` != 5* ]]; then npm install -g npm@5; fi
|
- if [[ `npm -v` != 5* ]]; then npm install -g npm@5; fi
|
||||||
- "export TRAVIS_COMMIT_MSG=\"`git log --format=%B --no-merges -n 1`\""
|
|
||||||
- echo "$TRAVIS_COMMIT_MSG" | grep '\[skip browser\]'; export TWBS_DO_BROWSER=$?; true
|
|
||||||
install:
|
install:
|
||||||
- bundle install --deployment --jobs=3 --retry=3
|
- bundle install --deployment --jobs=3 --retry=3
|
||||||
- npm install
|
- npm install
|
||||||
script:
|
|
||||||
- npm test
|
|
||||||
- if [ "$TWBS_TEST" = browser -a "$SAUCE_ACCESS_KEY" ]; then npm run js-test-cloud; fi
|
|
||||||
after_success:
|
after_success:
|
||||||
- if [ "$TRAVIS_REPO_SLUG" = twbs-savage/bootstrap ]; then npm run docs-upload-preview; fi
|
- if [ "$TRAVIS_REPO_SLUG" = twbs-savage/bootstrap ]; then npm run docs-upload-preview; 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 test && npm run js-test-cloud; fi
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- node_modules
|
- node_modules
|
||||||
- vendor/bundle
|
- vendor/bundle
|
||||||
env:
|
|
||||||
- TWBS_TEST=core
|
|
||||||
- TWBS_TEST=browser
|
|
||||||
matrix:
|
|
||||||
exclude:
|
|
||||||
- node_js: "4"
|
|
||||||
env: TWBS_TEST=browser
|
|
||||||
notifications:
|
notifications:
|
||||||
slack: heybb:iz4wwosL0N0EdaX1gvgkU0NH
|
slack: heybb:iz4wwosL0N0EdaX1gvgkU0NH
|
||||||
webhooks:
|
webhooks:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user