Skip to content
Snippets Groups Projects
Commit cdc57cf1 authored by Bas Nijholt's avatar Bas Nijholt
Browse files

add automatic building for kwant-dev conda package

parent 9584d87d
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -5,6 +5,7 @@ stages:
- test
- deploy
mirror repository:
stage: build
only:
......@@ -24,6 +25,7 @@ mirror repository:
- cd $(mktemp -d); git clone --bare $ORIGIN_URL .
- for REPO in $REPOS; do git push --mirror $REPO; done
build package:
stage: build
script:
......@@ -39,12 +41,14 @@ check whitespace style:
script: ./check_whitespace
allow_failure: true
check for dependencies installed:
stage: test
script:
- if [ -d .eggs ]; then echo "$(ls -d .eggs/*/) downloaded by build, update build environment" >&2; fi
allow_failure: true
build documentation:
stage: test
script:
......@@ -54,6 +58,7 @@ build documentation:
- doc/build/html/
expire_in: 1 month
run tests:
stage: test
script:
......@@ -62,6 +67,7 @@ run tests:
paths:
- htmlcov
check for broken links in doc:
stage: test
script:
......@@ -69,6 +75,25 @@ check for broken links in doc:
allow_failure: true
create conda package:
stage: deploy
only:
- master
image: condaforge/linux-anvil
script:
- yum install -y devtoolset-2-gcc-gfortran
- git clone https://gitlab.kwant-project.org/kwant/conda-recipes.git
- conda config --add channels kwant
- conda build --python 3.4 conda-recipes/kwant-dev
- 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
upload coverage:
stage: deploy
only:
......@@ -86,6 +111,7 @@ upload coverage:
after_script:
- rm -rf ~/.ssh
remove_coverage:
stage: deploy
only:
......@@ -154,6 +180,7 @@ upload dev version docs:
after_script:
- rm -rf ~/.ssh
upload docs of tagged build:
stage: deploy
environment:
......
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