mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-08 21:55:54 +08:00
ci: Make certs optional
Certs aren't strictly needed to build Mailspring so let's not use them if building outside the main repository. Allows testing CI easier.
This commit is contained in:
parent
04051d514f
commit
9efa93724c
1 changed files with 7 additions and 4 deletions
11
.travis.yml
11
.travis.yml
|
@ -71,11 +71,14 @@ matrix:
|
|||
|
||||
before_install:
|
||||
# Decrypt and uncompress code signing certs, etc.
|
||||
- openssl aes-256-cbc -K $encrypted_faf2708e46e2_key -iv $encrypted_faf2708e46e2_iv
|
||||
-in app/build/resources/certs.tar.enc -out app/build/resources/certs.tar -d;
|
||||
- if [ -n "$encrypted_faf2708e46e2_key" ] || [ "$TRAVIS_REPO_SLUG" = "Foundry376/Mailspring" ]; then
|
||||
openssl aes-256-cbc -K $encrypted_faf2708e46e2_key -iv $encrypted_faf2708e46e2_iv
|
||||
-in app/build/resources/certs.tar.enc -out app/build/resources/certs.tar -d; fi
|
||||
- mkdir app/build/resources/certs;
|
||||
- tar xvf app/build/resources/certs.tar --directory=app/build/resources/;
|
||||
- source app/build/resources/certs/mac/set_unix_env.sh;
|
||||
- tar xvf app/build/resources/certs.tar --directory=app/build/resources/ ||
|
||||
[ "$TRAVIS_REPO_SLUG" != "Foundry376/Mailspring" ]
|
||||
- source app/build/resources/certs/mac/set_unix_env.sh ||
|
||||
[ "$TRAVIS_REPO_SLUG" != "Foundry376/Mailspring" ]
|
||||
# Checkout the C++ Mailsync codebase
|
||||
- git submodule update --init mailsync
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue