-
Notifications
You must be signed in to change notification settings - Fork 67
/
.gitlab-ci.yml
73 lines (64 loc) · 2.22 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
image: continuumio/miniconda3:latest
stages:
- test
variables:
PYVERSION: "3.10"
BINDIR: "/root/sklldev/bin"
MPLBACKEND: "Agg"
LOGCAPTURE_LEVEL: "WARNING"
CODECOV_TOKEN: "e2cce606-b88b-415d-a106-5c7da6e7eb6e"
# set up the basic job
.runtests:
before_script:
- "conda create --prefix /root/sklldev --channel conda-forge --file requirements.dev python=${PYVERSION} curl --yes --quiet"
- /root/sklldev/bin/pip install -e .
- /root/sklldev/bin/curl -o /root/sklldev/bin/codecov https://uploader.codecov.io/latest/linux/codecov
- chmod +x /root/sklldev/bin/codecov
- echo "import os" > sitecustomize.py
- echo "try:" >> sitecustomize.py
- echo " import coverage" >> sitecustomize.py
- echo " os.environ['COVERAGE_PROCESS_START'] = '.coveragerc'" >> sitecustomize.py
- echo " coverage.process_startup()" >> sitecustomize.py
- echo "except ImportError:" >> sitecustomize.py
- echo " pass" >> sitecustomize.py
script:
- "/root/sklldev/bin/nose2 -s tests ${TESTFILES}"
- "/root/sklldev/bin/coverage xml"
after_script:
- /root/sklldev/bin/codecov
# first set of test files
testset1:
extends: ".runtests"
variables:
TESTFILES: "test_featureset test_commandline_utils test_custom_metrics test_voting_learners_api_5"
stage: "test"
# second set of test files
testset2:
extends: ".runtests"
variables:
TESTFILES: "test_output test_voting_learners_api_4"
stage: "test"
# third set of test files
testset3:
extends: ".runtests"
variables:
TESTFILES: "test_regression test_voting_learners_api_2"
stage: "test"
# fourth set of test files
testset4:
extends: ".runtests"
variables:
TESTFILES: "test_input test_preprocessing test_metrics test_custom_learner test_logging_utils test_examples test_voting_learners_api_1 test_voting_learners_expts_1"
stage: "test"
# fifth set of test files
testset5:
extends: ".runtests"
variables:
TESTFILES: "test_classification test_cv test_ablation test_voting_learners_expts_4"
stage: "test"
# sixth set of test files
testset6:
extends: ".runtests"
variables:
TESTFILES: "test_voting_learners_api_3 test_voting_learners_expts_2 test_voting_learners_expts_3 test_voting_learners_expts_5"
stage: "test"