2016-05-02 01:54:19 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2017-03-02 03:22:24 -05:00
|
|
|
set -u -e -o pipefail
|
2016-05-02 01:54:19 -04:00
|
|
|
|
|
|
|
# Setup environment
|
2017-03-05 04:49:10 -05:00
|
|
|
readonly thisDir=$(cd $(dirname $0); pwd)
|
|
|
|
source ${thisDir}/_travis-fold.sh
|
2016-05-02 01:54:19 -04:00
|
|
|
|
|
|
|
|
2017-03-02 03:22:24 -05:00
|
|
|
travisFoldStart "test.e2e.buildPackages"
|
|
|
|
./build.sh
|
|
|
|
travisFoldEnd "test.e2e.buildPackages"
|
2016-05-02 01:54:19 -04:00
|
|
|
|
|
|
|
|
2017-02-01 23:47:04 -05:00
|
|
|
if [[ ${TRAVIS} ]]; then
|
2017-03-02 03:22:24 -05:00
|
|
|
travisFoldStart "test.e2e.xvfb-start"
|
|
|
|
sh -e /etc/init.d/xvfb start
|
|
|
|
travisFoldEnd "test.e2e.xvfb-start"
|
2017-02-01 23:47:04 -05:00
|
|
|
fi
|
|
|
|
|
2017-02-09 12:08:16 -05:00
|
|
|
|
2017-03-02 03:22:24 -05:00
|
|
|
travisFoldStart "test.e2e.integration"
|
|
|
|
./integration/run_tests.sh
|
|
|
|
travisFoldEnd "test.e2e.integration"
|
2017-01-27 12:17:50 -05:00
|
|
|
|
2016-05-27 19:22:16 -04:00
|
|
|
|
2017-03-02 03:22:24 -05:00
|
|
|
travisFoldStart "test.e2e.offlineCompiler"
|
|
|
|
#TODO(alexeagle): move offline_compiler_test to integration/
|
2017-03-05 04:49:10 -05:00
|
|
|
${thisDir}/offline_compiler_test.sh
|
2017-03-02 03:22:24 -05:00
|
|
|
travisFoldEnd "test.e2e.offlineCompiler"
|
2017-02-09 12:08:16 -05:00
|
|
|
|
2016-06-30 16:34:32 -04:00
|
|
|
|
2017-03-02 03:22:24 -05:00
|
|
|
travisFoldStart "test.e2e.publicApi"
|
|
|
|
$(npm bin)/gulp public-api:enforce
|
|
|
|
travisFoldEnd "test.e2e.publicApi"
|
2017-02-09 12:08:16 -05:00
|
|
|
|
2016-05-02 01:54:19 -04:00
|
|
|
|
2017-03-02 03:22:24 -05:00
|
|
|
travisFoldStart "test.e2e.check-cycle"
|
|
|
|
$(npm bin)/gulp check-cycle
|
|
|
|
travisFoldEnd "test.e2e.check-cycle"
|
2016-05-11 20:15:05 -04:00
|
|
|
|
2017-03-02 03:22:24 -05:00
|
|
|
|
|
|
|
# Serve files for e2e tests
|
|
|
|
(
|
|
|
|
cd dist/
|
|
|
|
$(npm bin)/gulp serve &
|
|
|
|
$(npm bin)/gulp serve-examples &
|
|
|
|
)
|
|
|
|
|
|
|
|
travisFoldStart "test.e2e.protractor-e2e"
|
|
|
|
NODE_PATH=$NODE_PATH:./dist/all $(npm bin)/protractor ./protractor-e2e.conf.js --bundles=true
|
|
|
|
travisFoldEnd "test.e2e.protractor-e2e"
|
|
|
|
travisFoldStart "test.e2e.protractor-examples-e2e"
|
|
|
|
NODE_PATH=$NODE_PATH:./dist/all $(npm bin)/protractor ./protractor-examples-e2e.conf.js --bundles=true
|
|
|
|
travisFoldEnd "test.e2e.protractor-examples-e2e"
|
|
|
|
travisFoldStart "test.e2e.protractor-perf"
|
|
|
|
NODE_PATH=$NODE_PATH:./dist/all $(npm bin)/protractor ./protractor-perf.conf.js --bundles=true --dryrun
|
|
|
|
travisFoldEnd "test.e2e.protractor-perf"
|