Commit 7194dfa2 authored by Bharath Ramsundar's avatar Bharath Ramsundar
Browse files

Changing after_success to test s3 docs deployment

parent 653314c2
Loading
Loading
Loading
Loading
+12 −7
Original line number Diff line number Diff line
echo $TRAVIS_PULL_REQUEST $TRAVIS_BRANCH

if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
    echo "This is a pull request. No deployment will be done."; exit 0
fi
echo '$TRAVIS_PULL_REQUEST $TRAVIS_BRANCH $python'
echo $TRAVIS_PULL_REQUEST $TRAVIS_BRANCH $python

## TODO(rbharath): DO NOT MERGE WITH THIS COMMENTED! Only commented to
## facilitate debugging of AWS docs push.
#if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
#    echo "This is a pull request. No deployment will be done."; exit 0
#fi

if [[ "$TRAVIS_BRANCH" != "master" ]]; then
    echo "No deployment on BRANCH='$TRAVIS_BRANCH'"; exit 0
fi


if [[ "$python" == "2.7" ]]; then
# Create the docs and push them to S3
# -----------------------------------

echo "About to install deepchem."
conda install --yes `conda build devtools/conda-recipe --output`
echo "About to install numpydoc, s3cmd"
pip install numpydoc s3cmd
echo "About to install requirements.txt"
conda install --yes `cat docs/requirements.txt | xargs`

conda list -e
mkdir -p docs/_build
echo "About to build docs"
sphinx build -b html docs docs/_build
echo "About to push docs to s3"
python devtools/travis-ci/push-docs-to-s3.py
fi