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
225
326test :
27+ stage : test
428 script :
5- - pip install -r test-requirements.txt
6- - conda install -y -q scikit-optimize
729 - py.test --verbose --cov=adaptive --cov-report term --cov-report html adaptive
830 artifacts :
931 paths :
1032 - htmlcov
1133
1234authors check :
35+ stage : test
1336 script :
1437 - MISSING_AUTHORS=$(git shortlog -s HEAD | sed -e "s/^[0-9\t ]*//"| xargs -i sh -c 'grep -q "{}" AUTHORS.md || echo "{} missing from authors"')
1538 - if [ ! -z "$MISSING_AUTHORS" ]; then { echo $MISSING_AUTHORS; exit 1; }; fi
1639 allow_failure : true
1740
1841check whitespace style :
42+ stage : test
1943 script : ./check_whitespace
2044 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