Skip to content

Commit a00f50d

Browse files
committed
Travis: decrypt GPG keypair via travis-build.sh
Rather than having the .travis.yml declare that it should be done before_install, we have more control if it is done as part of the build itself. For one thing, we can use if statements without being at the mercy of Travis's YAML support.
1 parent 309029a commit a00f50d

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

.travis.yml

-4
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,3 @@ env:
1515
- secure: Jgj204N4hKv+7sUrXGtXMvUoXYuHAerhUvwbHsm0BJFpzUSyHP5QWJH2tHvCUL9Yb4VhNEjc46RLFVmiIXynJwAdAWJodT/VEnOTb5Cf7+0UHK4qCyjyjVHiWq1cf+R8Lr9fuKRqxUAdz9Hw6g0Yt23TX8kCa+wQW9lwchn0IG8=
1616
- secure: RuGzuPrxyvBRJwsCpSJ10p9PdP2Hzc9lxb29L//Y/Fkc3bJwNMlNa0ST83oGNHJapYc4dWuFk22Ooy/2YioNgsVvR4n5MAslqXQXSY0VDle1Nbf1pudAlPU+quaiYxcAyyysjUUtqc5wADVgpkrDA7GJzAuCOWb4aSwiiIn6u4A=
1717
- secure: bnsjVlj9MBJto8ahZdMwGpVPjZeyF7r5tZh+t+NhDuZsP0WMlURzGZ9/lJOO4quklgiWCyeVDB5uvDvsdG9BReBe5Q8Q6WZyxhxYtP2iLV0zRWSWsGKk0stGcrmJKk8wbicIJdXD8suiP+2Li5GfxTge/hkhL4CL0OOr6b1JqrM=
18-
before_install:
19-
- test "$TRAVIS_SECURE_ENV_VARS" = true &&
20-
openssl aes-256-cbc -K $encrypted_d2fbfc37eea9_key -iv $encrypted_d2fbfc37eea9_iv
21-
-in .travis/signingkey.asc.enc -out .travis/signingkey.asc -d

.travis/build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
22
curl -fsLO https://raw.githubusercontent.com/scijava/scijava-scripts/master/travis-build.sh
3-
sh travis-build.sh
3+
sh travis-build.sh $encrypted_d2fbfc37eea9_key $encrypted_d2fbfc37eea9_iv

0 commit comments

Comments
 (0)