@@ -17,31 +17,40 @@ To configure tag driven releases from Travis CI.
1717 Edit ` .travis.yml ` as prompted.
1818 1 . Edit ` .travis.yml ` to use ` ./admin/build.sh ` as the build script,
1919 and edit that script to use the tasks required for this project.
20- 1 . Edit ` .travis.yml ` to select which JDK will be used for publishing.
20+ 1 . Edit ` build.sbt ` 's ` scalaVersionsByJvm ` to select Scala and JVM version combinations that
21+ will be used for publishing.
2122
22- It is important to add comments in .travis.yml to identify the name
23+ It is important to add comments in ` .travis.yml ` to identify the name
2324of each environment variable encoded in a ` :secure ` section.
2425
25- After all of these steps, your .travis.yml should contain config of the
26- form:
27-
28- language: scala
29- env:
30- global:
31- - PUBLISH_JDK=oraclejdk8
32- # PGP_PASSPHRASE
33- - secure: "XXXXXX"
34- # SONA_USER
35- - secure: "XXXXXX"
36- # SONA_PASS
37- - secure: "XXXXXX"
38- script: admin/build.sh
26+ After these steps, your ` .travis.yml ` should contain config of the form:
27+
28+ ```
29+ language: scala
30+
31+ env:
32+ global:
33+ # PGP_PASSPHRASE
34+ - secure: "XXXXXX"
35+ # SONA_USER
36+ - secure: "XXXXXX"
37+ # SONA_PASS
38+ - secure: "XXXXXX"
39+
40+ script: admin/build.sh
41+
42+ jdk:
43+ - openjdk6
44+ - oraclejdk8
45+
46+ notifications:
47+ email:
48+ 49+ ```
3950
4051If Sonatype credentials change in the future, step 3 can be repeated
4152without generating a new key.
4253
43- Be sure to use SBT 0.13.7 or higher to avoid [ #1430 ] ( https://github.com/sbt/sbt/issues/1430 ) !
44-
4554### Testing
4655
4756 1 . Follow the release process below to create a dummy release (e.g., ` v0.1.0-TEST1 ` ).
@@ -52,9 +61,11 @@ Be sure to use SBT 0.13.7 or higher to avoid [#1430](https://github.com/sbt/sbt/
5261
5362 1 . Create a GitHub "Release" with a corresponding tag (e.g., ` v0.1.1 ` ) via the GitHub
5463 web interface.
55- 1 . The release will be published using all Scala versions in ` build.sbt ` 's ` crossScalaVersions ` .
56- If you need to release it against a different Scala version, include it in the tag
57- name after a ` # ` (e.g., ` v0.1.1#2.13.0-M1 ` ).
64+ 1 . The release will be published using the Scala and JVM version combinations specified
65+ in ` scalaVersionsByJvm ` in ` build.sbt ` .
66+ - If you need to release against a different Scala version, include the Scala version
67+ and the JVM version to use in the tag name, separated by ` # ` s (e.g., ` v0.1.1#2.13.0-M1#8 ` ).
68+ Note that the JVM version needs to be listed in ` .travis.yml ` for the build to run.
5869 1 . Travis CI will schedule a build for this release. Review the build logs.
5970 1 . Log into https://oss.sonatype.org/ and identify the staging repository.
6071 1 . Sanity check its contents.
0 commit comments