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

Commit 581e275

Browse files
committed
chore(ci): add check-deploy to CI
1 parent 0664a27 commit 581e275

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

.travis.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,16 @@ env:
1111
- DISPLAY=:99.0
1212
- CHROME_BIN=chromium-browser
1313
matrix:
14-
- SCRIPT=lint
15-
- SCRIPT="run-e2e-tests --fast"
16-
- SCRIPT="run-e2e-tests --fast" PREVIEW=true
14+
- TASK=lint
15+
- TASK="run-e2e-tests --fast" SCRIPT=examples-install.sh
16+
- TASK="run-e2e-tests --fast" SCRIPT=preview-examples-install.sh
1717
matrix:
1818
fast_finish: true
1919
allow_failures:
20-
- env: "SCRIPT=\"run-e2e-tests --fast\" PREVIEW=true"
20+
- env: "TASK=\"run-e2e-tests --fast\" SCRIPT=preview-examples-install.sh"
2121
before_install:
2222
- npm install -g gulp --no-optional
23-
before_script:
24-
- sh -e /etc/init.d/xvfb start
2523
install:
26-
- ./scripts/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
24+
- ./scripts/$SCRIPT
2825
script:
29-
- gulp $SCRIPT
26+
- gulp $TASK

scripts/install.sh renamed to scripts/examples-install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ npm install --no-optional
77
(cd public/docs/_examples/_protractor && npm install --no-optional)
88
npm run webdriver:update --prefix public/docs/_examples/_protractor
99
gulp add-example-boilerplate
10+
sh -e /etc/init.d/xvfb start

scripts/preview-examples-install.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env bash
2+
3+
set -ex -o pipefail
4+
5+
./examples-install.sh
6+
(cd public/docs/_examples && angular/{core,common,compiler,platform-browser,platform-browser-dynamic,http,forms,router-deprecated,router,upgrade}-builds --no-optional)

0 commit comments

Comments
 (0)