diff --git a/.travis.yml b/.travis.yml index cd4c0ee8867a59f21e3f9cfe9ca84767ee1a788a..edf2ab75345f1e7616590b4db6ba2eaf116325ed 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,12 +19,13 @@ install: - conda config --add channels conda-forge # Setup to do the build - conda install -y -q conda-build anaconda-client +- conda config --set anaconda_upload yes script: # Build and upload on success -- if [ "${TRAVIS_PULL_REQUEST}" = "true" ] ; then - conda build recipe -q; +- if [ "${TRAVIS_PULL_REQUEST}" = "true" ] + then + conda build recipe -q else - conda config --set anaconda_upload yes && \ - conda build --token $CONDA_UPLOAD_TOKEN recipe -q; + conda build --token $CONDA_UPLOAD_TOKEN recipe -q fi