Skip to content

Commit fa50f04

Browse files
passyfacebook-github-bot
authored andcommitted
Only decrypt if keys are present
Summary: Travis doesn't set encrypted variables in pull requests (for very good reasons), but openssl fails rather loudly if it doesn't get them. Our artifact publishing script happily skips PRs anyway, so we don't need these variables in that case. Reviewed By: emilsjolander Differential Revision: D5137092 Tags: accept2ship fbshipit-source-id: b14d61feba0bb98a1705b2f8232f52ba59a2c734
1 parent f68b50b commit fa50f04

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ env:
2222
- TARGET=android
2323

2424
before_install:
25-
- openssl aes-256-cbc -K $encrypted_d27e803291ff_key -iv $encrypted_d27e803291ff_iv -in scripts/setup-keys.enc -d >> gradle.properties
25+
- |
26+
if [[ -n "$encrypted_d27e803291ff_iv" ]]; then
27+
openssl aes-256-cbc -K $encrypted_d27e803291ff_key -iv $encrypted_d27e803291ff_iv -in scripts/setup-keys.enc -d >> gradle.properties;
28+
fi
29+
2630
- brew update > /dev/null
2731
- brew install --HEAD facebook/fb/buck
2832

0 commit comments

Comments
 (0)