This repository was archived by the owner on May 3, 2018. It is now read-only.
File tree 3 files changed +16
-9
lines changed
3 files changed +16
-9
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ language: scala
2
2
3
3
env :
4
4
global :
5
- - PUBLISH_JDK=openjdk6 # admin/build.sh only publishes when running on this jdk
6
5
# Don't commit sensitive files, instead commit a version encrypted with $SECRET,
7
6
# this environment variable is encrypted with this repo's private key and stored below:
8
7
# (See http://docs.travis-ci.com/user/environment-variables/#Secure-Variables.)
11
10
script :
12
11
- admin/build.sh
13
12
14
- scala :
15
- - 2.11.2
16
13
jdk :
17
14
- openjdk6
18
- - openjdk7
15
+ - oraclejdk8
19
16
notifications :
20
17
email :
21
18
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_JDK_VERSION " == " $PUBLISH_JDK " ] && [ [ " $TRAVIS_TAG " =~ ^v[0-9]+\. [0-9]+\. [0-9]+ (-[A-Za-z0-9-]+)? ]]; then
8
+ if [[ " $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
11
publishVersion=' set every version := "' $myVer ' "'
@@ -16,4 +16,4 @@ if [ "$TRAVIS_JDK_VERSION" == "$PUBLISH_JDK" ] && [[ "$TRAVIS_TAG" =~ ^v[0-9]+\.
16
16
(cd admin/ && ./decrypt.sh secring.asc)
17
17
fi
18
18
19
- sbt ++ $TRAVIS_SCALA_VERSION " $publishVersion " compile $extraTarget
19
+ sbt " $publishVersion " compile $extraTarget
Original file line number Diff line number Diff line change 1
1
scalaModuleSettings
2
2
3
- version := " 0.7 .0-SNAPSHOT"
3
+ version := " 0.8 .0-SNAPSHOT"
4
4
5
- scalaVersion := " 2.11.4"
5
+ crossScalaVersions := {
6
+ val java = System .getProperty(" java.version" )
7
+ if (java.startsWith(" 1.6." ))
8
+ Seq (" 2.11.7" )
9
+ else if (java.startsWith(" 1.8." ))
10
+ Seq (" 2.12.0-M3" )
11
+ else
12
+ sys.error(s " don't know what Scala versions to build on $java" )
13
+ }
6
14
7
- snapshotScalaBinaryVersion := " 2.11.4"
15
+ scalaVersion := crossScalaVersions.value.head
16
+
17
+ snapshotScalaBinaryVersion := scalaVersion.value
8
18
9
19
// dependencies:
10
20
libraryDependencies += " org.scala-sbt" % " test-interface" % " 1.0"
You can’t perform that action at this time.
0 commit comments