File tree 3 files changed +12
-7
lines changed
3 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 1
1
language : scala
2
2
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
5
3
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
+
7
11
script :
8
12
- admin/build.sh
9
13
scala :
Original file line number Diff line number Diff line change 5
5
# git on travis does not fetch tags, but we have TRAVIS_TAG
6
6
# headTag=$(git describe --exact-match ||:)
7
7
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
9
9
echo " Going to release from tag $TRAVIS_TAG !"
10
10
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
+
13
14
cat admin/gpg.sbt >> project/plugins.sbt
14
15
admin/decrypt.sh sensitive.sbt
15
16
(cd admin/ && ./decrypt.sh secring.asc)
Original file line number Diff line number Diff line change @@ -16,4 +16,4 @@ travis encrypt SECRET=$SECRET
16
16
admin/encrypt.sh admin/secring.asc
17
17
admin/encrypt.sh sensitive.sbt
18
18
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