fix(ci): add caching and fix ssh issue

This commit is contained in:
Evan Morikawa 2015-12-10 14:16:55 -05:00
parent e4ca1b49c2
commit e90708aceb
2 changed files with 9 additions and 2 deletions

View file

@ -4,8 +4,6 @@ git:
submodules: false submodules: false
addons: addons:
ssh_known_hosts:
- github.com
apt: apt:
sources: sources:
- ubuntu-toolchain-r-test - 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; 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; mv nylas-n1-ci-ssh ~/.ssh/id_rsa;
chmod 400 ~/.ssh/id_rsa; chmod 400 ~/.ssh/id_rsa;
ssh-keyscan github.com >> ~/.ssh/known_hosts;
git submodule update --init --recursive; 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; 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; mkdir build/resources/certs;
@ -70,6 +69,10 @@ before_script:
script: script/cibuild script: script/cibuild
cache:
directories:
- node_modules
# The NYLAS_GITHUB_OAUTH_TOKEN is overriden by build/resources/certs/set_unix_env.sh # The NYLAS_GITHUB_OAUTH_TOKEN is overriden by build/resources/certs/set_unix_env.sh
env: env:
global: global:

View file

@ -47,3 +47,7 @@ environment:
CERTIFICATE_FILE: .\build\resources\nylas\encrypted_certificates\appveyor\win-nylas-n1.p12 CERTIFICATE_FILE: .\build\resources\nylas\encrypted_certificates\appveyor\win-nylas-n1.p12
DECRYPTION_PASSWORD: DECRYPTION_PASSWORD:
secure: 48VSzDtdBd52Xlo3TZ1NeR1yRRrZ3AU6Px5XjD5RDp44cFU5GYVspecGqX6DGCV7i0D7nldGMyEbXNrjM1t1Kw== secure: 48VSzDtdBd52Xlo3TZ1NeR1yRRrZ3AU6Px5XjD5RDp44cFU5GYVspecGqX6DGCV7i0D7nldGMyEbXNrjM1t1Kw==
cache:
- '%USERPROFILE%\.nylas\.apm'
- '%USERPROFILE%\.npm'