Skip to content
Snippets Groups Projects
Commit 33d6364f authored by Joseph Weston's avatar Joseph Weston
Browse files

CI: separate conda packaging into separate jobs

We previously restricted conda package uploading to master branch on the
main Kwant repository, as otherwise this step would fail for forked
repositories without a valid anaconda key. Now we build the conda
packages and upload to anaconda in two separate jobs, and the upload job
is only run on the main Kwant repository.
parent 3bb749eb
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@ image: kwant/testing
stages:
- build
- test
- package
- deploy
......@@ -77,9 +78,10 @@ check for broken links in doc:
create conda package:
stage: deploy
stage: package
only:
- master@kwant/kwant
- master
- /^.*-build$/
image: condaforge/linux-anvil
script:
- yum install -y devtoolset-2-gcc-gfortran
......@@ -89,10 +91,18 @@ create conda package:
- conda build --python 3.5 conda-recipes/kwant-dev
- conda build --python 3.6 conda-recipes/kwant-dev
- mv /opt/conda/conda-bld/linux-64/kwant-dev*.tar.bz2 .
- anaconda --token=$ANACONDA_TOKEN upload --force kwant-dev*tar.bz2
artifacts:
paths:
- kwant-dev*.tar.bz2
expire_in: 1 month
upload conda package:
stage: deploy
only:
- master@kwant/kwant
image: condaforge/linux-anvil
script:
- anaconda --token=$ANACONDA_TOKEN upload --force kwant-dev*tar.bz2
upload coverage:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment