.gitlab-ci.yml 4.02 KB
Newer Older
Isaak Lim's avatar
Isaak Lim committed
1
2
3
4
stages:
  - build
  - test
  - deploy
Isaak Lim's avatar
Isaak Lim committed
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
      
build-3.6-VS2017:
  stage:
    build
  tags:
    - VS2017
  variables:
    GIT_SUBMODULE_STRATEGY: recursive
    COMPILER: "VS2017"
  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/
      
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
96
97
98
99
  script:
    - set Path=%Path%;C:\Program Files\Python36;C:\Program Files\Python36\Scripts;
    - virtualenv --clear -p "C:\Program Files\Python36\python.exe" .
    - .\Scripts\activate
    - FOR %a in (dist3\*.whl) DO pip install %a
    - cd tests
    - python -m unittest discover

Isaak Lim's avatar
Isaak Lim committed
100
test-3.5-linux:
Isaak Lim's avatar
Isaak Lim committed
101
102
103
104
  stage:
    test
  tags:
    - Linux
Isaak Lim's avatar
Isaak Lim committed
105
106
107
108
109
110
111
112
113
114
115
116
117
  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
118
    - Apple
Isaak Lim's avatar
Isaak Lim committed
119
  dependencies:
Isaak Lim's avatar
Isaak Lim committed
120
    - build-3.5-macos
Isaak Lim's avatar
Isaak Lim committed
121
  script:
Isaak Lim's avatar
Isaak Lim committed
122
    - export PATH=/opt/local/bin:$PATH
Isaak Lim's avatar
Isaak Lim committed
123
124
125
    - virtualenv --clear -p python3.5 .
    - source bin/activate
    - pip install dist3/*.whl
Isaak Lim's avatar
Isaak Lim committed
126
127
128
    - cd tests
    - python -m unittest discover

Isaak Lim's avatar
Isaak Lim committed
129
test-2.7-linux:
Isaak Lim's avatar
Isaak Lim committed
130
131
132
133
  stage:
    test
  tags:
    - Linux
Isaak Lim's avatar
Isaak Lim committed
134
135
136
137
138
139
140
141
142
143
144
145
146
  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
147
    - Apple
Isaak Lim's avatar
Isaak Lim committed
148
  dependencies:
Isaak Lim's avatar
Isaak Lim committed
149
    - build-2.7-macos
Isaak Lim's avatar
Isaak Lim committed
150
  script:
Isaak Lim's avatar
Isaak Lim committed
151
    - export PATH=/opt/local/bin:$PATH
Isaak Lim's avatar
Isaak Lim committed
152
153
154
    - virtualenv --clear -p python2.7 .
    - source bin/activate
    - pip install dist2/*.whl
Isaak Lim's avatar
Isaak Lim committed
155
156
    - cd tests
    - python -m unittest discover
Isaak Lim's avatar
Isaak Lim committed
157
158
159
160
161
162
163
    
deploy-3.6-VS2017:
  stage:
    deploy
  tags:
    - VS2017
  dependencies:
Isaak Lim's avatar
Isaak Lim committed
164
    - build-3.6-VS2017
Isaak Lim's avatar
Isaak Lim committed
165
166
167
168
169
170
  script:
    - mkdir release
    - FOR %a in (dist3\*.whl) DO cp %a release
  artifacts:
    paths:
      - release/*.whl
Isaak Lim's avatar
Isaak Lim committed
171

Isaak Lim's avatar
Isaak Lim committed
172
deploy-3.5-linux:
Isaak Lim's avatar
Isaak Lim committed
173
174
175
176
  stage:
    deploy
  tags:
    - Linux
Isaak Lim's avatar
Isaak Lim committed
177
178
179
180
181
182
183
184
185
186
187
188
189
  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
190
    - Apple
Isaak Lim's avatar
Isaak Lim committed
191
  dependencies:
Isaak Lim's avatar
Isaak Lim committed
192
    - build-3.5-macos
Isaak Lim's avatar
Isaak Lim committed
193
194
195
196
197
198
199
  script:
    - mkdir release
    - cp dist3/*.whl release
  artifacts:
    paths:
      - release/*.whl

Isaak Lim's avatar
Isaak Lim committed
200
deploy-2.7-linux:
Isaak Lim's avatar
Isaak Lim committed
201
202
203
204
  stage:
    deploy
  tags:
    - Linux
Isaak Lim's avatar
Isaak Lim committed
205
206
207
208
209
210
211
212
213
214
215
216
217
  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
218
    - Apple
Isaak Lim's avatar
Isaak Lim committed
219
  dependencies:
Isaak Lim's avatar
Isaak Lim committed
220
    - build-2.7-macos
Isaak Lim's avatar
Isaak Lim committed
221
222
223
224
225
226
  script:
    - mkdir release
    - cp dist2/*.whl release
  artifacts:
    paths:
      - release/*.whl