-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '2.0.x' into version-2.0.1
- Loading branch information
Showing
7 changed files
with
84 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
## Tag Driven Releasing | ||
|
||
Copied from https://github.com/scala/scala-java8-compat/commit/4a6cfc97cd95227b86650410e1b632e5ff79335b. | ||
|
||
### Background Reading | ||
|
||
- http://docs.travis-ci.com/user/environment-variables/ | ||
|
@@ -14,48 +12,61 @@ To configure tag driven releases from Travis CI. | |
|
||
1. Generate a key pair for this repository with `./admin/genKeyPair.sh`. | ||
Edit `.travis.yml` and `admin/build.sh` as prompted. | ||
2. Publish the public key to https://pgp.mit.edu | ||
3. Store other secrets as encrypted environment variables with `admin/encryptEnvVars.sh`. | ||
1. Publish the public key to https://pgp.mit.edu | ||
1. Store other secrets as encrypted environment variables with `admin/encryptEnvVars.sh`. | ||
Edit `.travis.yml` as prompted. | ||
4. Edit `.travis.yml` to use `./admin/build.sh` as the build script, | ||
1. Edit `.travis.yml` to use `./admin/build.sh` as the build script, | ||
and edit that script to use the tasks required for this project. | ||
5. Edit `.travis.yml` to select which JDK will be used for publishing. | ||
1. Edit `build.sbt`'s `scalaVersionsByJvm in ThisBuild` to select Scala and JVM version | ||
combinations that will be used for publishing. | ||
|
||
It is important to add comments in .travis.yml to identify the name | ||
It is important to add comments in `.travis.yml` to identify the name | ||
of each environment variable encoded in a `:secure` section. | ||
|
||
After all of these steps, your .travis.yml should contain config of the | ||
form: | ||
|
||
language: scala | ||
env: | ||
global: | ||
- PUBLISH_JDK=openjdk6 | ||
# PGP_PASSPHRASE | ||
- secure: "XXXXXX" | ||
# SONA_USER | ||
- secure: "XXXXXX" | ||
# SONA_PASS | ||
- secure: "XXXXXX" | ||
script: admin/build.sh | ||
After these steps, your `.travis.yml` should contain config of the form: | ||
|
||
``` | ||
language: scala | ||
env: | ||
global: | ||
# PGP_PASSPHRASE | ||
- secure: "XXXXXX" | ||
# SONA_USER | ||
- secure: "XXXXXX" | ||
# SONA_PASS | ||
- secure: "XXXXXX" | ||
script: admin/build.sh | ||
jdk: | ||
- openjdk6 | ||
- oraclejdk8 | ||
notifications: | ||
email: | ||
- [email protected] | ||
``` | ||
|
||
If Sonatype credentials change in the future, step 3 can be repeated | ||
without generating a new key. | ||
|
||
Be sure to use SBT 0.13.7 or higher to avoid [#1430](https://github.com/sbt/sbt/issues/1430)! | ||
|
||
### Testing | ||
|
||
1. Follow the release process below to create a dummy release (e.g. 0.1.0-TEST1). | ||
1. Follow the release process below to create a dummy release (e.g., `v0.1.0-TEST1`). | ||
Confirm that the release was staged to Sonatype but do not release it to Maven | ||
central. Instead, drop the staging repository. | ||
|
||
### Performing a release | ||
|
||
1. Create a GitHub "Release" (with a corresponding tag) via the GitHub | ||
1. Create a GitHub "Release" with a corresponding tag (e.g., `v0.1.1`) via the GitHub | ||
web interface. | ||
2. Travis CI will schedule a build for this release. Review the build logs. | ||
3. Log into https://oss.sonatype.org/ and identify the staging repository. | ||
4. Sanity check its contents | ||
5. Release staging repository to Maven and send out release announcement. | ||
|
||
1. The release will be published using the Scala and JVM version combinations specified | ||
in `scalaVersionsByJvm` in `build.sbt`. | ||
- If you need to release against a different Scala version, include the Scala version | ||
and the JVM version to use in the tag name, separated by `#`s (e.g., `v0.1.1#2.13.0-M1#8`). | ||
Note that the JVM version needs to be listed in `.travis.yml` for the build to run. | ||
1. Travis CI will schedule a build for this release. Review the build logs. | ||
1. Log into https://oss.sonatype.org/ and identify the staging repository. | ||
1. Sanity check its contents. | ||
1. Release staging repository to Maven and send out release announcement. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
sbt.version=0.13.8 | ||
sbt.version=0.13.15 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
addSbtPlugin("org.scala-lang.modules" % "scala-module-plugin" % "1.0.3") | ||
addSbtPlugin("org.scala-lang.modules" % "scala-module-plugin" % "1.0.8") |