forked from ElementsProject/libwally-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
165 lines (154 loc) · 3.98 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
linux_release:
image: greenaddress/wallycore@sha256:9e7f9991cfe657926db21d12d34c58ce5ea45eef83cfde614138c69cfa4ace84
artifacts:
expire_in: 1 day
name: wallycore-bindings
when: on_success
paths:
- wally_dist/*
tags:
- ga
script:
- cd $CI_PROJECT_DIR
- ENABLE_ELEMENTS=--enable-elements ./tools/build_python_wheels.sh
- ENABLE_ELEMENTS=--enable-elements python setup.py sdist --dist-dir ./wally_core
- ENABLE_ELEMENTS=--enable-elements ./tools/build_android_libraries.sh
- ENABLE_ELEMENTS=--enable-elements ./tools/build_js_bindings.sh
- mv release wallycore-android-jni
- tar cvf wally_dist/wallycore-android-jni.tar wallycore-android-jni
- gzip -9 wally_dist/wallycore-android-jni.tar
linux_py2_debug:
image: greenaddress/wallycore@sha256:9e7f9991cfe657926db21d12d34c58ce5ea45eef83cfde614138c69cfa4ace84
tags:
- ga
script:
- cd $CI_PROJECT_DIR
- ./tools/cleanup.sh && ./tools/autogen.sh
- PYTHON_VERSION=2.7 DEBUG_WALLY=--enable-debug ./tools/travis_build.sh
- DEBUG_WALLY=--enable-debug ./tools/build_js_bindings.sh
linux_py3_debug:
image: greenaddress/wallycore@sha256:9e7f9991cfe657926db21d12d34c58ce5ea45eef83cfde614138c69cfa4ace84
tags:
- ga
script:
- cd $CI_PROJECT_DIR
- ./tools/cleanup.sh && ./tools/autogen.sh
- PYTHON_VERSION=3.5 DEBUG_WALLY=--enable-debug ./tools/travis_build.sh
ubuntu_release:
image: greenaddress/wallycore@sha256:0cfdaf0b1f62981e3da321da003d09fe9e1fd6f0b052e64121031ff3b5263ad8
artifacts:
expire_in: 1 day
name: wallycore-bindings
when: on_success
paths:
- wally_dist/*
tags:
- ga
script:
- cd $CI_PROJECT_DIR
- ENABLE_ELEMENTS=--enable-elements ./tools/build_python_wheels.sh python3
osx_release:
tags:
- osx
artifacts:
expire_in: 1 day
name: wallycore-bindings
when: on_success
paths:
- wally_dist/*
script:
- cd $CI_PROJECT_DIR
- ./tools/build_python_wheels.sh "python python3"
armv7l_release:
tags:
- armv7l
artifacts:
expire_in: 1 day
name: wallycore-bindings
when: on_success
paths:
- wally_dist/*
script:
- cd $CI_PROJECT_DIR
- ./tools/build_python_wheels.sh
arm64_release:
tags:
- arm64
artifacts:
expire_in: 1 day
name: wallycore-bindings
when: on_success
paths:
- wally_dist/*
script:
- cd $CI_PROJECT_DIR
- ./tools/build_python_wheels.sh
powerpcg4_release:
tags:
- powerpcg4
script:
- ./tools/build_python_wheels.sh
freebsdamd64_release:
tags:
- freebsd
artifacts:
expire_in: 1 day
name: wallycore-bindings
when: on_success
paths:
- wally_dist/*
script:
- cd $CI_PROJECT_DIR
- ./tools/build_python_wheels.sh
windows10_release:
tags:
- win10
artifacts:
name: wallycore-dll
when: on_success
paths:
- wally_dist\*
script:
- cd %CI_PROJECT_DIR%
- set ENABLE_ELEMENTS=-DBUILD_ELEMENTS=1
- call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
- tools\msvc\wheel.bat
apidocs:
image: greenaddress/wallycore@sha256:9e7f9991cfe657926db21d12d34c58ce5ea45eef83cfde614138c69cfa4ace84
artifacts:
expire_in: 14 days
name: wallycore-apidocs
when: on_success
paths:
- apidocs.tar.gz
tags:
- ga
script:
- cd $CI_PROJECT_DIR
- ./tools/cleanup.sh
- virtualenv -p python2 .venv
- source .venv/bin/activate
- pip install sphinx sphinx_rtd_theme
- sphinx-build -b html -a -c docs/source docs/source docs/build/html
- cd docs/build && tar czf ../../apidocs.tar.gz html/ && cd ../..
- deactivate
- ./tools/cleanup.sh
package_release:
tags:
- garelease
stage: deploy
artifacts:
expire_in: 14 days
paths:
- wally_dist/*
when: on_success
script: cd $CI_PROJECT_DIR/wally_dist && /opt/process_release
dependencies:
- linux_release
- ubuntu_release
- osx_release
- armv7l_release
- arm64_release
- freebsdamd64_release
- windows10_release
- apidocs