diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2014-12-18 16:54:33 +1000 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2014-12-18 16:54:33 +1000 |
commit | 7577a844518b56556e54217720779fd5c5db6b66 (patch) | |
tree | f512709c4682ad6355c950770e9f8ec29a6977f5 /admin/encryptAll.sh | |
parent | 41ae70758a8c5b841a8b63445f82bd056a0a964f (diff) | |
parent | eeeb5fcfe3440b126680b0c54bd33e79cacd7724 (diff) | |
download | scala-async-7577a844518b56556e54217720779fd5c5db6b66.tar.gz scala-async-7577a844518b56556e54217720779fd5c5db6b66.tar.bz2 scala-async-7577a844518b56556e54217720779fd5c5db6b66.zip |
Merge pull request #100 from retronym/topic/tag-driven-releasev0.9.3_2.10v0.9.3-RC1_2.10
Support tag driven publishing
Diffstat (limited to 'admin/encryptAll.sh')
-rwxr-xr-x | admin/encryptAll.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/admin/encryptAll.sh b/admin/encryptAll.sh new file mode 100755 index 0000000..de7016b --- /dev/null +++ b/admin/encryptAll.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +# Based on https://gist.github.com/kzap/5819745: + +echo "This will encrypt the cleartext sensitive.sbt and admin/secring.asc, while making the encrypted versions available for decryption on Travis." +echo "Update your .travis.yml as directed, and delete the cleartext versions." +echo "Press enter to continue." +read + +# 1. create a secret, put it in an environment variable while encrypting files -- UNSET IT AFTER +export SECRET=$(cat /dev/urandom | head -c 10000 | openssl sha1) + +# 2. add the "secure: ..." line under the env section -- generate it with `` (install the travis gem first) +travis encrypt SECRET=$SECRET + +admin/encrypt.sh admin/secring.asc +admin/encrypt.sh sensitive.sbt + +echo "Remember to rm sensitive.sbt admin/secring.asc -- once you do, they cannot be recovered (except on Travis)!"
\ No newline at end of file |