forked from ElementsProject/libwally-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
155 lines (145 loc) · 3.44 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
linux_release:
image: greenaddress/wallycore@sha256:9bbe9705c415f2bf35231df2acd731eb99f022c279e7f39ac1ed364ed3f170df
artifacts:
expire_in: 1 day
name: wallycore-bindings
when: on_success
paths:
- wally_dist/*
tags:
- ga
script:
- cd $CI_PROJECT_DIR
- ./tools/build_python_wheels.sh
- python setup.py sdist --dist-dir ./wally_core
- ./tools/build_android_libraries.sh
- ./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_debug:
image: greenaddress/wallycore@sha256:af5eff8d1839189cf72e4f9cc6dfd7f13730c6837b09d9a33cc5f0d6de66aa16
tags:
- ga
script:
- cd $CI_PROJECT_DIR
- ./tools/cleanup.sh && ./tools/autogen.sh
- DEBUG_WALLY=--enable-debug ./tools/travis_build.sh
- DEBUG_WALLY=--enable-debug ./tools/build_js_bindings.sh
ubuntu_release:
image: greenaddress/wallycore@sha256:98530ad68264c6b50fe2ea060c275ddb2500fc459bded4df16263b464870a3e5
artifacts:
expire_in: 1 day
name: wallycore-bindings
when: on_success
paths:
- wally_dist/*
tags:
- ga
script:
- cd $CI_PROJECT_DIR
- ./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
mips_release:
tags:
- mips
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%
- call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
- tools\msvc\wheel.bat
apidocs:
image: greenaddress/wallycore@sha256:af5eff8d1839189cf72e4f9cc6dfd7f13730c6837b09d9a33cc5f0d6de66aa16
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