2016-05-02 01:54:19 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -ex -o pipefail
|
|
|
|
|
|
|
|
if [[ ${TRAVIS} && ${CI_MODE} != "e2e" ]]; then
|
|
|
|
exit 0;
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
echo 'travis_fold:start:test.js'
|
|
|
|
|
|
|
|
# Setup environment
|
|
|
|
cd `dirname $0`
|
|
|
|
source ./env.sh
|
|
|
|
cd ../..
|
|
|
|
|
|
|
|
|
|
|
|
echo 'travis_fold:start:test.buildPackages'
|
|
|
|
|
|
|
|
./build.sh
|
|
|
|
|
|
|
|
echo 'travis_fold:end:test.buildPackages'
|
|
|
|
|
2017-02-01 23:47:04 -05:00
|
|
|
if [[ ${TRAVIS} ]]; then
|
|
|
|
sh -e /etc/init.d/xvfb start
|
|
|
|
fi
|
|
|
|
|
2017-01-27 12:17:50 -05:00
|
|
|
./integration/build_rxjs_es6.sh
|
|
|
|
./integration/run_tests.sh
|
2017-01-26 22:49:44 -05:00
|
|
|
#TODO(alexeagle): move offline_compiler_test to integration/
|
2016-05-27 19:22:16 -04:00
|
|
|
./scripts/ci-lite/offline_compiler_test.sh
|
2017-01-27 12:17:50 -05:00
|
|
|
|
2016-06-23 15:01:42 -04:00
|
|
|
$(npm bin)/gulp public-api:enforce
|
2016-05-27 19:22:16 -04:00
|
|
|
|
2016-06-30 16:34:32 -04:00
|
|
|
$(npm bin)/gulp check-cycle
|
|
|
|
|
2016-05-02 01:54:19 -04:00
|
|
|
echo 'travis_fold:start:test.e2e.localChrome'
|
|
|
|
cd dist/
|
2016-05-24 15:33:14 -04:00
|
|
|
$(npm bin)/gulp serve &
|
2016-09-07 19:04:33 -04:00
|
|
|
$(npm bin)/gulp serve-examples &
|
2016-05-02 01:54:19 -04:00
|
|
|
cd ..
|
2016-08-30 12:29:39 -04:00
|
|
|
NODE_PATH=$NODE_PATH:./dist/all $(npm bin)/protractor ./protractor-e2e.conf.js --bundles=true
|
2016-09-13 18:58:45 -04:00
|
|
|
NODE_PATH=$NODE_PATH:./dist/all $(npm bin)/protractor ./protractor-examples-e2e.conf.js --bundles=true
|
2016-08-30 12:29:39 -04:00
|
|
|
NODE_PATH=$NODE_PATH:./dist/all $(npm bin)/protractor ./protractor-perf.conf.js --bundles=true --dryrun
|
2016-05-02 01:54:19 -04:00
|
|
|
echo 'travis_fold:end:test.e2e.localChrome'
|
|
|
|
|
|
|
|
echo 'travis_fold:end:test.js'
|
2016-05-11 20:15:05 -04:00
|
|
|
|
|
|
|
if [[ ${TRAVIS} ]]; then
|
|
|
|
./scripts/publish/publish-build-artifacts.sh
|
|
|
|
fi
|