-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
93 lines (83 loc) · 2.53 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
# seamsh - Copyright (C) <2010-2020>
# <Universite catholique de Louvain (UCL), Belgium
#
# List of the contributors to the development of seamsh: see AUTHORS file.
# Description and complete License: see LICENSE file.
#
# This program (seamsh) is free software:
# you can redistribute it and/or modify it under the terms of the GNU Lesser General
# Public License as published by the Free Software Foundation, either version
# 3 of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program (see COPYING file). If not,
# see <http://www.gnu.org/licenses/>.
seamshbuild-linux :
image : immc/seamsh-build:v0.9
stage : build
script:
- python3 setup.py sdist
- python3 setup.py bdist_wheel --plat-name=manylinux1_x86_64
artifacts:
paths:
- dist
expire_in: 1 day
seamshbuild-windows :
image : immc/seamsh-build:v0.9
stage : build
script:
- LDSHARED="x86_64-w64-mingw32-gcc" LDFLAGS="-shared -O2" CC=x86_64-w64-mingw32-gcc CFLAGS="-O2 -fno-stack-protector" python3 setup.py bdist_wheel --plat-name=win_amd64
artifacts:
paths:
- dist
expire_in: 1 day
seamshbuild-osx :
image : immc/seamsh-build:v0.9
stage : build
script:
- $(osxcross-conf) & LDSHARED="o64-clang" LDFLAGS="-O2 -DNDEBUG -dynamiclib -Wl,-headerpad_max_install_names" CC=o64-clang python3 setup.py bdist_wheel --plat-name=macosx_10_9_x86_64
artifacts:
paths:
- dist
expire_in: 1 day
seamshtest :
image : immc/seamsh-valid:v0.5
stage : test
script:
- pip3 install --user dist/*manylinux1_x86_64*
- cd tests
- python3 testshp.py
pages:
image : immc/seamsh-valid:v0.5
stage : deploy
script:
- pip3 install --user dist/*manylinux1_x86_64*
- cd doc
- python3 gen_examples.py
- make html
- mv _build/html ../public
artifacts:
paths:
- public
expire_in: 1 day
seamshdeploy-test :
image : immc/seamsh-build:v0.9
stage : deploy
rules :
- if: '$CI_COMMIT_TAG =~ /^w-.*$/'
when: always
script:
- twine upload --repository testpypi dist/*
seamshdeploy :
image : immc/seamsh-build:v0.9
stage : deploy
rules :
- if: '$CI_COMMIT_TAG =~ /^v-.*$/'
when: always
script:
- twine upload dist/*