Raw File
Tip revision: c729db708aa5d9f6126114b5c6443ac410c111bf authored by Jean Kossaifi on 01 May 2018, 10:58 UTC
Add nose as a dependency
Tip revision: c729db7
# Inspired from scikit-image
if [[ $TRAVIS_PULL_REQUEST == false && $TRAVIS_BRANCH == "master" &&
	      $DEPLOY_DOCS == 1 ]]
	echo "-- pushing docs --"
    git config --global ""
    git config --global "Travis"

	# Installed the dependencies
	conda install matplotlib Pillow sphinx
	pip install slimit rcssmin 

	# cd to the doc folder and build the doc
	cd doc
	make html
	cd ..

    git clone --quiet doc_folder
    cd doc_folder
    git rm -r dev/*
    cp -r ../doc/_build/html/* dev/

    git add dev
    git commit -m "Travis auto-update"
    git push --force --quiet "https://${gh_token}" > /dev/null 2>&1
    echo "-- will only push docs from master and if DEPLOY_DOCS == 1--"

back to top