aboutsummaryrefslogtreecommitdiff
path: root/admin/encryptAll.sh
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2014-12-19 10:09:08 +1000
committerJason Zaugg <jzaugg@gmail.com>2014-12-19 10:09:08 +1000
commit1568a28842e2c538ca735a34274ae5e4ee5eca22 (patch)
tree6be60a4d18658767b29a70abdf2fd8cc44cb06fa /admin/encryptAll.sh
parentc44d2ca0c7e24c98eaaa3c1b5023cfd7cc877ae9 (diff)
parentd469cecfa77339152b8228bec78e6fa85dff0375 (diff)
downloadscala-async-1568a28842e2c538ca735a34274ae5e4ee5eca22.tar.gz
scala-async-1568a28842e2c538ca735a34274ae5e4ee5eca22.tar.bz2
scala-async-1568a28842e2c538ca735a34274ae5e4ee5eca22.zip
Merge pull request #101 from retronym/merge/2.10.x-to-master-tag-driven-releasev0.9.3_2.11v0.9.3-RC1_2.11
Merge 2.10.x to master to bring in tag driven publishing
Diffstat (limited to 'admin/encryptAll.sh')
-rwxr-xr-xadmin/encryptAll.sh19
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