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

---
 .travis.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 5e5bf29..cd4c0ee 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -19,12 +19,12 @@ 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
+- 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;
   fi
-- 
GitLab