Skip to content

Commit

Permalink
Travis: do not use local package, it should be available online
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimergp committed Feb 20, 2018
1 parent 836cecd commit 2a42d6b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 16 deletions.
26 changes: 12 additions & 14 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ install:
- conda build purge
- rm -rf %PYTHON%/conda-bld/*
- conda build -c omnia -c bioconda devtools/conda-recipe
- IF "%conda_upload%"=="true" anaconda -t %BINSTAR_TOKEN% upload %PYTHON%/conda-bld/win-*/ommprotocol-*.tar.bz2 -u insilichem --no-progress --force
- IF "%conda_upload%"=="true" conda install -y constructor
- IF "%conda_upload%"=="true" conda remove -y --force constructor
- IF "%conda_upload%"=="true" pip install -U --no-deps https://github.com/jaimergp/constructor/archive/jinja-env.zip
Expand All @@ -34,17 +35,14 @@ artifacts:

build: off

deploy_script:
- ps: If ($env:APPVEYOR_REPO_TAG -eq "true" -And $env:APPVEYOR_REPO_TAG_NAME.StartsWith('v')) { $env:conda_upload = 'true' } Else { write-output "Not on a tag on master, won't deploy to anaconda" }
- cmd: IF "%conda_upload%"=="true" anaconda -t %BINSTAR_TOKEN% upload %PYTHON%/conda-bld/win-*/ommprotocol-*.tar.bz2 -u insilichem --no-progress --force
# Deploy to GitHub releases
- provider: GitHub
release: ommprotocol-$(APPVEYOR_REPO_TAG_NAME)
description: $(APPVEYOR_REPO_COMMIT_MESSAGE)
auth_token:
secure: B/gWNOHhL5VYBLSIfvRA+rJmD9TYP6DcVgXi40AO23ypDUAe0ckpjkuE6TmqYlXS
artifact: /ommprotocol-.*\.exe/
draft: true
prerelease: true
on:
appveyor_repo_tag: true
deploy:
provider: GitHub
release: ommprotocol-$(APPVEYOR_REPO_TAG_NAME)
description: $(APPVEYOR_REPO_COMMIT_MESSAGE)
auth_token:
secure: B/gWNOHhL5VYBLSIfvRA+rJmD9TYP6DcVgXi40AO23ypDUAe0ckpjkuE6TmqYlXS
artifact: /ommprotocol-.*\.exe/
draft: true
prerelease: true
on:
appveyor_repo_tag: true
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,13 @@ install:
- conda config --set always_yes yes
# Show conda info for debugging
- conda install -q conda conda-build
- conda config --add channels bioconda
- conda config --add channels omnia
- conda config --add channels insilichem
- conda info -a
- conda list
# Dependencies
- travis_wait conda build --python=${MYCONDAPY} -c omnia -c bioconda devtools/conda-recipe
- travis_wait conda build --python=${MYCONDAPY} devtools/conda-recipe
- if [[ $TRAVIS_TAG ]]; then
conda install -q anaconda-client;
anaconda -t $ANACONDA_TOKEN upload -u insilichem $HOME/miniconda/conda-bld/**/ommprotocol-*.tar.bz2;
Expand Down
2 changes: 1 addition & 1 deletion construct.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ license_file: LICENSE
welcome_image: docs/img/logo.png [win]

channels:
- file://{{ environ['CONDA_PREFIX'] }}/conda-bld
# - file://{{ environ['CONDA_PREFIX'] }}/conda-bld
- https://conda.anaconda.org/insilichem
- https://conda.anaconda.org/omnia
- https://repo.continuum.io/pkgs/main/
Expand Down

0 comments on commit 2a42d6b

Please sign in to comment.