.gitlab-ci.yml 4.07 KB
Newer Older
Isaak Lim's avatar
Isaak Lim committed
1
2
3
4
stages:
  - build
  - test
  - deploy
5

Isaak Lim's avatar
Isaak Lim committed
6
7
8
9
10
build-3.6-VS2017:
  stage:
    build
  tags:
    - VS2017
11
12
13
  before_script:
    - git submodule sync --recursive
    - git submodule update --init --recursive
Isaak Lim's avatar
Isaak Lim committed
14
15
16
17
18
19
20
21
  script:
    - set Path=%Path%;C:\Program Files\Python36;C:\Program Files\Python36\Scripts;
    - virtualenv --clear -p "C:\Program Files\Python36\python.exe" .
    - .\Scripts\activate
    - python setup.py bdist_wheel --dist-dir dist3
  artifacts:
    paths:
      - dist3/
22

Isaak Lim's avatar
Isaak Lim committed
23
build-3.5-linux:
Isaak Lim's avatar
Isaak Lim committed
24
25
  stage:
    build
Janis Born's avatar
Janis Born committed
26
27
  tags:
    - Linux
Isaak Lim's avatar
Isaak Lim committed
28
29
30
31
32
33
34
35
36
37
38
39
40
41
  variables:
    GIT_SUBMODULE_STRATEGY: recursive
  script:
    - virtualenv --clear -p python3.5 .
    - source bin/activate
    - python setup.py bdist_wheel --dist-dir dist3
  artifacts:
    paths:
      - dist3/

build-3.5-macos:
  stage:
    build
  tags:
Isaak Lim's avatar
Isaak Lim committed
42
    - Apple
43
44
  variables:
    GIT_SUBMODULE_STRATEGY: recursive
Isaak Lim's avatar
Isaak Lim committed
45
  script:
Isaak Lim's avatar
Isaak Lim committed
46
    - export PATH=/opt/local/bin:$PATH
Isaak Lim's avatar
Isaak Lim committed
47
48
    - virtualenv --clear -p python3.5 .
    - source bin/activate
Isaak Lim's avatar
Isaak Lim committed
49
50
51
52
    - python setup.py bdist_wheel --dist-dir dist3
  artifacts:
    paths:
      - dist3/
Isaak Lim's avatar
Isaak Lim committed
53

Isaak Lim's avatar
Isaak Lim committed
54
build-2.7-linux:
Isaak Lim's avatar
Isaak Lim committed
55
56
  stage:
    build
Janis Born's avatar
Janis Born committed
57
58
  tags:
    - Linux
Isaak Lim's avatar
Isaak Lim committed
59
60
61
62
63
64
65
66
67
68
69
70
71
72
  variables:
    GIT_SUBMODULE_STRATEGY: recursive
  script:
    - virtualenv --clear -p python2.7 .
    - source bin/activate
    - python setup.py bdist_wheel --dist-dir dist2
  artifacts:
    paths:
      - dist2/

build-2.7-macos:
  stage:
    build
  tags:
Isaak Lim's avatar
Isaak Lim committed
73
    - Apple
74
75
  variables:
    GIT_SUBMODULE_STRATEGY: recursive
Isaak Lim's avatar
Isaak Lim committed
76
  script:
Isaak Lim's avatar
Isaak Lim committed
77
    - export PATH=/opt/local/bin:$PATH
Isaak Lim's avatar
Isaak Lim committed
78
79
    - virtualenv --clear -p python2.7 .
    - source bin/activate
Isaak Lim's avatar
Isaak Lim committed
80
81
82
83
84
    - python setup.py bdist_wheel --dist-dir dist2
  artifacts:
    paths:
      - dist2/

Isaak Lim's avatar
Isaak Lim committed
85
86
87
88
89
90
test-3.6-VS2017:
  stage:
    test
  tags:
    - VS2017
  dependencies:
Isaak Lim's avatar
Isaak Lim committed
91
    - build-3.6-VS2017
Isaak Lim's avatar
Isaak Lim committed
92
93
94
95
  script:
    - set Path=%Path%;C:\Program Files\Python36;C:\Program Files\Python36\Scripts;
    - virtualenv --clear -p "C:\Program Files\Python36\python.exe" .
    - .\Scripts\activate
Isaak Lim's avatar
Isaak Lim committed
96
97
98
    - cd dist3
    - FOR %wheel in (*.whl) DO pip install %wheel
    - cd ..\tests
Isaak Lim's avatar
Isaak Lim committed
99
100
    - python -m unittest discover

Isaak Lim's avatar
Isaak Lim committed
101
test-3.5-linux:
Isaak Lim's avatar
Isaak Lim committed
102
103
104
105
  stage:
    test
  tags:
    - Linux
