forked from EMS-TU-Ilmenau/fastmat
/
.gitlab-ci.yml
173 lines (146 loc) · 3.38 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
image: python-fastmat
stages:
- prepare
- build
- test
- benchmark
- docu
cache:
untracked: true
paths:
variables:
BENCH_OPTIONS: "maxIter=0.2,maxInit=0.5,maxMem=20000"
################################################################################
codingStyle:
stage: prepare
script:
- echo Checking PEP8 compliance
- make styleCheck
################################################################################
python2-build:
stage: build
script:
- rm -f *.pyc */*.pyc */*/*.pyc
- make compile PYTHON=python2
artifacts:
paths:
- fastmat/*.so
- fastmat/*/*.so
expire_in: 1 day
only:
- master
python2-test-classes:
stage: test
script:
- python2 bee.py test -s .class -v
only:
- master
python2-test-transforms:
stage: test
script:
- python2 bee.py test -s .transform -v
only:
- master
python2-test-algorithms:
stage: test
script:
- python2 bee.py test -s .algorithm -v
only:
- master
python2-test-bee:
stage: test
script:
- python2 bee.py list makedump
- python2 bee.py list algs
- python2 bee.py list classes
- python2 bee.py list index
- python2 bee.py list index -e
only:
- master
python2-benchmark:
stage: benchmark
script:
- cd doc
- "make benchmarks PYTHON=python2 OPTIONS=$BENCH_OPTIONS"
artifacts:
paths:
- doc/results/*
expire_in: 1 week
only:
- master
python2-docu:
stage: docu
script:
- cd doc
- "make clean"
- "make doc PYTHON=python2 OPTIONS=$BENCH_OPTIONS"
artifacts:
untracked: true
paths:
- doc/*.pdf
- doc/results/*
- doc/output/*
- doc/plots/*
expire_in: 1 week
only:
- master
################################################################################
python3-build:
stage: build
script:
- rm -f *.pyc */*.pyc */*/*.pyc
- make compile PYTHON=python3
artifacts:
paths:
- fastmat/*.so
- fastmat/*/*.so
expire_in: 1 day
python3-test-classes:
stage: test
script:
- python3 bee.py test -s .class -v
python3-test-transforms:
stage: test
script:
- python3 bee.py test -s .transform -v
python3-test-algorithms:
stage: test
script:
- python3 bee.py test -s .algorithm -v
python3-test-bee:
stage: test
script:
- python3 bee.py list makedump
- python3 bee.py list algs
- python3 bee.py list classes
- python3 bee.py list index
- python3 bee.py list index -e
only:
- master
python3-benchmark:
stage: benchmark
script:
- cd doc
- "make benchmarks PYTHON=python3 OPTIONS=$BENCH_OPTIONS"
artifacts:
paths:
- doc/results/*
expire_in: 1 week
only:
- master
python3-docu:
stage: docu
script:
- cd doc
- "make clean"
- "make doc PYTHON=python3 OPTIONS=$BENCH_OPTIONS"
artifacts:
untracked: true
paths:
- doc/*.pdf
- doc/results/*
- doc/output/*
- doc/plots/*
expire_in: 1 week
only:
- master