ci: delete obsolete files and move scripts/ci-lite/ to scripts/ci/

This commit is contained in:
Igor Minar
2017-03-05 08:03:38 -08:00
committed by Igor Minar
parent a24e652f2b
commit 91fe3aadbc
34 changed files with 5 additions and 515 deletions
-34
View File
@@ -1,34 +0,0 @@
#!/bin/bash
set -e -o pipefail
echo '*******************'
echo '** AFTER_SCRIPT **'
echo '*******************'
if [ "$MODE" = "saucelabs" ]; then
./scripts/sauce/sauce_connect_teardown.sh
fi
if [ "$MODE" = "browserstack" ]; then
./scripts/browserstack/teardown_tunnel.sh
fi
echo '---------------------'
echo '-- WAIT FOR OTHERS --'
echo '---------------------'
python ./scripts/ci/travis_after_all.py
. .to_export_back
echo BUILD_LEADER=$BUILD_LEADER
echo BUILD_AGGREGATE_STATUS=$BUILD_AGGREGATE_STATUS
if [ "$BUILD_LEADER" = "YES" ]; then
if [ "$BUILD_AGGREGATE_STATUS" = "others_succeeded" ]; then
./scripts/ci/presubmit-queue-success.sh
else
echo "ERROR: Some Failed, not submitting"
fi
else
echo "ERROR: Other builds have not finished, not submitting"
fi
-42
View File
@@ -1,42 +0,0 @@
#!/bin/bash
set -e
CPUPATH=/sys/devices/system/cpu
WAKE_LOCK_NAME=ngperf
set_governor() {
echo "Setting CPU frequency governor to \"$1\""
adb shell 'for f in '$CPUPATH'/cpu*/cpufreq/scaling_governor ; do echo '$1' > $f; done'
}
wake_lock() {
echo "Setting wake lock $WAKE_LOCK_NAME"
adb shell "echo $WAKE_LOCK_NAME > /sys/power/wake_lock"
}
wake_unlock() {
echo "Removing wake lock $WAKE_LOCK_NAME"
adb shell "echo $WAKE_LOCK_NAME > /sys/power/wake_unlock"
}
case "$1" in
(performance)
set_governor "performance"
;;
(powersave)
set_governor "powersave"
;;
(ondemand)
set_governor "ondemand"
;;
(wakelock)
wake_lock
;;
(wakeunlock)
wake_unlock
;;
(*)
echo "Usage: $0 performance|powersave|ondemand|wakelock|wakeunlock"
exit 1
;;
esac
-37
View File
@@ -1,37 +0,0 @@
#!/bin/bash
set -ex
MODE=$1
echo =============================================================================
# go to project dir
SCRIPT_DIR=$(dirname $0)
cd $SCRIPT_DIR/../..
if [ "$MODE" = "dart_ddc" ]; then
${SCRIPT_DIR}/build_$MODE.sh
elif [[ $MODE = saucelabs* ]] ; then
${SCRIPT_DIR}/test_saucelabs.sh $MODE
elif [[ $MODE = browserstack* ]] ; then
${SCRIPT_DIR}/test_browserstack.sh $MODE
elif [ "$MODE" = "lint" ]; then
./node_modules/.bin/gulp static-checks
elif [ "$MODE" = "build_only" ]; then
${SCRIPT_DIR}/build_js.sh
${SCRIPT_DIR}/build_dart.sh
elif [ "$MODE" = "typescript_next" ]; then
# Ignore complaints about unsatisfied peer deps
npm install typescript@next || true
${SCRIPT_DIR}/build_js.sh
# Run typings test using the GA release of TypeScript
# This ensures that users aren't forced onto beta/nightly
npm install [email protected]
./node_modules/.bin/gulp \!test.typings
elif [ "$MODE" = "payload" ]; then
source ${SCRIPT_DIR}/env_dart.sh
./node_modules/.bin/gulp test.payload.dart/ci
node --max-old-space-size=2000 ./node_modules/.bin/gulp test.payload.js/ci
else
${SCRIPT_DIR}/build_$MODE.sh
${SCRIPT_DIR}/test_$MODE.sh
fi
-11
View File
@@ -1,11 +0,0 @@
#!/bin/bash
set -ex
echo =============================================================================
# go to project dir
SCRIPT_DIR=$(dirname $0)
# this is needed because we're running JS tests in Dartium too
source $SCRIPT_DIR/env_dart.sh
cd $SCRIPT_DIR/../..
node --max-old-space-size=2000 ./node_modules/.bin/gulp build.js --useBundles
-15
View File
@@ -1,15 +0,0 @@
#!/bin/bash
set -e
SCRIPT_DIR=$(dirname $0)
cd $SCRIPT_DIR
if [[ $PERF_BROWSERS =~ .*Android.* || $E2E_BROWSERS =~ .*Android.* ]]
then
adb root usb
adb wait-for-device devices
adb reverse tcp:8001 tcp:8001
adb reverse tcp:8002 tcp:8002
./android_cpu.sh performance
./android_cpu.sh wakelock
fi
@@ -1,10 +1,10 @@
#!/bin/bash
#!/usr/bin/env bash
set -e -x
set -u -e -o pipefail
# Setup environment
cd `dirname $0`
source ../ci-lite/env.sh
readonly thisDir=$(cd $(dirname $0); pwd)
source ${thisDir}/_travis-fold.sh
# This script basically follows the instructions to download an old version of Chromium: https://www.chromium.org/getting-involved/download-chromium
@@ -80,6 +80,6 @@ if [[ "$EXISTING_VERSION" != "$CHROMIUM_VERSION" ]]; then
fi
if [[ "$CHROMIUM_VERSION" != "$LATEST_CHROMIUM_VERSION" ]]; then
echo "New version of Chromium available. Update install_chromium.sh with build number: ${LATEST_CHROMIUM_VERSION}"
echo "New version of Chromium available. Update install-chromium.sh with build number: ${LATEST_CHROMIUM_VERSION}"
fi
-14
View File
@@ -1,14 +0,0 @@
#!/bin/bash
platform=`uname`
if [[ "$platform" == 'Linux' ]]; then
`google-chrome --js-flags="--expose-gc"`
elif [[ "$platform" == 'Darwin' ]]; then
`/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary \
--enable-memory-info \
--enable-precise-memory-info \
--enable-memory-benchmarking \
--js-flags="--expose-gc --allow-natives-syntax" \
--disable-web-security \
--remote-debugging-port=9222`
fi
-21
View File
@@ -1,21 +0,0 @@
#!/bin/bash
set -e -o pipefail
if [ "$TRAVIS_REPO_SLUG" = "angular/angular" ]; then
if [[ $TRAVIS_BRANCH == "presubmit-"* ]]; then
echo '*********************'
echo '** PRESUBMIT SETUP **'
echo '*********************'
git config credential.helper "store --file=.git/credentials"
# travis encrypt GITHUB_TOKEN_ANGULAR=??? --repo=angular/angular
echo "https://${GITHUB_TOKEN_ANGULAR}:@github.com" > .git/credentials
git config user.name "`git --no-pager show -s --format='%cN' HEAD`"
git config user.email "`git --no-pager show -s --format='%cE' HEAD`"
git remote add upstream https://github.com/angular/angular.git
git fetch upstream master
git rebase upstream/master
fi
fi
-52
View File
@@ -1,52 +0,0 @@
#!/bin/bash
set -e -o pipefail
# If we're on the presubmit branch, the dev Dart release, and all unit
# tests pass, merge the presubmit branch into master and push it.
CHANNEL=`echo $JOB | cut -f 2 -d -`
SHA=`git rev-parse HEAD`
echo Current channel is: $CHANNEL
echo Current branch is: $TRAVIS_BRANCH
echo Test result is: $TRAVIS_TEST_RESULT
if [ "$TRAVIS_REPO_SLUG" = "angular/angular" ]; then
if [ $TRAVIS_TEST_RESULT -eq 0 ] && [[ $TRAVIS_BRANCH == "presubmit-"* ]]; then
echo '***************'
echo '** PRESUBMIT **'
echo '***************'
echo
echo "Pushing HEAD to master..."
git stash
git fetch upstream master
git rebase upstream/master
if [[ $TRAVIS_BRANCH == *"-pr-"* ]]; then
PR_NO=`echo $TRAVIS_BRANCH | sed -e 's/^.*-pr-//'`
if echo $PR_NO | egrep -q '^[0-9]+$'; then
echo "Adding Closes #$PR_NO"
git filter-branch -f --msg-filter "cat /dev/stdin && echo && echo Closes \#$PR_NO" HEAD~1..HEAD
fi
fi
if git push upstream HEAD:master; then
echo "$TRAVIS_BRANCH has been merged into master, deleting..."
git push upstream :"$TRAVIS_BRANCH"
else
COMITTER_EMAIL=`git --no-pager show -s --format='%cE' HEAD`
echo Sending failure email to ${COMITTER_EMAIL}
mail \
-s "Failed to merge branch $TRAVIS_BRANCH to master" \
${COMMITTER_EMAIL} \
<< EOM
Your travis branch ${TRAVIS_BRANCH} failed!
https://travis-ci.org/angular/angular/builds/${TRAVIS_JOB_ID}
Please take a look.
EOM
fi
fi
fi
-14
View File
@@ -1,14 +0,0 @@
#!/bin/bash
set -e
MODE=$1
echo =============================================================================
# go to project dir
SCRIPT_DIR=$(dirname $0)
cd $SCRIPT_DIR/../..
./scripts/browserstack/start_tunnel.sh
./scripts/browserstack/waitfor_tunnel.sh
./node_modules/.bin/gulp build.js.dev
./node_modules/.bin/gulp test.unit.js.browserstack/ci --mode=$MODE
-32
View File
@@ -1,32 +0,0 @@
#!/bin/bash
set -ex
echo =============================================================================
# go to project dir
SCRIPT_DIR=$(dirname $0)
cd $SCRIPT_DIR/../..
./node_modules/.bin/webdriver-manager update
function killServer () {
kill $serverPid
}
./node_modules/.bin/gulp serve.js.prod&
serverPid=$!
trap killServer EXIT
# wait for server to come up!
sleep 10
# Let protractor use default browser unless one is specified.
OPTIONS="";
if [[ -n "$E2E_BROWSERS" ]]; then
OPTIONS="--browsers=$E2E_BROWSERS";
fi
./node_modules/.bin/protractor protractor-js.conf.js $OPTIONS
./node_modules/.bin/protractor protractor-js.conf.js $OPTIONS --benchmark --dryrun
./node_modules/.bin/protractor dist/js/cjs/benchpress/test/firefox_extension/conf.js
-17
View File
@@ -1,17 +0,0 @@
#!/bin/bash
set -ex
echo =============================================================================
# go to project dir
SCRIPT_DIR=$(dirname $0)
cd $SCRIPT_DIR/../..
# Issue #945 Travis still uses Dartium, and hence needs the env setup.
# For local tests, when a developer doesn't have Dart, don't source env_dart.sh
if ${SCRIPT_DIR}/env_dart.sh 2>&1 > /dev/null ; then
source $SCRIPT_DIR/env_dart.sh
fi
./node_modules/.bin/gulp pre-test-checks
./node_modules/.bin/gulp test.js --browsers=${KARMA_JS_BROWSERS:-Chrome}
${SCRIPT_DIR}/test_e2e_js.sh
-14
View File
@@ -1,14 +0,0 @@
#!/bin/bash
set -e
MODE=$1
echo =============================================================================
# go to project dir
SCRIPT_DIR=$(dirname $0)
cd $SCRIPT_DIR/../..
./scripts/sauce/sauce_connect_setup.sh
./scripts/sauce/sauce_connect_block.sh
./node_modules/.bin/gulp build.js.dev
./node_modules/.bin/gulp test.unit.js.sauce/ci --mode=$MODE

Some files were not shown because too many files have changed in this diff Show More