Skip to content

Commit 9a87d42

Browse files
committed
test
1 parent ab59a4b commit 9a87d42

File tree

2 files changed

+19
-12
lines changed

2 files changed

+19
-12
lines changed

.travis.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,16 @@ notifications:
4848
jobs:
4949
include:
5050
- stage: deploy
51+
env:
52+
- JOB=deploy
53+
- DIST_TAG=""
5154
before_script: skip
52-
# Work around the 10min Travis timeout. The firebase / gcs code deploy does not report
53-
# back to the process
55+
script:
56+
- "./scripts/travis/build.sh"
57+
- echo $SAUCE_ACCESS_KEY
58+
- echo $DIST_TAG
59+
- echo $TRAVIS_TAG
60+
# Work around the 10min Travis timeout so the firebase / gcs code deploy can complete
5461
before_deploy: |
5562
function keep_alive() {
5663
while true; do
@@ -59,16 +66,14 @@ jobs:
5966
done
6067
}
6168
keep_alive &
62-
env:
63-
- JOB=deploy
6469
deploy:
6570
- provider: firebase
6671
skip_cleanup: true
6772
token:
6873
secure: $FIREBASE_TOKEN
6974
on:
7075
repo: angular/angular.js
71-
condition: $TRAVIS_TAG = '' && $DISTTAG = next
76+
condition: $TRAVIS_TAG = '' && $( jq ".distTag" "package.json" | tr -d "\"[:space:]" ) = next
7277
all_branches: true
7378
- provider: gcs
7479
access_key_id: GOOGLDB7W2J3LFHICF3R

scripts/travis/build.sh

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ case "$JOB" in
1616
BROWSERS="SL_Chrome,SL_Firefox,SL_Safari_8,SL_Safari_9,SL_IE_9,SL_IE_10,SL_IE_11,SL_EDGE,SL_iOS"
1717
fi
1818

19-
grunt test:promises-aplus
20-
grunt test:unit --browsers="$BROWSERS" --reporters=dots
21-
grunt tests:docs --browsers="$BROWSERS" --reporters=dots
19+
# grunt test:promises-aplus
20+
# grunt test:unit --browsers="$BROWSERS" --reporters=dots
21+
# grunt tests:docs --browsers="$BROWSERS" --reporters=dots
2222
;;
2323
"docs-e2e")
2424
grunt test:travis-protractor --specs="docs/app/e2e/**/*.scenario.js"
@@ -38,11 +38,13 @@ case "$JOB" in
3838
grunt test:travis-protractor --specs="$TARGET_SPECS"
3939
;;
4040
"deploy")
41-
# the DISTTAG is read by the deploy config
42-
export DISTTAG=$( cmd < package.json | jq '.distTag' | tr -d \"[:space:] )
41+
# the DIST_TAG is read by the deploy config
42+
DIST_TAG=$( jq ".distTag" "package.json" | tr -d "\"[:space:]" )
43+
export DIST_TAG
4344

44-
echo 'DISTTAG?'
45-
echo $DISTTAG
45+
echo "DIST_TAG: $DIST_TAG"
46+
47+
export DIST_TAG="next"
4648

4749
grunt package
4850
grunt compress:firebaseCodeDeploy

0 commit comments

Comments
 (0)