File tree Expand file tree Collapse file tree 2 files changed +39
-3
lines changed Expand file tree Collapse file tree 2 files changed +39
-3
lines changed Original file line number Diff line number Diff line change 1
- image : quantumtinkerer/research
1
+ image : gitlab.kwant-project.org:5005/qt/adaptive:latest
2
+
3
+ stages :
4
+ - prebuild
5
+ - test
6
+
7
+ build docker :
8
+ stage : prebuild
9
+ image :
10
+ name : gcr.io/kaniko-project/executor:debug
11
+ entrypoint : [""]
12
+ before_script :
13
+ - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
14
+ - export CI_REF=${CI_COMMIT_TAG:-latest}
15
+ script :
16
+ - /kaniko/executor
17
+ --context $CI_PROJECT_DIR
18
+ --dockerfile $CI_PROJECT_DIR/Dockerfile
19
+ --destination $CI_REGISTRY_IMAGE:$CI_REF
20
+ only :
21
+ changes :
22
+ - Dockerfile
23
+ - environment.yml
24
+ - test-requirements.txt
2
25
3
26
test :
27
+ stage : test
4
28
script :
5
- - pip install -r test-requirements.txt
6
- - conda install -y -q scikit-optimize
7
29
- py.test --verbose --cov=adaptive --cov-report term --cov-report html adaptive
8
30
artifacts :
9
31
paths :
10
32
- htmlcov
11
33
12
34
authors check :
35
+ stage : test
13
36
script :
14
37
- MISSING_AUTHORS=$(git shortlog -s HEAD | sed -e "s/^[0-9\t ]*//"| xargs -i sh -c 'grep -q "{}" AUTHORS.md || echo "{} missing from authors"')
15
38
- if [ ! -z "$MISSING_AUTHORS" ]; then { echo $MISSING_AUTHORS; exit 1; }; fi
16
39
allow_failure : true
17
40
18
41
check whitespace style :
42
+ stage : test
19
43
script : ./check_whitespace
20
44
allow_failure : true
Original file line number Diff line number Diff line change
1
+ # Docker image for testing adaptive
2
+ FROM conda/miniconda3:latest
3
+
4
+ # make our environment sane
5
+ ENV LANG C.UTF-8
6
+ ENV LC_ALL C.UTF-8
7
+
8
+ COPY environment.yml test-requirements.txt /
9
+
10
+ RUN conda env update --quiet -n root -f environment.yml
11
+ RUN conda clean --yes --all
12
+ RUN pip install -r test-requirements.txt
You can’t perform that action at this time.
0 commit comments