Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 4c1b441

Browse files
committed
chore(travis): add preview builds
1 parent b21c90c commit 4c1b441

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.travis.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,19 @@ env:
1111
- DISPLAY=:99.0
1212
- CHROME_BIN=chromium-browser
1313
matrix:
14-
- SCRIPT="lint"
14+
- SCRIPT=lint
1515
- SCRIPT="run-e2e-tests --fast"
16+
- SCRIPT="run-e2e-tests --fast" PREVIEW=true
17+
matrix:
18+
fast_finish: true
19+
allow_failures:
20+
- env: "SCRIPT=\"run-e2e-tests --fast\" PREVIEW=true"
1621
before_install:
1722
- npm install -g gulp --no-optional
1823
before_script:
1924
- sh -e /etc/init.d/xvfb start
2025
install:
2126
- ./script/install.sh
27+
- if [[ $PREVIEW == true ]]; then npm install --prefix public/docs/_examples angular/{core,common,compiler,platform-browser,platform-browser-dynamic,http,forms,router-deprecated,router,upgrade}-builds; fi
2228
script:
2329
- gulp $SCRIPT

script/install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -ex -o pipefail
44

55
npm install --no-optional
6-
(cd public/docs/_examples && npm install)
7-
(cd public/docs/_examples/_protractor && npm install)
6+
(cd public/docs/_examples && npm install --no-optional)
7+
(cd public/docs/_examples/_protractor && npm install --no-optional)
88
npm run webdriver:update --prefix public/docs/_examples/_protractor
99
gulp add-example-boilerplate

0 commit comments

Comments
 (0)