-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
102 lines (95 loc) · 2.05 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
default:
before_script:
- echo $CONDA_HOME
- PATH=$PATH:$CONDA_HOME/bin
- . ./init_conda.sh cosmoloj_py 3.11
after_script:
- PATH=$PATH:$CONDA_HOME/bin
- . ./clean_conda.sh cosmoloj_py
stages:
- envs
- lint
- doc
- test
- python-version-support
- coverage
- demo
- pypi-package
- pypi-publish
- conda-package
- sonar
include:
- local: 'simpleunit/.gitlab-ci.yml'
- local: 'taxref/.gitlab-ci.yml'
- local: 'coordop/.gitlab-ci.yml'
- local: 'multienv/.gitlab-ci.yml'
- local: 'bibliograpy/.gitlab-ci.yml'
conda_envs:
stage: envs
before_script:
- echo $CONDA_HOME
- PATH=$PATH:$CONDA_HOME/bin
- . ./init_conda.sh multienv 3.12
- conda install -c cosmoloj multienv=0.4.1 -y
script:
- cd simpleunit
- pyenvs deps
- cd ../taxref
- pyenvs deps
- cd ../coordop
- pyenvs deps
- cd ../multienv
- pyenvs deps
- cd ../bibliograpy
- pyenvs deps
after_script:
- PATH=$PATH:$CONDA_HOME/bin
- . ./clean_conda.sh multienv
artifacts:
when: always
paths:
- simpleunit/environment_*
- taxref/environment_*
- coordop/environment_*
- multienv/environment_*
- bibliograpy/environment_*
expire_in: 2 days
pylintrc_envs:
stage: envs
before_script:
- echo $CONDA_HOME
- PATH=$PATH:$CONDA_HOME/bin
- . ./init_conda.sh multienv 3.12
- conda install -c cosmoloj multienv=0.4.1 -y
script:
- pyenvs lint
after_script:
- PATH=$PATH:$CONDA_HOME/bin
- . ./clean_conda.sh multienv
artifacts:
when: always
paths:
- pylintrc_*
expire_in: 2 days
coverage:
stage: coverage
rules:
- if: $CI_COMMIT_TAG == null
script:
- conda install coverage
- coverage xml
artifacts:
when: always
reports:
coverage_report:
coverage_format: cobertura
path: coverage.xml
expire_in: 2 days
sonar:
stage: sonar
rules:
- if: $CI_COMMIT_TAG == null
script:
- $SONAR_SCANNER_HOME/bin/sonar-scanner -Dsonar.login=$SONAR_LOGIN
artifacts:
expire_in: 2 days