This repository was archived by the owner on Jun 23, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed
Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,12 @@ language: scala
22script :
33 # the concurrentRestrictions should prevent spurious test failures, see https://github.com/spray/spray/pull/233
44 - sbt ++$TRAVIS_SCALA_VERSION 'set concurrentRestrictions in Global += Tags.limit(Tags.Test, 1)' clean update compile test
5+ # TODO: -Dbuild.publish.user=${SONATYPE_USER} -Dbuild.publish.password=${SONATYPE_PASS} $(bash project/release_on_tag.sh)
56scala :
67 - 2.11.0-SNAPSHOT
78jdk :
89 - openjdk6
9- - openjdk7
10+ # - openjdk7
1011notifications :
1112 email :
1213 - adriaan.moors@typesafe.com
Original file line number Diff line number Diff line change 1+ # /bin/bash
2+
3+ # if the current commit has a tag named like v(\d+\.\d+\.\d+.*),
4+ # and we're running on the right jdk/branch,
5+ # echo the sbt commands that publish a release with the version derived from the tag
6+ publishJdk=openjdk6
7+ publishBranch=master
8+ publishScalaVersion=2.11.0-M7
9+
10+ unset tag version
11+
12+ # Exit without error when no (annotated) tag is found.
13+ tag=$( git describe HEAD --exact-match 2> /dev/null || exit 0)
14+
15+ version=$( echo $tag | perl -pe ' s/v(\d+\.\d+\.\d+.*)/$1/' )
16+
17+ if [[ " $version " != " " && \
18+ " ${TRAVIS_PULL_REQUEST} " == " false" && \
19+ " ${JAVA_HOME} " == " $( jdk_switcher home $publishJdk ) " && \
20+ " ${TRAVIS_BRANCH} " == " ${publishBranch} " && \
21+ " ${TRAVIS_SCALA_VERSION} " == " ${publishScalaVersion} " ]]; then
22+ echo \' " set every version := $version " \' publish-signed
23+ fi
You can’t perform that action at this time.
0 commit comments