forked from ElementsProject/libwally-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
158 lines (149 loc) · 4.01 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
bullseye_release:
image: greenaddress/wallycore@sha256:8ced27d7281cc9a98301dea544d3f9c64be1c3da013faa0a6c5fd16622f40942
artifacts:
expire_in: 1 day
name: wallycore-bindings
when: on_success
paths:
- wally_dist/*
tags:
- ga
before_script:
- tools/uncrustify || true
- git diff --exit-code
- git submodule sync --recursive
- git submodule update --init --recursive
script:
- ./tools/cleanup.sh
- ./tools/autogen.sh
- python setup.py sdist --dist-dir ./wally_dist
- ./tools/build_android_libraries.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
- source /opt/emsdk/emsdk_env.sh
- tools/build_wasm.sh --enable-elements
- cd wally_dist && tar cvf wallycore-wasm.tar --remove-files wallycore.html wallycore.js wallycore.wasm
- gzip -9 wallycore-wasm.tar
manylinux_release:
image: greenaddress/wallycore@sha256:8ced27d7281cc9a98301dea544d3f9c64be1c3da013faa0a6c5fd16622f40942
artifacts:
expire_in: 1 day
name: wallycore-bindings
when: on_success
paths:
- wally_dist/*
tags:
- ga
before_script:
- git submodule sync --recursive
- git submodule update --init --recursive
- yum install swig3 -y
script:
- ./tools/build_python_manylinux_wheels.sh
#manylinux_aarch64_release:
# image: greenaddress/wallycore@sha256:fcf1fe6dc4f85ba698a78b63d1a91499a7d827b128d950b2d6a1f0a9a4ee9903
# artifacts:
# expire_in: 1 day
# name: wallycore-bindings
# when: on_success
# paths:
# - wally_dist/*
# tags:
# - arm64_docker
# before_script:
# - git submodule sync --recursive
# - git submodule update --init --recursive
# - yum install swig3 -y
# script:
# - ./tools/build_python_manylinux_wheels.sh
osx_release:
tags:
- osx
before_script:
- git submodule sync --recursive
- git submodule update --init --recursive
script:
- ./tools/build_python_wheels.sh python3
#armv7l_release:
# tags:
# - armv7l_docker
# artifacts:
# expire_in: 1 day
# name: wallycore-bindings
# when: on_success
# paths:
# - wally_dist/*
# before_script:
# - git submodule sync --recursive
# - git submodule update --init --recursive
# script:
# - ./tools/build_python_wheels.sh python3
# powerpcg4_release:
# tags:
# - powerpcg4
# script:
# - ./tools/build_python_wheels.sh python3
#freebsdamd64_release:
# tags:
# - freebsd
# artifacts:
# expire_in: 1 day
# name: wallycore-bindings
# when: on_success
# paths:
# - wally_dist/*
# before_script:
# - git submodule sync --recursive
# - git submodule update --init --recursive
# script:
# - cd $CI_PROJECT_DIR
# - ./tools/build_python_wheels.sh python3
#windows10_release:
# tags:
# - win10
# before_script:
# - git submodule sync --recursive
# - git submodule update --init --recursive
# 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:8ced27d7281cc9a98301dea544d3f9c64be1c3da013faa0a6c5fd16622f40942
artifacts:
expire_in: 14 days
name: wallycore-apidocs
when: on_success
paths:
- apidocs.tar.gz
tags:
- ga
script:
- ./tools/cleanup.sh
- virtualenv -p python3 .venv
- source .venv/bin/activate
- pip install -r docs/requirements.txt
- 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:
- bullseye_release
- manylinux_release
# - manylinux_aarch64_release
- osx_release
# - armv7l_release
# - windows10_release
- apidocs
# - freebsdamd64_release