-
Notifications
You must be signed in to change notification settings - Fork 13
/
.gitlab-ci.yml
37 lines (32 loc) · 1.24 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
variables:
GIT_SUBMODULE_STRATEGY: recursive
KWANT_QSYMM_TEST_PATH_SCRIPT: >
import os;
import kwant.tests.test_qsymm;
print(os.path.abspath(kwant.tests.test_qsymm.__file__));
image: gitlab.kwant-project.org:5005/qt/research-docker
## Documentation for the format of this file can be found here:
## https://docs.gitlab.com/ce/ci/yaml/README.html#configuration-of-your-builds-with-gitlab-ci-yml
test minimal requirements:
script:
- mamba env create -f environment-minimal.yml
- source activate qsymm-minimal
- py.test qsymm/ --cov=qsymm --verbose --cov-report term
stage: test
test latest requirements:
script:
- mamba env create -f environment-latest.yml
- source activate qsymm-latest
- py.test qsymm/ --cov=qsymm --verbose --cov-report term
stage: test
test kwant against latest qsymm:
script:
- mamba env create -f environment-latest.yml
- source activate qsymm-latest
# Get bleeding-edge Kwant
- mamba install cython
- pip install . # need to install qsymm so that the kwant test can find it
- pip install git+https://gitlab.kwant-project.org/kwant/kwant.git@stable
- export KWANT_QSYMM_PATH=$(python -c "$KWANT_QSYMM_TEST_PATH_SCRIPT")
- py.test $KWANT_QSYMM_PATH
stage: test