Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Commit 96bdb0a

Browse files
committed
chore: regenerate Personal access tokens after accidental leak
1 parent e2b8e34 commit 96bdb0a

File tree

3 files changed

+35
-18
lines changed

3 files changed

+35
-18
lines changed

.travis.yml

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ env:
1919
TESTS=dart2js
2020
global:
2121
- CHROME_BIN=/usr/bin/google-chrome
22-
# https://github.com/angular/angular.dart/commit/40563c891ed63e86b72d160fcafc6bfda0d21577
23-
# was good, but I'd recommend to regenerate leaked access token before
24-
# someone would use it in name of evil
22+
- secure: "AKoqpZ699egF0i4uT/FQ5b4jIc0h+KVbhtVCql0uFxwFIl2HjOYgDayrUCAf6USfpW0LghZxJJhBamWOl/505eNSe9HvEd8JLg/to+1Fo9xi9llsu5ehmNH31/5pue4EvsrVuEap1qqL6/BNwI2cAryayU0p5tV0g8gL5h4IxG8="
2523

2624
# Don't test these branches.
2725
branches:
@@ -36,18 +34,4 @@ before_script:
3634
script:
3735
- ./scripts/travis/build.sh
3836
after_success:
39-
- ./scripts/travis/publish-docs.sh
40-
- curl -Lo travis_after_all.py https://raw.github.com/jbdeboer/travis_after_all/master/travis_after_all.py
41-
- python travis_after_all.py
42-
- export $(cat .to_export_back)
43-
- |
44-
if [ "$BUILD_LEADER" = "YES" ]; then
45-
if [ "$BUILD_AGGREGATE_STATUS" = "others_succeeded" ]; then
46-
echo "All Succeded! Submitting..."
47-
./scripts/travis/presubmit.sh
48-
else
49-
echo "Some Failed, not submitting"
50-
fi
51-
else
52-
echo "Other builds have not finished, not submitting"
53-
fi
37+
- ./scripts/travis/after-success.sh

scripts/travis/after-success.sh

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/bin/bash
2+
set -e
3+
4+
echo '*******************'
5+
echo '** AFTER_SUCCESS **'
6+
echo '*******************'
7+
8+
9+
echo '---------------------'
10+
echo '-- WAIT FOR OTHERS --'
11+
echo '---------------------'
12+
13+
curl -Lo travis_after_all.py https://raw.github.com/jbdeboer/travis_after_all/master/travis_after_all.py
14+
python travis_after_all.py
15+
. .to_export_back
16+
17+
echo BUILD_LEADER=$BUILD_LEADER
18+
echo BUILD_AGGREGATE_STATUS=$BUILD_AGGREGATE_STATUS
19+
20+
if [ "$BUILD_LEADER" = "YES" ]; then
21+
if [ "$BUILD_AGGREGATE_STATUS" = "others_succeeded" ]; then
22+
./scripts/travis/presubmit.sh
23+
else
24+
echo "ERROR: Some Failed, not submitting"
25+
fi
26+
else
27+
echo "ERROR: Other builds have not finished, not submitting"
28+
fi

scripts/travis/presubmit.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
#!/bin/bash
2+
set -e
23

34
# If we're on the presubmit branch, the stable Dart release, and all unit
45
# tests pass, merge the presubmit branch into master and push it.
56

7+
echo '***************'
8+
echo '** PRESUBMIT **'
9+
echo '***************'
10+
611

712
CHANNEL=`echo $JOB | cut -f 2 -d -`
813
SHA=`git rev-parse HEAD`

0 commit comments

Comments
 (0)