Isaak Lim's avatar
Isaak Lim committed
106
107
108
109
110
111
112
113
114
115
116
117
118
  dependencies:
    - build-3.5-linux
  script:
    - virtualenv --clear -p python3.5 .
    - source bin/activate
    - pip install dist3/*.whl
    - cd tests
    - python -m unittest discover

test-3.5-macos:
  stage:
    test
  tags:
Isaak Lim's avatar
Isaak Lim committed
119
    - Apple
Isaak Lim's avatar
Isaak Lim committed
120
  dependencies:
Isaak Lim's avatar
Isaak Lim committed
121
    - build-3.5-macos
Isaak Lim's avatar
Isaak Lim committed
122
  script:
Isaak Lim's avatar
Isaak Lim committed
123
    - export PATH=/opt/local/bin:$PATH
Isaak Lim's avatar
Isaak Lim committed
124
125
126
    - virtualenv --clear -p python3.5 .
    - source bin/activate
    - pip install dist3/*.whl
Isaak Lim's avatar
Isaak Lim committed
127
128
129
    - cd tests
    - python -m unittest discover

Isaak Lim's avatar
Isaak Lim committed
130
test-2.7-linux:
Isaak Lim's avatar
Isaak Lim committed
131
132
133
134
  stage:
    test
  tags:
    - Linux
Isaak Lim's avatar
Isaak Lim committed
135
136
137
138
139
140
141
142
143
144
145
146
147
  dependencies:
    - build-2.7-linux
  script:
    - virtualenv --clear -p python2.7 .
    - source bin/activate
    - pip install dist2/*.whl
    - cd tests
    - python -m unittest discover

test-2.7-macos:
  stage:
    test
  tags:
Isaak Lim's avatar
Isaak Lim committed
148
    - Apple
Isaak Lim's avatar
Isaak Lim committed
149
  dependencies:
Isaak Lim's avatar
Isaak Lim committed
150
    - build-2.7-macos
Isaak Lim's avatar
Isaak Lim committed
151
  script:
Isaak Lim's avatar
Isaak Lim committed
152
    - export PATH=/opt/local/bin:$PATH
Isaak Lim's avatar
Isaak Lim committed
153
154
155
    - virtualenv --clear -p python2.7 .
    - source bin/activate
    - pip install dist2/*.whl
Isaak Lim's avatar
Isaak Lim committed
156
157
    - cd tests
    - python -m unittest discover
158

Isaak Lim's avatar
Isaak Lim committed
159
160
161
162
163
164
deploy-3.6-VS2017:
  stage:
    deploy
  tags:
    - VS2017
  dependencies:
Isaak Lim's avatar
Isaak Lim committed
165
    - build-3.6-VS2017
Isaak Lim's avatar
Isaak Lim committed
166
167
  script:
    - mkdir release
Isaak Lim's avatar
Isaak Lim committed
168
169
    - cd dist3
    - FOR %wheel in (*.whl) DO copy %wheel ..\release
Isaak Lim's avatar
Isaak Lim committed
170
171
172
  artifacts:
    paths:
      - release/*.whl
Isaak Lim's avatar
Isaak Lim committed
173

Isaak Lim's avatar
Isaak Lim committed
174
deploy-3.5-linux:
Isaak Lim's avatar
Isaak Lim committed
175
176
177
178
  stage:
    deploy
  tags:
    - Linux
Isaak Lim's avatar
Isaak Lim committed
179
180
181
182
183
184
185
186
187
188
189
190
191
  dependencies:
    - build-3.5-linux
  script:
    - mkdir release
    - cp dist3/*.whl release
  artifacts:
    paths:
      - release/*.whl

deploy-3.5-macos:
  stage:
    deploy
  tags:
Isaak Lim's avatar
Isaak Lim committed
192
    - Apple
Isaak Lim's avatar
Isaak Lim committed
193
  dependencies:
Isaak Lim's avatar
Isaak Lim committed
194
    - build-3.5-macos
Isaak Lim's avatar
Isaak Lim committed
195
196
197
198
199
200
201
  script:
    - mkdir release
    - cp dist3/*.whl release
  artifacts:
    paths:
      - release/*.whl

Isaak Lim's avatar
Isaak Lim committed
202
deploy-2.7-linux:
Isaak Lim's avatar
Isaak Lim committed
203
204
205
206
  stage:
    deploy
  tags:
    - Linux
Isaak Lim's avatar
Isaak Lim committed
207
208
209
210
211
212
213
214
215
216
217
218
219
  dependencies:
    - build-2.7-linux
  script:
    - mkdir release
    - cp dist2/*.whl release
  artifacts:
    paths:
      - release/*.whl

deploy-2.7-macos:
  stage:
    deploy
  tags:
Isaak Lim's avatar
Isaak Lim committed
220
    - Apple
Isaak Lim's avatar
Isaak Lim committed
221
  dependencies:
Isaak Lim's avatar
Isaak Lim committed
222
    - build-2.7-macos
Isaak Lim's avatar
Isaak Lim committed
223
224
225
226
227
228
  script:
    - mkdir release
    - cp dist2/*.whl release
  artifacts:
    paths:
      - release/*.whl