From eeeb5fcfe3440b126680b0c54bd33e79cacd7724 Mon Sep 17 00:00:00 2001 From: Jason Zaugg Date: Thu, 18 Dec 2014 15:48:09 +1000 Subject: Support tag driven publishing I started with: https://github.com/scala/scala-swing/commit/a6a8e1d77e#diff-3acefdae08499733e855dd23e1af933dR8 And: - modified the regex that derives the version from the tag to handle the fact we have the scala binary version appended to our tags - Removed unnessary cross building with Scala 2.11 (as this is on the 2.10.x branch) - generated a key pair for the async repository - added passphrase for that key, and sonatype credentials, to sensitive.sbt - encrypted the secrets with the travis key. --- .travis.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 7fb860d..975aabf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,17 @@ language: scala + +env: + global: + - PUBLISH_JDK=openjdk6 # admin/build.sh only publishes when running on this jdk +# Don't commit sensitive files, instead commit a version encrypted with $SECRET, +# this environment variable is encrypted with this repo's private key and stored below: +# (See http://docs.travis-ci.com/user/environment-variables/#Secure-Variables.) + - secure: "YO/7YiWEirzz0EAy7oVNmAKroj4qCLZNMkPS+xW/VgeGjuEV+Nk1S7pwxF0o2OggSxIQ+a0lWSrOPQqSXMjOstDIzzGeYfuAt0+0fupXtDDge0mXpCCMadrvYzff1/5XYX0dJ+pjJmz6IgF1hliPJHIuddhhdqPxdHWTHAKm9ME=" + script: - - sbt ++$TRAVIS_SCALA_VERSION clean test publishLocal + - admin/build.sh scala: - - 2.10.3 - - 2.11.0-M6 + - 2.10.4 jdk: - openjdk6 - openjdk7 -- cgit v1.2.3