Skip to content
This repository was archived by the owner on Sep 8, 2022. It is now read-only.

Commit 2aadd1e

Browse files
committed
Merge pull request #35 from SethTisue/v109-to-support-212m2
support 2.12.0-M2
2 parents 3bb2bd2 + e3a89f2 commit 2aadd1e

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ language: scala
55

66
env:
77
global:
8-
- PUBLISH_JDK=openjdk6
98
# PGP_PASSPHRASE
109
- secure: "XLe/gZXrGwJlKCgAUoEUIHwoh8js0IdlIazwUd5KKssZMQkPg4VfC5LLPl8iXCYIRe2JrgmD56b7eseiZF9kMxa1Rsz8fSMY0v3A0qwxRjbsxVQ2NqEvdq+TNOAhjo/OmPnipvTcDdAyq68Ca4nTSBtfBpy5t6X3Z4UIl8CWLdw="
1110
# SONA_USER
@@ -17,7 +16,7 @@ script: admin/build.sh
1716

1817
jdk:
1918
- openjdk6
20-
- openjdk7
19+
- oraclejdk8
2120

2221
notifications:
2322

admin/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ To configure tag driven releases from Travis CI.
1919
Edit `.travis.yml` as prompted.
2020
4. Edit `.travis.yml` to use `./admin/build.sh` as the build script,
2121
and edit that script to use the tasks required for this project.
22-
5. Edit `.travis.yml` to select which JDK will be used for publishing.
22+
5. Edit `build.sbt` to select which JDK will be used for publishing
23+
for which Scala versions.
2324

2425
It is important to add comments in .travis.yml to identify the name
2526
of each environment variable encoded in a `:secure` section.
@@ -30,7 +31,6 @@ form:
3031
language: scala
3132
env:
3233
global:
33-
- PUBLISH_JDK=openjdk6
3434
# PGP_PASSPHRASE
3535
- secure: "XXXXXX"
3636
# SONA_USER
@@ -58,4 +58,3 @@ Be sure to use SBT 0.13.7 or higher to avoid [#1430](https://github.com/sbt/sbt/
5858
3. Log into https://oss.sonatype.org/ and identify the staging repository.
5959
4. Sanity check its contents
6060
5. Release staging repository to Maven and send out release announcement.
61-

admin/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ set -e
77
# git on travis does not fetch tags, but we have TRAVIS_TAG
88
# headTag=$(git describe --exact-match ||:)
99

10-
if [ "$TRAVIS_JDK_VERSION" == "$PUBLISH_JDK" ] && [[ "$TRAVIS_TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-[A-Za-z0-9-]+)? ]]; then
10+
if [[ "$TRAVIS_TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-[A-Za-z0-9-]+)? ]]; then
1111
echo "Going to release from tag $TRAVIS_TAG!"
1212
myVer=$(echo $TRAVIS_TAG | sed -e s/^v//)
1313
publishVersion='set every version := "'$myVer'"'

build.sbt

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,19 @@ scalaModuleSettings
44

55
name := "scala-partest"
66

7-
version := "1.0.8-SNAPSHOT"
7+
version := "1.0.9-SNAPSHOT"
88

99
scalaVersion := crossScalaVersions.value.head
1010

11-
crossScalaVersions := Seq("2.11.6", "2.12.0-M1")
11+
crossScalaVersions := {
12+
val java = System.getProperty("java.version")
13+
if (java.startsWith("1.6."))
14+
Seq("2.11.6", "2.12.0-M1")
15+
else if (java.startsWith("1.8."))
16+
Seq("2.12.0-M2")
17+
else
18+
sys.error(s"don't know what Scala versions to build on $java")
19+
}
1220

1321
scalaXmlVersion := "1.0.4"
1422

0 commit comments

Comments
 (0)