File tree 8 files changed +216
-9
lines changed
8 files changed +216
-9
lines changed Original file line number Diff line number Diff line change 11
11
- DISPLAY=:99.0
12
12
- CHROME_BIN=chromium-browser
13
13
- LATEST_RELEASE=2.0.0-rc.4
14
+ - TASK_FLAGS="--dgeni-log=warn"
15
+ # - TASK_FLAGS=""
14
16
matrix :
15
17
- TASK=lint
16
18
- TASK="run-e2e-tests --fast" SCRIPT=examples-install.sh
17
19
- TASK="run-e2e-tests --fast" SCRIPT=examples-install-preview.sh
18
- - TASK=build-compile SCRIPT=deploy-install.sh
19
- - TASK=build-compile SCRIPT=deploy-install-preview.sh
20
+ - TASK=build-compile SCRIPT=deploy-install.sh WAIT="travis_wait 50"
21
+ - TASK=build-compile SCRIPT=deploy-install-preview.sh WAIT="travis_wait 50"
20
22
matrix :
21
23
fast_finish : true
22
24
allow_failures :
23
- - env : " TASK=\ " run-e2e-tests --fast\ " SCRIPT=examples-install-preview.sh"
24
- - env : " TASK=build-compile SCRIPT=deploy-install-preview.sh"
25
+ - env : TASK="run-e2e-tests --fast" SCRIPT=examples-install-preview.sh
26
+ - env : TASK=build-compile SCRIPT=deploy-install-preview.sh WAIT="travis_wait 50 "
25
27
before_install :
26
- - npm install -g gulp --no-optional
28
+ - source ./scripts/env-set.sh
29
+ - ./scripts/before-install.sh
27
30
install :
28
31
- npm install --no-optional
29
- - if [[ $SCRIPT ]]; then ./scripts/$SCRIPT; fi
32
+ - if [[ -n " $SCRIPT" ]]; then echo "EXTRA INSTALL $SCRIPT"; ./scripts/$SCRIPT; fi
30
33
before_script :
31
34
- sh -e /etc/init.d/xvfb start
32
35
script :
33
- - gulp $TASK
36
+ - $WAIT gulp $TASK $TASK_FLAGS
Original file line number Diff line number Diff line change
1
+ name : angular2_io
2
+ description : Angular 2 for Dart Website
3
+ version : 0.0.1
4
+ environment :
5
+ sdk : ' >=1.13.0 <2.0.0'
6
+ dependencies :
7
+ angular2 : 2.0.0-beta.17
8
+ browser : ^0.10.0
9
+ dart_to_js_script_rewriter : ^1.0.1
10
+ transformers :
11
+ - angular2 :
12
+ platform_directives :
13
+ - ' package:angular2/common.dart#COMMON_DIRECTIVES'
14
+ platform_pipes :
15
+ - ' package:angular2/common.dart#COMMON_PIPES'
16
+ entry_points : web/main.dart
17
+ - dart_to_js_script_rewriter
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ set -e -o pipefail
4
+
5
+ ./scripts/env-info-and-check.sh
6
+
7
+ if [[ 0 ]]; then
8
+ # Doesn't seem to be necessary. Disabling.
9
+ travis_fold start install.globals
10
+ set -x
11
+ npm install -g gulp --no-optional
12
+ set +x
13
+ travis_fold end install.globals
14
+ fi
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
- set -ex -o pipefail
3
+ set -e -o pipefail
4
4
5
- (cd ../ && git clone https://github.com/angular/angular.git --branch $LATEST_RELEASE )
5
+ [[ -z " $NGIO_ENV_DEFS " ]] && . ./scripts/env-set.sh
6
+
7
+ if [[ -e " $NG2_REPO " ]]; then
8
+ echo Angular2 repo is already present at: $NG2_REPO
9
+ else
10
+ travis_fold start install.ng2
11
+ echo GETTING Angular2 from GitHub ...
12
+ set -x
13
+ git clone https://github.com/angular/angular.git --branch $LATEST_RELEASE $NG2_REPO
14
+ set +x
15
+ travis_fold end install.ng2
16
+ fi
17
+
18
+ if [[ -e " $NG2DART_REPO " ]]; then
19
+ echo Angular2 Dart repo is already present at: $NG2DART_REPO
20
+ elif [[ -n " $TRAVIS " ]]; then
21
+ ./scripts/install-ng2dart.sh
22
+ # else
23
+ # echo WARNING: no Angular2 Dart repo found at: $NG2DART_REPO
24
+ fi
25
+
26
+ echo INSTALLED repos:
27
+ ls -ld ../a*
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ set -e -o pipefail
4
+
5
+ travis_fold start env_info
6
+ echo ENVIRONMENT INFO
7
+ travis_fold start env_info.path
8
+ echo Path:
9
+ echo $PATH | tr : ' \n'
10
+ echo
11
+ travis_fold end env_info.path
12
+ travis_fold start env_info.home
13
+ echo Home: $HOME
14
+ ls ~ -la
15
+ echo
16
+ travis_fold end env_info.home
17
+ travis_fold start env_info.pwd
18
+ echo Pwd: ` pwd`
19
+ ls -la
20
+ echo
21
+ travis_fold end env_info.pwd
22
+ if [[ 0 ]]; then
23
+ # Not needed anymore, but keeping it at least for the first commit for archival purposes.
24
+ travis_fold start env_info.bash_profile
25
+ echo Bash profile ------------------------------------------------------------
26
+ cat ~ /.bash_profile
27
+ travis_fold end env_info.bash_profile
28
+ travis_fold start env_info.bashrc
29
+ echo Bashrc ------------------------------------------------------------------
30
+ cat ~ /.bashrc
31
+ echo -------------------------------------------------------------------------
32
+ travis_fold end env_info.bashrc
33
+ travis_fold start env_info.build
34
+ echo build.sh ----------------------------------------------------------------
35
+ cat ~ /build.sh
36
+ echo -------------------------------------------------------------------------
37
+ travis_fold end env_info.build
38
+ fi
39
+ travis_fold end env_info
40
+
41
+ echo ENVIRONMENT CONFIG CHECK:
42
+ if [[ -z " $NGIO_ENV_DEFS " ]]; then
43
+ echo Environment variables are not being set. Aborting.
44
+ exit 1;
45
+ else
46
+ echo Environment variables successfully set.
47
+ fi
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ if [[ -z " $NGIO_ENV_DEFS " ]]; then
4
+ export ANSI_YELLOW=" \033[33;1m"
5
+ export ANSI_RESET=" \033[0m"
6
+ echo -e " ${ANSI_YELLOW} Setting environment variables from scripts/env.sh${ANSI_RESET} "
7
+
8
+ export NGIO_ENV_DEFS=1
9
+
10
+ export NG2_REPO=../angular
11
+ export NG2DART_REPO=$NG2_REPO -dart
12
+
13
+ if [ ! $( type -t travis_fold) ]; then
14
+ # In case this is being run locally. Turn travis_fold into a noop.
15
+ travis_fold () { return ; }
16
+ # Alternative definition:
17
+ # travis_fold () { echo -en "travis_fold:${1}:${2}"; }
18
+ fi
19
+ export -f travis_fold
20
+
21
+ case " $( uname -a) " in
22
+ Darwin\ * ) _OS_NAME=macos ;;
23
+ Linux\ * ) _OS_NAME=linux ;;
24
+ * ) _OS_NAME=linux ;;
25
+ esac
26
+ export _OS_NAME
27
+
28
+ export TMP=$HOME /tmp
29
+ export PKG=$TMP /pkg
30
+
31
+ export DART_SDK=" $PKG /dart-sdk"
32
+ if [[ ! $PATH =~ * /dart-sdk/* ]]; then
33
+ echo Updating PATH
34
+ export PATH=" $DART_SDK /bin:$PATH "
35
+ export PATH=" $HOME /.pub-cache/bin:$PATH "
36
+ fi
37
+ fi
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ set -e -o pipefail
4
+
5
+ [[ -z " $NGIO_ENV_DEFS " ]] && . ./scripts/env-set.sh
6
+
7
+ if [[ -z " $( type -t dart) " ]]; then
8
+ travis_fold start install.dart
9
+ # curl https://storage.googleapis.com/dart-archive/channels/stable/release/latest/sdk/dartsdk-linux-x64-release.zip > $TMP/dartsdk.zip
10
+
11
+ DART_ARCHIVE=https://storage.googleapis.com/dart-archive/channels
12
+ ARCH=x64
13
+ VERS=stable/release/latest/sdk
14
+ OS_ZIP=dartsdk-$_OS_NAME -$ARCH -release.zip
15
+ URL=$DART_ARCHIVE /$VERS /$OS_ZIP
16
+
17
+ echo " Installing Dart SDK from:"
18
+ echo " $URL "
19
+
20
+ [[ ! -d " $TMP " ]] && mkdir " $TMP "
21
+ [[ ! -d " $PKG " ]] && mkdir " $PKG "
22
+
23
+ curl $URL > " $TMP /$OS_ZIP " 2> /dev/null
24
+
25
+ if [[ " 1000" -lt " $( wc -c $TMP /$OS_ZIP | awk ' {print $1}' ) " ]]; then
26
+ unzip " $TMP /$OS_ZIP " -d " $PKG " > /dev/null
27
+ rm -f " $TMP /$OS_ZIP "
28
+ # PATH is set in ./scripts/env-set.sh
29
+ dart --version
30
+ else
31
+ echo FAILED to download Dart SDK. Check URL.
32
+ fi
33
+ travis_fold end install.dart
34
+ else
35
+ echo Dart SDK appears to be installed: ` type dart`
36
+ # PATH is set in ./scripts/env-set.sh
37
+ dart --version
38
+ fi
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ set -e -o pipefail
4
+
5
+ [[ -z " $NGIO_ENV_DEFS " ]] && . ./scripts/env-set.sh
6
+
7
+ ./scripts/install-dart-sdk.sh
8
+
9
+ travis_fold start install.ng2dart
10
+ if [[ -z " $( type -t dart) " ]]; then
11
+ echo " No Dart SDK: aborting install of Angular2/Dart"
12
+ exit 1;
13
+ elif [[ -e " $NG2DART_REPO " ]]; then
14
+ echo Angular2/Dart found at: $NG2DART_REPO
15
+ else
16
+ echo GETTING Angular2/Dart from pub package ...
17
+ set -x
18
+ # Get ng2dart via pub on ng.io pubspec.yaml
19
+ pub upgrade > /dev/null
20
+
21
+ NG2DART_PUB=` find ~ /.pub-cache/ -type d -name " angular2*" | xargs ls -dtr | tail -1`
22
+
23
+ cp -r $NG2DART_PUB $NG2DART_REPO
24
+ fi
25
+
26
+ # Run pub on ng2dart
27
+ (cd $NG2DART_REPO && pub get)
28
+ set +x
29
+ travis_fold end install.ng2dart
You can’t perform that action at this time.
0 commit comments