forked from scala/scala
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to Travis CI for building releases
Both nightly and full releases migrate to Travis. PR validation remains on our Jenkins cluster for now. Main difference is that we don't use our artifactory as a cache, nor do we need to wipe stuff, since Travis gives us a fresh machine. We do cache the ivy/sbt cache. TODO: decide whether to publish a "mergely" (a nightly for each merge, or skip this script on merge and use a scheduled job for publishing the nightly.) Note: we don't use `travis encrypt-file` because it nukes the iv/key variables on each invocation.. too much magic Instead, I did: ``` cat /dev/urandom | head -c 10000 | openssl sha1 > ./secret openssl aes-256-cbc -pass "file:./secret" -in gpg_subkey -out admin/files/gpg_subkey.enc travis encrypt "GPG_SUBKEY_SECRET=$(cat ./secret)" ```
- Loading branch information
Showing
11 changed files
with
161 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
realm=Artifactory Realm | ||
host=scala-ci.typesafe.com | ||
user=scala-ci | ||
password=${PRIVATE_REPO_PASS} |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
realm=Sonatype Nexus Repository Manager | ||
host=oss.sonatype.org | ||
user=${SONA_USER} | ||
password=${SONA_PASS} |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.0") |
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<settings> | ||
<servers> | ||
<server> | ||
<id>sonatype-nexus</id> | ||
<username>${SONA_USER}</username> | ||
<password>${SONA_PASS}</password> | ||
</server> | ||
<server> | ||
<id>private-repo</id> | ||
<username>scala-ci</username> | ||
<password>${PRIVATE_REPO_PASS}</password> | ||
</server> | ||
</servers> | ||
|
||
<mirrors> | ||
<!-- | ||
codehaus doesn't exist anymore. it doesn't 404, but serves up | ||
bad POMs, so we disable it globally by overriding with a mirror | ||
with an invalid URL. | ||
this entry could be removed after the scala-ide/scala-refactoring | ||
repo removes their reference to codehaus-snapshots from their pom.xml | ||
--> | ||
<mirror> | ||
<id>codehaus-snapshots-mirror</id> | ||
<name>Maven Codehaus snapshot repository</name> | ||
<url>file:///codehaus-does-not-exist-anymore</url> | ||
<mirrorOf>codehaus-snapshots</mirrorOf> | ||
</mirror> | ||
</mirrors> | ||
</settings> |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
user = ${SONA_USER}:${SONA_PASS} |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
|
||
|
||
sensitive() { | ||
perl -p -e 's/\$\{([^}]+)\}/defined $ENV{$1} ? $ENV{$1} : $&/eg' < files/credentials-private-repo > ~/.credentials-private-repo | ||
perl -p -e 's/\$\{([^}]+)\}/defined $ENV{$1} ? $ENV{$1} : $&/eg' < files/credentials-sonatype > ~/.credentials-sonatype | ||
perl -p -e 's/\$\{([^}]+)\}/defined $ENV{$1} ? $ENV{$1} : $&/eg' < files/sonatype-curl > ~/.sonatype-curl | ||
# perl -p -e 's/\$\{([^}]+)\}/defined $ENV{$1} ? $ENV{$1} : $&/eg' < files/m2-settings.xml > ~/.m2/settings.xml -- not needed anymore (used for ide integration?) | ||
|
||
openssl aes-256-cbc -d -pass "pass:$GPG_SUBKEY_SECRET" -in files/gpg_subkey.enc | gpg --import | ||
} | ||
|
||
# directories needed by sensitive part | ||
# mkdir -p ~/.m2 -- not needed anymore (used for ide integration?) | ||
mkdir -p ~/.ssh | ||
|
||
# don't let anything escape from the sensitive part (e.g. leak environment var by echoing to log on failure) | ||
sensitive >/dev/null 2>&1 | ||
|
||
# pgp signing doesn't work without public key?? | ||
gpg --keyserver pgp.mit.edu --recv-keys 0xa9052b1b6d92e560 | ||
|
||
# just to verify | ||
gpg --list-keys | ||
gpg --list-secret-keys | ||
|
||
mkdir -p ~/.sbt/0.13/plugins | ||
cp files/gpg.sbt ~/.sbt/0.13/plugins/ | ||
|
||
export SBT_CMD=$(which sbt) |
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