
committed by
Alex Rickabaugh

parent
9b8a244a15
commit
38d626a3fa
@ -1,34 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -u -e -o pipefail
|
||||
|
||||
# Setup environment
|
||||
readonly thisDir=$(cd $(dirname $0); pwd)
|
||||
source ${thisDir}/_travis-fold.sh
|
||||
|
||||
|
||||
# If the previous commands in the `script` section of .travis.yaml failed, then abort.
|
||||
# The variable is not set in early stages of the build, so we default to 0 there.
|
||||
# https://docs.travis-ci.com/user/environment-variables/
|
||||
if [[ ${TRAVIS_TEST_RESULT=0} == 1 ]]; then
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
|
||||
# Don't deploy Angular.io if we are running in a fork
|
||||
if [[ ${TRAVIS_REPO_SLUG} != "angular/angular" ]]; then
|
||||
echo "Skipping deploy because this is not angular/angular."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
case ${CI_MODE} in
|
||||
aio)
|
||||
travisFoldStart "deploy.aio"
|
||||
(
|
||||
cd ${TRAVIS_BUILD_DIR}/aio
|
||||
yarn deploy-production
|
||||
)
|
||||
travisFoldEnd "deploy.aio"
|
||||
;;
|
||||
esac
|
@ -46,8 +46,6 @@ setEnvVar CI_COMMIT $TRAVIS_COMMIT
|
||||
setEnvVar CI_COMMIT_RANGE $TRAVIS_COMMIT_RANGE
|
||||
setEnvVar CI_PULL_REQUEST $TRAVIS_PULL_REQUEST
|
||||
setEnvVar PROJECT_ROOT $(cd ${thisDir}/../..; pwd)
|
||||
# WARNING: Secrets (do not print).
|
||||
export CI_SECRET_AIO_DEPLOY_FIREBASE_TOKEN=$FIREBASE_TOKEN
|
||||
|
||||
if [[ ${TRAVIS:-} ]]; then
|
||||
case ${CI_MODE} in
|
||||
@ -66,11 +64,6 @@ if [[ ${TRAVIS:-} ]]; then
|
||||
browserstack_optional)
|
||||
setEnvVar KARMA_JS_BROWSERS `node -e "console.log(require('/home/travis/build/angular/angular/browser-providers.conf').browserstackAliases.CI_OPTIONAL.join(','))"`
|
||||
;;
|
||||
aio)
|
||||
# Determine the current stable branch.
|
||||
readonly versionRe="^\s*([0-9]+\.[0-9]+)\.[0-9]+.*$"
|
||||
setEnvVar STABLE_BRANCH `npm info @angular/core dist-tags.latest | sed -r "s/$versionRe/\1.x/"`
|
||||
;;
|
||||
esac
|
||||
else
|
||||
setEnvVar KARMA_JS_BROWSERS Chrome
|
||||
|
Reference in New Issue
Block a user