diff --git a/.travis.yml b/.travis.yml
index 962f766ac6d96db6758708b8d3714e3b51bc8e4d..e444fc2362c6dfb4bbf3ee8642b6cf980eabce60 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -19,12 +19,11 @@ 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}" = "false" ] ;then
-    conda build --token $CONDA_UPLOAD_TOKEN recipe -q;
+    conda config --set anaconda_upload yes && conda build --token $CONDA_UPLOAD_TOKEN recipe -q;
   else
     conda build recipe -q;
   fi