angular-cn/scripts/deploy-install.sh
Patrice Chalin 13aa6b1498 chore(travis): include dart doc generation
closes #1910
- Installs Dart SDK
- Installs ng2/dart sources from the pub package site.
- Re-enables doc build on Travis
- install Dartium browser for eventual testing.
- allow TMP and PKG to be set by developer before calling, e.g., install-dart-sdk.sh.
- removes `npm install -g gulp --no-optional` has been removed since it does not appear to be needed.
- Implements most of #1907.
2016-07-19 20:26:39 -07:00

28 lines
680 B
Bash
Executable File

#!/usr/bin/env bash
set -e -o pipefail
[[ -z "$NGIO_ENV_DEFS" ]] && . ./scripts/env-set.sh
if [[ -e "$NG2_REPO" ]]; then
echo Angular2 repo is already present at: $NG2_REPO
else
travis_fold start install.ng2
echo GETTING Angular2 from GitHub ...
set -x
git clone https://github.com/angular/angular.git --branch $LATEST_RELEASE $NG2_REPO
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*