Skip to content

Commit

Permalink
Added branch based anaconda upload
Browse files Browse the repository at this point in the history
  • Loading branch information
msouff committed Aug 13, 2019
1 parent 8afb2a9 commit c12616a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ stages:
- name: docker-build
if: (branch = master) OR (tag IS present)
- name: conda-build
# if: (branch = master) OR (tag IS present)
if: (branch = master) OR (tag IS present)

install:
- cd ..
Expand Down Expand Up @@ -77,6 +77,8 @@ jobs:
fi
- docker push tethysplatform/tethys-core:$LATEST_TAG
after_success:
- skip
- stage: conda-build
install:
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
Expand All @@ -103,9 +105,11 @@ jobs:

- >
if [ -z "$TRAVIS_TAG"]; then echo "No Branch tag is Present. Uploading to dev";
anaconda -t $CONDA_UPLOAD_TOKEN upload -u tethysplatform -l test
anaconda -t $CONDA_UPLOAD_TOKEN upload -u tethysplatform -l dev
$CONDA_BLD_PATH/noarch/tethysplatform*.tar.bz2 --force;
else echo "Branch tag is $TRAVIS_TAG. Uploading to master";
anaconda -t $CONDA_UPLOAD_TOKEN upload -u tethysplatform
$CONDA_BLD_PATH/noarch/tethysplatform*.tar.bz2 --force;
fi
fi
after_success:
- skip

0 comments on commit c12616a

Please sign in to comment.