Commit e2d983a1 authored by Bas Nijholt's avatar Bas Nijholt
Browse files

add automatic building of conda package

parent c7bccd11
Pipeline #2510 passed with stages
in 3 minutes and 19 seconds
image: kwant/tinyarray-testing
stages:
- test
- deploy
python2: python2:
script: script:
- python2 setup.py build_ext -i - python2 setup.py build_ext -i
- python2 test_tinyarray.py - python2 test_tinyarray.py
python3: python3:
script: script:
- python3 setup.py build_ext -i - python3 setup.py build_ext -i
...@@ -23,3 +30,19 @@ mirror: ...@@ -23,3 +30,19 @@ mirror:
- ORIGIN_URL=$(git config --get remote.origin.url) - ORIGIN_URL=$(git config --get remote.origin.url)
- cd $(mktemp -d); git clone --bare $ORIGIN_URL . - cd $(mktemp -d); git clone --bare $ORIGIN_URL .
- for REPO in $REPOS; do git push --mirror $REPO; done - for REPO in $REPOS; do git push --mirror $REPO; done
create conda dev package:
image: condaforge/linux-anvil
stage: deploy
only:
- master
script:
- git clone https://gitlab.kwant-project.org/kwant/conda-recipes.git
- conda build -c conda-forge --python 3.4 conda-recipes/tinyarray-dev
- conda build -c conda-forge --python 3.5 conda-recipes/tinyarray-dev
- conda build -c conda-forge --python 3.6 conda-recipes/tinyarray-dev
- mv /opt/conda/conda-bld/linux-64/tinyarray-dev*.tar.bz2 .
- anaconda --token=$ANACONDA_TOKEN upload --force tinyarray-dev*tar.bz2
artifacts:
paths:
- tinyarray-dev*.tar.bz2
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment