Skip to content

Commit

Permalink
Only decrypt key when needed
Browse files Browse the repository at this point in the history
The key is only used to upload docs so no need to dectrypt it otherwise
  • Loading branch information
jenshnielsen committed Jan 10, 2015
1 parent 66ad0a4 commit a7c2bbd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .travis.yml
Expand Up @@ -23,7 +23,9 @@ matrix:
env: BUILD_DOCS=true

before_install:
- openssl aes-256-cbc -K $encrypted_cc802e084cd0_key -iv $encrypted_cc802e084cd0_iv -in .travis/matplotlibDeployKey.enc -out .travis/matplotlibDeployKey -d
|
if [[ $TRAVIS_PULL_REQUEST == false && $BUILD_DOCS == true && $TRAVIS_BRANCH == 'master' ]]; then
fi

install:
- pip install -q --use-mirrors nose python-dateutil $NUMPY pep8 pyparsing pillow
Expand Down Expand Up @@ -62,6 +64,7 @@ after_success:
if [[ $TRAVIS_PULL_REQUEST == false && $BUILD_DOCS == true && $TRAVIS_BRANCH == 'master' ]]; then
echo "Uploading documentation"
cd ..
openssl aes-256-cbc -K $encrypted_cc802e084cd0_key -iv $encrypted_cc802e084cd0_iv -in .travis/matplotlibDeployKey.enc -out .travis/matplotlibDeployKey -d
eval `ssh-agent -s`
chmod 600 .travis/matplotlibDeployKey
ssh-add .travis/matplotlibDeployKey
Expand All @@ -78,5 +81,5 @@ after_success:
git commit -m "Docs build of $TRAVIS_COMMIT"
git push --set-upstream origin gh-pages --force
else
echo "Will only build docs on master branch"
echo "Will only deploy docs build from matplotlib master branch"
fi

0 comments on commit a7c2bbd

Please sign in to comment.