Skip to content

Commit 0e557a7

Browse files
committed
Travis: only decrypt if vars are available
It's too bad that "travis encrypt-file --add" does not guard this.
1 parent 960b6d5 commit 0e557a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ env:
1616
- secure: RuGzuPrxyvBRJwsCpSJ10p9PdP2Hzc9lxb29L//Y/Fkc3bJwNMlNa0ST83oGNHJapYc4dWuFk22Ooy/2YioNgsVvR4n5MAslqXQXSY0VDle1Nbf1pudAlPU+quaiYxcAyyysjUUtqc5wADVgpkrDA7GJzAuCOWb4aSwiiIn6u4A=
1717
- secure: bnsjVlj9MBJto8ahZdMwGpVPjZeyF7r5tZh+t+NhDuZsP0WMlURzGZ9/lJOO4quklgiWCyeVDB5uvDvsdG9BReBe5Q8Q6WZyxhxYtP2iLV0zRWSWsGKk0stGcrmJKk8wbicIJdXD8suiP+2Li5GfxTge/hkhL4CL0OOr6b1JqrM=
1818
before_install:
19-
- openssl aes-256-cbc -K $encrypted_d2fbfc37eea9_key -iv $encrypted_d2fbfc37eea9_iv
19+
- test "$TRAVIS_SECURE_ENV_VARS" = true && \
20+
openssl aes-256-cbc -K $encrypted_d2fbfc37eea9_key -iv $encrypted_d2fbfc37eea9_iv
2021
-in .travis/signingkey.asc.enc -out .travis/signingkey.asc -d

0 commit comments

Comments
 (0)