This repository was archived by the owner on Jun 23, 2020. It is now read-only.
File tree 3 files changed +16
-16
lines changed
3 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,9 @@ language: scala
2
2
3
3
env :
4
4
global :
5
- - PUBLISH_JDK=openjdk8 # admin/build.sh only publishes when running on this jdk
6
- # Don't commit sensitive files, instead commit a version encrypted with $SECRET,
7
- # this environment variable is encrypted with this repo's private key and stored below:
8
- # (See http://docs.travis-ci.com/user/environment-variables/#Secure-Variables.)
5
+ # Don't commit sensitive files, instead commit a version encrypted with $SECRET,
6
+ # this environment variable is encrypted with this repo's private key and stored below:
7
+ # (See http://docs.travis-ci.com/user/environment-variables/#Secure-Variables.)
9
8
- secure : " apmuVagS7WgWzg9HeDLCcX4INxazi50qukOfPkvluJjm58RCJsDwaZseXrQGqyPzRKuBnAetJ4NDWbZMRkm6QpTiH8grPwDl6iNUSVivvzOZGl3Iy8LvNxUv6CYoQBG+R7d8dW//1xcoHtT2zYo3dYEFpSelfNMMLADNUKXSQmI="
10
9
11
10
before_install :
@@ -14,16 +13,9 @@ before_install:
14
13
- sudo mv /tmp/hosts /etc/hosts
15
14
script :
16
15
- admin/build.sh
17
- scala :
18
- - 2.11.8
19
- - 2.12.0-RC1
20
16
jdk :
21
17
- openjdk6
22
18
- oraclejdk8
23
- matrix :
24
- exclude :
25
- - scala : 2.12.0-RC1
26
- jdk : openjdk6
27
19
notifications :
28
20
email :
29
21
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 ' "'
12
- extraTarget=" publish-signed"
12
+ extraTarget=" + publish-signed"
13
13
14
14
cat admin/gpg.sbt >> project/plugins.sbt
15
15
admin/decrypt.sh sensitive.sbt
16
16
(cd admin/ && ./decrypt.sh secring.asc)
17
17
fi
18
18
19
19
# the concurrentRestrictions should prevent spurious test failures, see https://github.com/spray/spray/pull/233
20
- sbt ++ $TRAVIS_SCALA_VERSION ' set concurrentRestrictions in Global += Tags.limit(Tags.Test, 1) ' " $publishVersion " clean update compile test $extraTarget
20
+ sbt " $publishVersion " clean update + compile + test +publishLocal $extraTarget
Original file line number Diff line number Diff line change @@ -8,8 +8,16 @@ lazy val commonSettings = scalaModuleSettings ++ Seq(
8
8
repoName := " scala-continuations" ,
9
9
organization := " org.scala-lang.plugins" ,
10
10
version := " 1.0.3-SNAPSHOT" ,
11
- scalaVersion := " 2.11.8" ,
12
- crossScalaVersions := Seq (" 2.11.8" , " 2.12.0-RC1" ),
11
+ scalaVersion := crossScalaVersions.value.head,
12
+ crossScalaVersions := {
13
+ val java = System .getProperty(" java.version" )
14
+ if (java.startsWith(" 1.6." ) || java.startsWith(" 1.7." ))
15
+ Seq (" 2.11.8" )
16
+ else if (java.startsWith(" 1.8." ) || java.startsWith(" 1.9." ))
17
+ Seq (" 2.12.0-RC1" )
18
+ else
19
+ sys.error(s " don't know what Scala versions to build on $java" )
20
+ },
13
21
snapshotScalaBinaryVersion := " 2.11.8" ,
14
22
scalacOptions ++= Seq (
15
23
" -deprecation" ,
You can’t perform that action at this time.
0 commit comments