angular-docs-cn/.travis.yml

48 lines
2.1 KiB
YAML
Raw Normal View History

dist: trusty
sudo: required
language: node_js
node_js:
- 12.14.1
os:
- linux
env:
global:
2016-06-19 05:09:07 -04:00
- DBUS_SESSION_BUS_ADDRESS=/dev/null
- DISPLAY=:99.0
- CHROME_BIN=chromium-browser
2017-03-23 22:50:10 -04:00
- LATEST_RELEASE=4.0.0
# Temporarily disabled until there is a new release branch for 4.0.0
Rename doc-shredder/test to doc-shredder/_test to avoid harp compile issues # Conflicts: # public/doc-shredder/_test/.gitignore # public/doc-shredder/_test/test_source/app.js # public/doc-shredder/_test/test_source/app.ts # public/doc-shredder/_test/test_source/app2.ts # public/doc-shredder/_test/test_source/do-not-read.js # public/doc-shredder/_test/test_source/first.html # public/doc-shredder/_test/test_source/gettingstarted/js/index.html # public/doc-shredder/_test/test_source/gettingstarted/js/main.js # public/doc-shredder/_test/test_source/gettingstarted/protractor-spec.js # public/doc-shredder/_test/test_source/gettingstarted/ts/index.html # public/doc-shredder/_test/test_source/gettingstarted/ts/main.js # public/doc-shredder/_test/test_source/gettingstarted/ts/main.js.map # public/doc-shredder/_test/test_source/gettingstarted/ts/main.ts # public/doc-shredder/_test/test_source/sub1/foo/script.js # public/doc-shredder/_test/test_source/sub1/script.2.js # public/doc-shredder/_test/test_source/sub1/script.js # public/doc-shredder/_test/test_source/sub1/script.ts # public/doc-shredder/_test/test_source/sub1/second.html # public/doc-shredder/test/test_source/app.ts # public/doc-shredder/test/test_source/app2.ts # public/doc-shredder/test/test_source/do-not-read.js # public/doc-shredder/test/test_source/gettingstarted/js/index.html # public/doc-shredder/test/test_source/gettingstarted/js/main.js # public/doc-shredder/test/test_source/gettingstarted/protractor-spec.js # public/doc-shredder/test/test_source/gettingstarted/ts/index.html # public/doc-shredder/test/test_source/gettingstarted/ts/main.js # public/doc-shredder/test/test_source/gettingstarted/ts/main.js.map # public/doc-shredder/test/test_source/gettingstarted/ts/main.ts # public/doc-shredder/test/test_source/sub1/foo/script.js # tools/doc-shredder/_test/test_source/no-multiregion/app.ts # tools/doc-shredder/_test/test_source/no-multiregion/app2.ts # tools/doc-shredder/_test/test_source/no-multiregion/do-not-read.js # tools/doc-shredder/_test/test_source/no-multiregion/gettingstarted/js/index.html # tools/doc-shredder/_test/test_source/no-multiregion/gettingstarted/js/main.js # tools/doc-shredder/_test/test_source/no-multiregion/gettingstarted/protractor-spec.js # tools/doc-shredder/_test/test_source/no-multiregion/gettingstarted/ts/index.html # tools/doc-shredder/_test/test_source/no-multiregion/gettingstarted/ts/main.js # tools/doc-shredder/_test/test_source/no-multiregion/gettingstarted/ts/main.js.map # tools/doc-shredder/_test/test_source/no-multiregion/gettingstarted/ts/main.ts # tools/doc-shredder/_test/test_source/no-multiregion/nestedFolder/script.js
2021-04-05 09:57:24 -04:00
# - LATEST_RELEASE_BRANCH=2.4.xk
- TASK_FLAGS="--dgeni-log=warn"
matrix:
# current angular release jobs
- TASK=lint
- TASK="run-e2e-tests --fast" SCRIPT=examples-install.sh
- TASK=build-compile SCRIPT=deploy-install.sh WAIT="travis_wait 50" POST_SCRIPT="check-docs.sh -v"
# current angular release branch jobs
2017-03-23 22:50:10 -04:00
# - TASK="run-e2e-tests --fast" SCRIPT=examples-install-preview.sh PREVIEW_BRANCH=$LATEST_RELEASE_BRANCH
# - TASK=build-compile SCRIPT=deploy-install-preview.sh PREVIEW_BRANCH=$LATEST_RELEASE_BRANCH WAIT="travis_wait 50" POST_SCRIPT="check-docs.sh -v"
# angular master jobs
- TASK="run-e2e-tests --fast" SCRIPT=examples-install-preview.sh PREVIEW_BRANCH=master
- TASK=build-compile SCRIPT=deploy-install-preview.sh PREVIEW_BRANCH=master WAIT="travis_wait 50" POST_SCRIPT="check-docs.sh -v"
2016-06-29 11:55:14 -04:00
matrix:
fast_finish: true
allow_failures:
# allow current angular release branch and master to fail
# these should be moved to a daily task instead of being ran on every PR
2017-03-23 22:50:10 -04:00
# - env: TASK="run-e2e-tests --fast" SCRIPT=examples-install-preview.sh PREVIEW_BRANCH=$LATEST_RELEASE_BRANCH
# - env: TASK=build-compile SCRIPT=deploy-install-preview.sh PREVIEW_BRANCH=$LATEST_RELEASE_BRANCH WAIT="travis_wait 50" POST_SCRIPT="check-docs.sh -v"
- env: TASK="run-e2e-tests --fast" SCRIPT=examples-install-preview.sh PREVIEW_BRANCH=master
- env: TASK=build-compile SCRIPT=deploy-install-preview.sh PREVIEW_BRANCH=master WAIT="travis_wait 50" POST_SCRIPT="check-docs.sh -v"
before_install:
- source ./scripts/env-set.sh
- ./scripts/before-install.sh
install:
- npm install --no-optional
- if [[ -n "$SCRIPT" ]]; then echo "EXTRA INSTALL $SCRIPT"; ./scripts/$SCRIPT; fi
before_script:
- sh -e /etc/init.d/xvfb start
script:
- $WAIT gulp $TASK $TASK_FLAGS
- if [[ -n "$POST_SCRIPT" ]]; then ./scripts/$POST_SCRIPT; fi