mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-12-26 01:53:13 +08:00
fix(ci): add caching and fix ssh issue
This commit is contained in:
parent
47a3697390
commit
d5ef810984
2 changed files with 9 additions and 2 deletions
|
@ -4,8 +4,6 @@ git:
|
|||
submodules: false
|
||||
|
||||
addons:
|
||||
ssh_known_hosts:
|
||||
- github.com
|
||||
apt:
|
||||
sources:
|
||||
- ubuntu-toolchain-r-test
|
||||
|
@ -45,6 +43,7 @@ before_install:
|
|||
openssl aes-256-cbc -k "$DECRYPTION_PASSWORD" -in build/resources/ssh/nylas-n1-ci-ssh.openssl.enc -out nylas-n1-ci-ssh -d;
|
||||
mv nylas-n1-ci-ssh ~/.ssh/id_rsa;
|
||||
chmod 400 ~/.ssh/id_rsa;
|
||||
ssh-keyscan github.com >> ~/.ssh/known_hosts;
|
||||
git submodule update --init --recursive;
|
||||
2>/dev/null 1>/dev/null openssl aes-256-cbc -K $encrypted_d583b56b822e_key -iv $encrypted_d583b56b822e_iv -in build/resources/nylas/encrypted_certificates/travis/travis-files.tar.enc -out build/resources/nylas/encrypted_certificates/travis/travis-files.tar -d;
|
||||
mkdir build/resources/certs;
|
||||
|
@ -70,6 +69,10 @@ before_script:
|
|||
|
||||
script: script/cibuild
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- node_modules
|
||||
|
||||
# The NYLAS_GITHUB_OAUTH_TOKEN is overriden by build/resources/certs/set_unix_env.sh
|
||||
env:
|
||||
global:
|
||||
|
|
|
@ -47,3 +47,7 @@ environment:
|
|||
CERTIFICATE_FILE: .\build\resources\nylas\encrypted_certificates\appveyor\win-nylas-n1.p12
|
||||
DECRYPTION_PASSWORD:
|
||||
secure: 48VSzDtdBd52Xlo3TZ1NeR1yRRrZ3AU6Px5XjD5RDp44cFU5GYVspecGqX6DGCV7i0D7nldGMyEbXNrjM1t1Kw==
|
||||
|
||||
cache:
|
||||
- '%USERPROFILE%\.nylas\.apm'
|
||||
- '%USERPROFILE%\.npm'
|
||||
|
|
Loading…
Reference in a new issue