2016-04-28 17:50:03 -07:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2017-03-02 00:22:24 -08:00
|
|
|
set -u -e -o pipefail
|
2016-04-28 17:50:03 -07:00
|
|
|
|
|
|
|
# Setup environment
|
2017-03-05 01:49:10 -08:00
|
|
|
readonly thisDir=$(cd $(dirname $0); pwd)
|
|
|
|
source ${thisDir}/_travis-fold.sh
|
|
|
|
|
|
|
|
|
|
|
|
# If the previous commands in the `script` section of .travis.yaml failed, then abort.
|
|
|
|
# The variable is not set in early stages of the build, so we default to 0 there.
|
|
|
|
# https://docs.travis-ci.com/user/environment-variables/
|
|
|
|
if [[ ${TRAVIS_TEST_RESULT=0} == 1 ]]; then
|
|
|
|
exit 1;
|
|
|
|
fi
|
2016-04-28 17:50:03 -07:00
|
|
|
|
2017-07-21 10:48:04 +01:00
|
|
|
# No build needed for bazel or aio docs tests
|
2018-10-18 18:08:01 +03:00
|
|
|
if [[ ${CI_MODE:-} == "bazel" ]]; then
|
2017-08-10 00:21:10 +03:00
|
|
|
exit 0;
|
|
|
|
fi
|
|
|
|
|
2017-03-02 00:22:24 -08:00
|
|
|
travisFoldStart "tsc tools"
|
|
|
|
$(npm bin)/tsc -p tools
|
2017-09-20 09:54:47 -07:00
|
|
|
$(npm bin)/tsc -p packages/compiler/tsconfig-tools.json
|
|
|
|
$(npm bin)/tsc -p packages/compiler-cli/tsconfig-tools.json
|
2017-03-02 00:22:24 -08:00
|
|
|
travisFoldEnd "tsc tools"
|
2017-02-09 19:08:16 +02:00
|
|
|
|
|
|
|
|
2017-03-02 00:22:24 -08:00
|
|
|
travisFoldStart "tsc all"
|
2017-09-20 09:54:47 -07:00
|
|
|
node dist/tools/@angular/compiler-cli/src/main -p packages/tsconfig-metadata.json
|
2017-09-26 13:31:59 -07:00
|
|
|
$(npm bin)/tsc -p packages
|
2017-10-24 14:54:08 +03:00
|
|
|
$(npm bin)/tsc -p packages/examples
|
2017-09-20 09:54:47 -07:00
|
|
|
$(npm bin)/tsc -p modules
|
2017-03-02 00:22:24 -08:00
|
|
|
travisFoldEnd "tsc all"
|