Skip to content
This repository was archived by the owner on May 3, 2018. It is now read-only.

Conversation

@adriaanm
Copy link
Contributor

@adriaanm adriaanm commented Dec 4, 2014

Modify travis build to derive the project version from TRAVIS_TAG (when
set). as well as to have sbt run the publish-signed task if the
environment is right. The tag must match the semver regex
^v[0-9]+\.[0-9]+\.[0-9]+(-[A-Za-z0-9-]+)?, and the jdk we're running on
must match PUBLISH_JDK (set in .travis.yml).

For every repo, you must create the following files (not included here)
according to the instructions in admin/gpg.sbt:
- admin/pubring.asc (commit)
- admin/secring.asc (DO NOT COMMIT)
- sensitive.sbt (DO NOT COMMIT)
- passphrase for secring.asc
- api token for staging to sonatype

Generate these using admin/encryptAll.sh:
- admin/secring.asc.enc (commit)
- sensitive.sbt.enc (commit)

Note that encryptAll.sh spits out a "- secure .... " line, that you need
to add to .travis.yml's env section, so that travis can supply the
SECRET env variable, which is used to decrypt the sensitive files above.

Conflicts:
.travis.yml

Modify travis build to derive the project version from TRAVIS_TAG (when set).
as well as to have sbt run the `publish-signed` task if the environment is right.
The tag must match the semver regex `^v[0-9]+\.[0-9]+\.[0-9]+(-[A-Za-z0-9-]+)?`,
and the jdk we're running on must match PUBLISH_JDK (set in .travis.yml).

For every repo, you must create the following files (not included here)
according to the instructions in admin/gpg.sbt:
 - admin/pubring.asc      (commit)
 - admin/secring.asc      (DO NOT COMMIT)
 - sensitive.sbt          (DO NOT COMMIT)
    - passphrase for secring.asc
	- api token for staging to sonatype

Generate these using `admin/encryptAll.sh`:
 - admin/secring.asc.enc  (commit)
 - sensitive.sbt.enc      (commit)

Note that `encryptAll.sh` spits out a "- secure .... " line,
that you need to add to `.travis.yml`'s `env` section, so that
travis can supply the SECRET env variable, which is used to
decrypt the sensitive files above.

Conflicts:
	.travis.yml
adriaanm added a commit that referenced this pull request Dec 4, 2014
Support for tag-driven publishing on Travis.
@adriaanm adriaanm merged commit 7caea33 into scala:master Dec 4, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant