Skip to content

Commit

Permalink
cross-build with 2.11 and 2.12
Browse files Browse the repository at this point in the history
  • Loading branch information
lrytz committed May 11, 2015
1 parent 34bbdaa commit acb60c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions admin/build.sh
Expand Up @@ -11,7 +11,7 @@ if [ "$TRAVIS_JDK_VERSION" == "$PUBLISH_JDK" ] && [[ "$TRAVIS_TAG" =~ ^v[0-9]+\.
echo "Going to release from tag $TRAVIS_TAG!"
myVer=$(echo $TRAVIS_TAG | sed -e s/^v//)
publishVersion='set every version := "'$myVer'"'
extraTarget="publish-signed"
extraTarget="+publish-signed"
cat admin/gpg.sbt >> project/plugins.sbt
cp admin/publish-settings.sbt .

Expand All @@ -22,4 +22,4 @@ if [ "$TRAVIS_JDK_VERSION" == "$PUBLISH_JDK" ] && [[ "$TRAVIS_TAG" =~ ^v[0-9]+\.
openssl aes-256-cbc -K $K -iv $IV -in admin/secring.asc.enc -out admin/secring.asc -d
fi

sbt "$publishVersion" clean update test publishLocal $extraTarget
sbt "$publishVersion" clean update +test +publishLocal $extraTarget
4 changes: 3 additions & 1 deletion build.sbt
Expand Up @@ -6,7 +6,9 @@ name := "scala-parser-combinators"

version := "1.0.5-SNAPSHOT"

scalaVersion := "2.11.6"
scalaVersion := crossScalaVersions.value.head

crossScalaVersions := Seq("2.11.6", "2.12.0-M1")

// important!! must come here (why?)
scalaModuleOsgiSettings
Expand Down

0 comments on commit acb60c6

Please sign in to comment.