Skip to content

Commit

Permalink
Debug doc deploy.
Browse files Browse the repository at this point in the history
  • Loading branch information
abellgithub committed Dec 3, 2018
1 parent fb15e2b commit 12c5b06
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ script:

after_success: |
if [[ "$TRAVIS_SECURE_ENV_VARS" == "true" &&
"$TRAVIS_BRANCH" == "1.8-maintenance" ]]
"$TRAVIS_BRANCH" == "1.8-maintenance" &&
-n "$encrypted_6a5172b96922_key" ]]
then
cd scripts/ci
./after_success.sh $TRAVIS_BUILD_DIR
./after_success.sh $TRAVIS_BUILD_DIR $encrypted_6a5172b96922_key \
$encrypted_6a5172b96922_iv
fi
notifications:
Expand Down
18 changes: 8 additions & 10 deletions scripts/ci/after_success.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
#!/bin/bash

TRAVIS_BUILD_DIR=$1
KEY=$2
KEY_INIT=$3

echo "publishing website"
echo "TRAVIS_BUILD_DIR=$TRAVIS_BUILD_DIR"
echo "KEY=$KEY"
echo "KEY_INIT=$KEY_INIT"

if [ -n $encrypted_6a5172b96922_key ]
then
./build_docs.sh
# Args: keyfile, encrypted key, encrypted init vector
./add_deploy_key.sh pdaldocs-private.key $encrypted_6a5172b96922_key \
$encrypted_6a5172b96922_iv
./deploy_website.sh $TRAVIS_BUILD_DIR/doc/build /tmp
else
echo "No encryption key available."
fi
./build_docs.sh $TRAVIS_BUILD_DIR
./add_deploy_key.sh pdaldocs-private.key $KEY $KEY_INIT
./deploy_website.sh $TRAVIS_BUILD_DIR/doc/build /tmp

0 comments on commit 12c5b06

Please sign in to comment.