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

Isaak Lim's avatar
Isaak Lim committed
6
build-3.5-linux:
Isaak Lim's avatar
Isaak Lim committed
7
8
  stage:
    build
Janis Born's avatar
Janis Born committed
9
10
  tags:
    - Linux
Isaak Lim's avatar
Isaak Lim committed
11
12
13
14
15
16
17
18
19
20
21
22
23
24
  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
25
    - Apple
26
27
  variables:
    GIT_SUBMODULE_STRATEGY: recursive
Isaak Lim's avatar
Isaak Lim committed
28
  script:
Isaak Lim's avatar
Isaak Lim committed
29
    - export PATH=/opt/local/bin:$PATH
Isaak Lim's avatar
Isaak Lim committed
30
31
    - virtualenv --clear -p python3.5 .
    - source bin/activate
Isaak Lim's avatar
Isaak Lim committed
32
33
34
35
    - python setup.py bdist_wheel --dist-dir dist3
  artifacts:
    paths:
      - dist3/
Isaak Lim's avatar
Isaak Lim committed
36

Isaak Lim's avatar
Isaak Lim committed
37
build-2.7-linux:
Isaak Lim's avatar
Isaak Lim committed
38
39
  stage:
    build
Janis Born's avatar
Janis Born committed
40
41
  tags:
    - Linux
Isaak Lim's avatar
Isaak Lim committed
42
43
44
45
46
47
48
49
50
51
52
53
54
55
  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
56
    - Apple
57
58
  variables:
    GIT_SUBMODULE_STRATEGY: recursive
Isaak Lim's avatar
Isaak Lim committed
59
  script:
Isaak Lim's avatar
Isaak Lim committed
60
    - export PATH=/opt/local/bin:$PATH
Isaak Lim's avatar
Isaak Lim committed
61
62
    - virtualenv --clear -p python2.7 .
    - source bin/activate
Isaak Lim's avatar
Isaak Lim committed
63
64
65
66
67
    - python setup.py bdist_wheel --dist-dir dist2
  artifacts:
    paths:
      - dist2/

Isaak Lim's avatar
Isaak Lim committed
68
test-3.5-linux:
Isaak Lim's avatar
Isaak Lim committed
69
70
71
72
  stage:
    test
  tags:
    - Linux
Isaak Lim's avatar
Isaak Lim committed
73
74
75
76
77
78
79
80
81
82
83
84
85
  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
86
    - Apple
Isaak Lim's avatar
Isaak Lim committed
87
  dependencies:
Isaak Lim's avatar
Isaak Lim committed
88
    - build-3.5-macos
Isaak Lim's avatar
Isaak Lim committed
89
  script:
Isaak Lim's avatar
Isaak Lim committed
90
    - export PATH=/opt/local/bin:$PATH
Isaak Lim's avatar
Isaak Lim committed
91
92
93
    - virtualenv --clear -p python3.5 .
    - source bin/activate
    - pip install dist3/*.whl
Isaak Lim's avatar
Isaak Lim committed
94
95
96
    - cd tests
    - python -m unittest discover

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

Isaak Lim's avatar
Isaak Lim committed
126
deploy-3.5-linux:
Isaak Lim's avatar
Isaak Lim committed
127
128
129
130
  stage:
    deploy
  tags:
    - Linux
Isaak Lim's avatar
Isaak Lim committed
131
132
133
134
135
136
137
138
139
140
141
142
143
  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
144
    - Apple
Isaak Lim's avatar
Isaak Lim committed
145
  dependencies:
Isaak Lim's avatar
Isaak Lim committed
146
    - build-3.5-macos
Isaak Lim's avatar
Isaak Lim committed
147
148
149
150
151
152
153
  script:
    - mkdir release
    - cp dist3/*.whl release
  artifacts:
    paths:
      - release/*.whl

Isaak Lim's avatar
Isaak Lim committed
154
deploy-2.7-linux:
Isaak Lim's avatar
Isaak Lim committed
155
156
157
158
  stage:
    deploy
  tags:
    - Linux
Isaak Lim's avatar
Isaak Lim committed
159
160
161
162
163
164
165
166
167
168
169
170
171
  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
172
    - Apple
Isaak Lim's avatar
Isaak Lim committed
173
  dependencies:
Isaak Lim's avatar
Isaak Lim committed
174
    - build-2.7-macos
Isaak Lim's avatar
Isaak Lim committed
175
176
177
178
179
180
  script:
    - mkdir release
    - cp dist2/*.whl release
  artifacts:
    paths:
      - release/*.whl