2016-04-28 20:50:03 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2017-03-02 03:22:24 -05:00
|
|
|
set -u -e -o pipefail
|
2016-04-28 20:50:03 -04:00
|
|
|
|
|
|
|
# Setup environment
|
2017-03-02 03:22:24 -05:00
|
|
|
source ${TRAVIS_BUILD_DIR}/scripts/ci-lite/_travis_fold.sh
|
|
|
|
source ${TRAVIS_BUILD_DIR}/scripts/ci-lite/env.sh
|
2016-04-28 20:50:03 -04:00
|
|
|
|
2017-02-09 12:08:16 -05:00
|
|
|
|
2017-03-02 03:22:24 -05:00
|
|
|
travisFoldStart "tsc tools"
|
|
|
|
$(npm bin)/tsc -p tools
|
|
|
|
cp tools/@angular/tsc-wrapped/package.json dist/tools/@angular/tsc-wrapped
|
|
|
|
travisFoldEnd "tsc tools"
|
2017-02-09 12:08:16 -05:00
|
|
|
|
|
|
|
|
2017-03-02 03:22:24 -05:00
|
|
|
travisFoldStart "tsc all"
|
|
|
|
node --max-old-space-size=3000 dist/tools/@angular/tsc-wrapped/src/main -p modules
|
|
|
|
travisFoldEnd "tsc all"
|
|
|
|
|
2017-01-25 12:39:01 -05:00
|
|
|
|
2017-03-02 03:22:24 -05:00
|
|
|
# TODO(i): what are these compilations here for?
|
|
|
|
travisFoldStart "tsc a bunch of useless stuff"
|
|
|
|
node dist/tools/@angular/tsc-wrapped/src/main -p modules/@angular/core/tsconfig-build.json
|
|
|
|
node dist/tools/@angular/tsc-wrapped/src/main -p modules/@angular/common/tsconfig-build.json
|
|
|
|
node dist/tools/@angular/tsc-wrapped/src/main -p modules/@angular/platform-browser/tsconfig-build.json
|
|
|
|
node dist/tools/@angular/tsc-wrapped/src/main -p modules/@angular/router/tsconfig-build.json
|
|
|
|
node dist/tools/@angular/tsc-wrapped/src/main -p modules/@angular/forms/tsconfig-build.json
|
|
|
|
travisFoldEnd "tsc a bunch of useless stuff"
|
2017-01-25 12:39:01 -05:00
|
|
|
|
2017-03-02 03:22:24 -05:00
|
|
|
|
|
|
|
# Build integration tests
|
|
|
|
if [[ ${CI_MODE} == "e2e" ]]; then
|
|
|
|
travisFoldStart "build.integration"
|
|
|
|
cd "`dirname $0`/../../integration"
|
|
|
|
./build_rxjs_es6.sh
|
|
|
|
cd -
|
|
|
|
travisFoldEnd "build.integration"
|
2017-01-25 12:39:01 -05:00
|
|
|
fi
|
|
|
|
|
2017-03-02 03:22:24 -05:00
|
|
|
|
|
|
|
# Build angular.io
|
|
|
|
if [[ ${CI_MODE} == "aio" ]]; then
|
|
|
|
travisFoldStart "build.aio"
|
|
|
|
cd "`dirname $0`/../../aio"
|
|
|
|
yarn run build
|
|
|
|
cd -
|
|
|
|
travisFoldEnd "build.aio"
|
|
|
|
fi
|