2016-07-11 10:54:29 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2016-07-18 18:59:42 -04:00
|
|
|
set -e -o pipefail
|
2016-07-11 10:54:29 -04:00
|
|
|
|
2016-07-18 18:59:42 -04:00
|
|
|
[[ -z "$NGIO_ENV_DEFS" ]] && . ./scripts/env-set.sh
|
|
|
|
|
|
|
|
if [[ -e "$NG2_REPO" ]]; then
|
2016-09-19 23:24:40 -04:00
|
|
|
echo Angular repo is already present at: $NG2_REPO
|
2016-07-18 18:59:42 -04:00
|
|
|
else
|
|
|
|
travis_fold start install.ng2
|
2016-09-19 23:24:40 -04:00
|
|
|
echo GETTING Angular from GitHub ...
|
2016-07-18 18:59:42 -04:00
|
|
|
set -x
|
2016-09-15 12:47:12 -04:00
|
|
|
git clone https://github.com/angular/angular.git $NG2_REPO
|
|
|
|
git -C $NG2_REPO checkout $LATEST_RELEASE
|
2016-07-18 18:59:42 -04:00
|
|
|
set +x
|
|
|
|
travis_fold end install.ng2
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ -e "$NG2DART_REPO" ]]; then
|
|
|
|
echo Angular2 Dart repo is already present at: $NG2DART_REPO
|
|
|
|
elif [[ -n "$TRAVIS" ]]; then
|
|
|
|
./scripts/install-ng2dart.sh
|
|
|
|
# else
|
|
|
|
# echo WARNING: no Angular2 Dart repo found at: $NG2DART_REPO
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo INSTALLED repos:
|
|
|
|
ls -ld ../a*
|