forked from scala/scala
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use Travis for (vastly simpler) PR validation
use only sbt, avoid using external shell scripts and environment variables. we just need a few simple commands right here in .travis.yml doesn't publish anything to Artifactory. let's discuss the way forward on that at scala/scala-dev#507
- Loading branch information
Showing
2 changed files
with
36 additions
and
61 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 |
---|---|---|
@@ -1,11 +1,14 @@ | ||
#!/bin/bash | ||
|
||
if [ "${PRIV_KEY_SECRET}" != "" -a "${TRAVIS_PULL_REQUEST}" = "false" ] ; then | ||
openssl aes-256-cbc -pass "pass:$PRIV_KEY_SECRET" -in spec/id_dsa_travis.enc -out spec/id_dsa_travis -d -a | ||
chmod 600 spec/id_dsa_travis | ||
eval "$(ssh-agent)" | ||
ssh-add -D | ||
ssh-add spec/id_dsa_travis | ||
rsync -e "ssh -o StrictHostKeyChecking=no" -rzv build/spec/ [email protected]:/home/linuxsoft/archives/scala/spec/2.12/ | ||
fi | ||
# based on http://www.paperplanes.de/2013/8/13/deploying-your-jekyll-blog-to-s3-with-travis-ci.html | ||
|
||
set -e | ||
openssl aes-256-cbc -pass "pass:$PRIV_KEY_SECRET" -in spec/id_dsa_travis.enc -out spec/id_dsa_travis -d -a | ||
chmod 600 spec/id_dsa_travis | ||
eval "$(ssh-agent)" | ||
ssh-add -D | ||
ssh-add spec/id_dsa_travis | ||
|
||
# the key is restricted using forced commands so that it can only upload to the directory we need here | ||
rsync -e "ssh -o StrictHostKeyChecking=no" -rzv build/spec/ \ | ||
[email protected]:/home/linuxsoft/archives/scala/spec/2.12/ |