Skip to content
This repository was archived by the owner on Jun 23, 2020. It is now read-only.

Commit 0595609

Browse files
committed
Disable openjdk7 (reduce load). Prep tag-driven releasing.
1 parent 0c31b00 commit 0595609

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ language: scala
22
script:
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)
56
scala:
67
- 2.11.0-SNAPSHOT
78
jdk:
89
- openjdk6
9-
- openjdk7
10+
# - openjdk7
1011
notifications:
1112
email:
1213
- adriaan.moors@typesafe.com

project/release_on_tag.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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

0 commit comments

Comments
 (0)