From f622321e869087543b98718a3ff72038388f8577 Mon Sep 17 00:00:00 2001
From: jay <jlaura@usgs.gov>
Date: Thu, 23 Aug 2018 08:29:06 -0700
Subject: [PATCH] if/else

---
 .travis.yml | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 962f766..e444fc2 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
-- 
GitLab