File tree Expand file tree Collapse file tree 3 files changed +12
-7
lines changed Expand file tree Collapse file tree 3 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 11language : 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
53env :
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+
711script :
812 - admin/build.sh
913scala :
Original file line number Diff line number Diff line change 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)
Original file line number Diff line number Diff line change @@ -16,4 +16,4 @@ travis encrypt SECRET=$SECRET
1616admin/encrypt.sh admin/secring.asc
1717admin/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)! "
You can’t perform that action at this time.
0 commit comments