@@ -19,10 +19,9 @@ set -ev
19
19
20
20
# If we're on Travis, we need to set up the environment.
21
21
if [[ " ${TRAVIS} " == " true" ]]; then
22
- # If merging to master and not a pull request, run system test.
23
- if [[ " ${TRAVIS_BRANCH} " == " master" ]] && \
24
- [[ " ${TRAVIS_PULL_REQUEST} " == " false" ]]; then
25
- echo " Running in Travis during merge, decrypting stored key file."
22
+ # If secure variables are available, run system test.
23
+ if [[ " ${TRAVIS_SECURE_ENV_VARS} " ]]; then
24
+ echo " Running in Travis, decrypting stored key file."
26
25
# Convert encrypted JSON key file into decrypted file to be used.
27
26
openssl aes-256-cbc -K ${OAUTH2CLIENT_KEY} \
28
27
-iv ${OAUTH2CLIENT_IV} \
@@ -34,8 +33,8 @@ if [[ "${TRAVIS}" == "true" ]]; then
34
33
-in tests/data/key.p12.enc \
35
34
-out ${OAUTH2CLIENT_TEST_P12_KEY_PATH} -d
36
35
# Convert encrypted User JSON key file into decrypted file to be used.
37
- openssl aes-256-cbc -K ${OAUTH2CLIENT_KEY } \
38
- -iv ${OAUTH2CLIENT_IV } \
36
+ openssl aes-256-cbc -K ${encrypted_1ee98544e5ca_key } \
37
+ -iv ${encrypted_1ee98544e5ca_iv } \
39
38
-in tests/data/user-key.json.enc \
40
39
-out ${OAUTH2CLIENT_TEST_USER_KEY_PATH} -d
41
40
else
0 commit comments