Commit 3d4cabbb authored by Edward Z. Yang's avatar Edward Z. Yang
Browse files

Fix PR builds by only setting up .ssh/id_rsa when on master.


Signed-off-by: default avatarEdward Z. Yang <ezyang@cs.stanford.edu>
parent b67bb960
......@@ -46,9 +46,7 @@ before_install:
# Set up deployment to the haskell/cabal-website repo.
# NB: these commands MUST be in .travis.yml, otherwise the secret key can be
# leaked! See https://github.com/travis-ci/travis.rb/issues/423.
- openssl aes-256-cbc -K $encrypted_edaf6551664d_key -iv $encrypted_edaf6551664d_iv -in id_rsa_cabal_website.aes256.enc -out id_rsa -d
- mv id_rsa ~/.ssh/id_rsa
- chmod 400 ~/.ssh/id_rsa
- if [ "x$TRAVIS_PULL_REQUEST" = "xfalse" -a "x$TRAVIS_BRANCH" = "xmaster" -a "x$DEPLOY_DOCS" = "xYES" ]; then (umask 377 && openssl aes-256-cbc -K $encrypted_edaf6551664d_key -iv $encrypted_edaf6551664d_iv -in id_rsa_cabal_website.aes256.enc -out ~/.ssh/id_rsa -d); fi
install:
# We intentionally do not install anything before trying to build Cabal because
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment