From e90708aceb8d3a96703028ac6e901d11cf586f5a Mon Sep 17 00:00:00 2001 From: Evan Morikawa Date: Thu, 10 Dec 2015 14:16:55 -0500 Subject: [PATCH] fix(ci): add caching and fix ssh issue --- .travis.yml | 7 +++++-- appveyor.yml | 4 ++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index a22bf635b..ec951ac5c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: diff --git a/appveyor.yml b/appveyor.yml index ff0d2d8c4..1fe949c11 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -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'