Skip to content

Commit

Permalink
Travis: move anaconda upload to install section so constructor can fi…
Browse files Browse the repository at this point in the history
…nd it
  • Loading branch information
jaimergp committed Feb 20, 2018
1 parent 2007a6f commit 836cecd
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ cache:
- $HOME/download
- $HOME/miniconda

before_cache:
- if [[ ! $TRAVIS_TAG ]]; then rm -rf $HOME/miniconda/conda-bld; fi
- rm -rf $HOME/miniconda/locks $HOME/miniconda/pkgs $HOME/miniconda/var $HOME/miniconda/conda-meta/history
# before_cache:
# - if [[ ! $TRAVIS_TAG ]]; then rm -rf $HOME/miniconda/conda-bld; fi
# - rm -rf $HOME/miniconda/locks $HOME/miniconda/pkgs $HOME/miniconda/var $HOME/miniconda/conda-meta/history

branches:
only:
Expand Down Expand Up @@ -88,21 +88,17 @@ install:
- conda list
# Dependencies
- travis_wait conda build --python=${MYCONDAPY} -c omnia -c bioconda devtools/conda-recipe

before_deploy:
# Deploy to Anaconda.org
- if [[ $TRAVIS_TAG ]]; then
conda install -q anaconda-client;
anaconda -t $ANACONDA_TOKEN upload -u insilichem $HOME/miniconda/conda-bld/**/ommprotocol-*.tar.bz2;
fi
- if [[ $TRAVIS_TAG && $MYCONDAPY = 3.6 ]]; then
conda install constructor;
conda remove --force constructor;
pip install -U --no-deps https://github.com/jaimergp/constructor/archive/jinja-env.zip;
echo $CONDA_PREFIX;
ls -alh ${CONDA_PREFIX}/conda-bld;
constructor . ;
fi
fi;

before_deploy:
- conda install constructor;
- conda remove --force constructor;
- pip install -U --no-deps https://github.com/jaimergp/constructor/archive/jinja-env.zip;
- ls -alh ${CONDA_PREFIX}/conda-bld/*;
- constructor . ;

deploy:
# Deploy to PyPI
Expand Down

0 comments on commit 836cecd

Please sign in to comment.