2016-04-28 20:50:03 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -ex -o pipefail
|
|
|
|
|
|
|
|
echo 'travis_fold:start:BUILD'
|
|
|
|
|
|
|
|
# Setup environment
|
|
|
|
cd `dirname $0`
|
|
|
|
source ./env.sh
|
|
|
|
cd ../..
|
|
|
|
|
2016-06-08 19:06:23 -04:00
|
|
|
$(npm bin)/tsc -v
|
2016-05-27 19:22:16 -04:00
|
|
|
$(npm bin)/tsc -p tools
|
|
|
|
cp tools/@angular/tsc-wrapped/package.json dist/tools/@angular/tsc-wrapped
|
2016-09-23 17:04:29 -04:00
|
|
|
node --max-old-space-size=3000 dist/tools/@angular/tsc-wrapped/src/main -p modules
|
2016-09-08 18:01:22 -04:00
|
|
|
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
|
2016-11-11 13:46:53 -05:00
|
|
|
node dist/tools/@angular/tsc-wrapped/src/main -p modules/@angular/platform-browser/tsconfig-build.json
|
2016-09-08 18:01:22 -04:00
|
|
|
node dist/tools/@angular/tsc-wrapped/src/main -p modules/@angular/router/tsconfig-build.json
|
2016-11-22 12:10:23 -05:00
|
|
|
node dist/tools/@angular/tsc-wrapped/src/main -p modules/@angular/forms/tsconfig-build.json
|
2016-04-28 20:50:03 -04:00
|
|
|
|
2017-02-09 12:08:16 -05:00
|
|
|
if [[ ${CI_MODE} == "e2e" ]]; then
|
|
|
|
echo 'travis_fold:start:BUILD.integration'
|
|
|
|
|
|
|
|
# Build integration
|
|
|
|
cd "`dirname $0`/../../integration"
|
|
|
|
./build_rxjs_es6.sh
|
|
|
|
cd -
|
|
|
|
|
|
|
|
echo 'travis_fold:end:BUILD.integration'
|
|
|
|
fi
|
|
|
|
|
2017-01-25 12:39:01 -05:00
|
|
|
if [[ ${CI_MODE} == "aio" ]]; then
|
|
|
|
echo 'travis_fold:start:BUILD.aio'
|
|
|
|
|
|
|
|
# Build angular.io
|
2017-02-09 14:58:36 -05:00
|
|
|
cd "`dirname $0`/../../aio"
|
2017-01-25 12:39:01 -05:00
|
|
|
yarn run build
|
|
|
|
cd -
|
|
|
|
|
|
|
|
echo 'travis_fold:end:BUILD.aio'
|
|
|
|
fi
|
|
|
|
|
2016-04-28 20:50:03 -04:00
|
|
|
echo 'travis_fold:end:BUILD'
|