File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 - DISPLAY=:99.0
1717 - CHROME_BIN=chromium-browser
1818 matrix :
19- - CI_MODE=local
20- - CI_MODE=saucelabs
19+ - CI_MODE=local_e2e
20+ - CI_MODE=saucelabs_e2e
2121
2222cache :
2323 directories :
Original file line number Diff line number Diff line change @@ -4,6 +4,6 @@ set -ex -o pipefail
44cd ` dirname $0 `
55
66# Start Xvfb when running locally.
7- if [[ ${TRAVIS} && (${CI_MODE} == " local " ) ]]; then
7+ if [[ ${TRAVIS} && (${CI_MODE} == " local_e2e " ) ]]; then
88 sh -e /etc/init.d/xvfb start
99fi
Original file line number Diff line number Diff line change @@ -5,12 +5,16 @@ cd `dirname $0`
55cd ../tour-of-heroes
66
77ng build
8- npm run lint
9- npm run test -- --watch=false
8+
9+ if [[ ${TRAVIS} && (${CI_MODE} == " local_e2e" ) ]]; then
10+ npm run lint
11+ npm run test -- --watch=false
12+ PROTRACTOR_CONFIG=" ./protractor.conf.js"
13+ fi
1014
1115# When using saucelabs, use a different config.
12- if [[ ${TRAVIS} && (${CI_MODE} == " saucelabs " ) ]]; then
13- PROTRACTOR_CONFIG=" protractor-saucelabs.conf.js"
16+ if [[ ${TRAVIS} && (${CI_MODE} == " saucelabs_e2e " ) ]]; then
17+ PROTRACTOR_CONFIG=" ./ protractor-saucelabs.conf.js"
1418fi
1519
16- concurrently --success first --kill-others \ " lite-server\" \ " protractor $PROTRACTOR_CONFIG \ "
20+ concurrently --success first --kill-others " lite-server" " protractor $PROTRACTOR_CONFIG "
You can’t perform that action at this time.
0 commit comments