Skip to content

Commit 2f95a03

Browse files
committed
Merge branch 'autopublish'
Conflicts: .travis.yml admin/build.sh admin/encryptAll.sh
2 parents 8af41c1 + b68e449 commit 2f95a03

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

Diff for: .travis.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
language: scala
22

3-
# Don't commit sensitive files, commit the encrypted version: admin/encrypt.sh $SENSITIVE # keep it secret, add $SENSITIVE.enc to the repo
4-
# On travis: admin/decrypt.sh $SENSITIVE
53
env:
6-
- secure: "whJQqI/7G+kUJoCCGQYbv3Y/T2Cx3EcBKfCyvMkZaVgo0wFEOUguh8I+4QqRyf9cC/uPmzwCzV9uwXsNDMcY78jouY05A+fCEnUol/9TuF5PWmXF6Yr/UmmYoCQe4pioXsbXa4uOy18kLzE0h2sOIrJ5A9NL8/58iVgl4E3pwvk="
4+
global:
5+
- PUBLISH_JDK=openjdk6 # admin/build.sh only publishes when running on this jdk
6+
# Don't commit sensitive files, instead commit a version encrypted with $SECRET,
7+
# this environment variable is encrypted with this repo's private key and stored below:
8+
# (See http://docs.travis-ci.com/user/environment-variables/#Secure-Variables.)
9+
- secure: "whJQqI/7G+kUJoCCGQYbv3Y/T2Cx3EcBKfCyvMkZaVgo0wFEOUguh8I+4QqRyf9cC/uPmzwCzV9uwXsNDMcY78jouY05A+fCEnUol/9TuF5PWmXF6Yr/UmmYoCQe4pioXsbXa4uOy18kLzE0h2sOIrJ5A9NL8/58iVgl4E3pwvk="
10+
711
script:
812
- admin/build.sh
913
scala:

Diff for: admin/build.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@
55
# git on travis does not fetch tags, but we have TRAVIS_TAG
66
# headTag=$(git describe --exact-match ||:)
77

8-
if [[ "$TRAVIS_TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-[A-Za-z0-9-]+)? ]]; then
8+
if [ "$TRAVIS_JDK_VERSION" == "$PUBLISH_JDK" ] && [[ "$TRAVIS_TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-[A-Za-z0-9-]+)? ]]; then
99
echo "Going to release from tag $TRAVIS_TAG!"
1010
myVer=$(echo $TRAVIS_TAG | sed -e s/^v//)
11-
export publishVersion='set every version := "'$myVer'"'
12-
export extraTarget="publish-signed"
11+
publishVersion='set every version := "'$myVer'"'
12+
extraTarget="publish-signed"
13+
1314
cat admin/gpg.sbt >> project/plugins.sbt
1415
admin/decrypt.sh sensitive.sbt
1516
(cd admin/ && ./decrypt.sh secring.asc)

Diff for: admin/encryptAll.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ travis encrypt SECRET=$SECRET
1616
admin/encrypt.sh admin/secring.asc
1717
admin/encrypt.sh sensitive.sbt
1818

19-
# rm sensitive.sbt admin/secring.asc
19+
echo "Remember to rm sensitive.sbt admin/secring.asc -- once you do, they cannot be recovered (except on Travis)!"

0 commit comments

Comments
 (0)