forked from ohac/electrum
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy path.cirrus.yml
116 lines (110 loc) · 3.17 KB
/
.cirrus.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
task:
name: Regtest functional tests
compute_engine_instance:
image_project: cirrus-images
image: family/docker-builder
platform: linux
cpu: 1
memory: 1G
pip_cache:
folder: ~/.cache/pip
fingerprint_script: echo Regtest && echo docker_builder && cat $ELECTRUM_REQUIREMENTS
populate_script: mkdir -p ~/.cache/pip
electrum_cache:
folder: /tmp/electrum-build
populate_script: mkdir -p /tmp/electrum-build
bitcoind_cache:
folder: /tmp/bitcoind
populate_script: mkdir -p /tmp/bitcoind
install_script:
- apt-get update
- apt-get -y install libsecp256k1-0 curl jq bc
- pip3 install .[tests]
# install e-x some commits after 1.16.0 tag, where it uses same aiorpcx as electrum
- pip3 install git+https://github.com/spesmilo/electrumx.git@c8d2cc0d5cf9e549a90ca876d85fed9a90b8c4ed
- BITCOIND_VERSION="0.17.1"
- BITCOIND_FILENAME=monacoin-$BITCOIND_VERSION-x86_64-linux-gnu.tar.gz
- BITCOIND_PATH=/tmp/bitcoind/$BITCOIND_FILENAME
- BITCOIND_URL=https://github.com/monacoinproject/monacoin/releases/download/monacoin-$BITCOIND_VERSION/$BITCOIND_FILENAME
- tar -xaf $BITCOIND_PATH || (rm -f /tmp/bitcoind/* && curl -L --output $BITCOIND_PATH $BITCOIND_URL && tar -xaf $BITCOIND_PATH)
- cp -a monacoin-$BITCOIND_VERSION/* /usr/
bitcoind_service_background_script:
- electrum_mona/tests/regtest/run_bitcoind.sh
electrumx_service_background_script:
- electrum_mona/tests/regtest/run_electrumx.sh
regtest_script:
- sleep 10s
- python3 -m unittest electrum_mona/tests/regtest.py
env:
ELECTRUM_REQUIREMENTS: contrib/requirements/requirements.txt
# ElectrumX exits with an error without this:
ALLOW_ROOT: 1
task:
name: Windows build
container:
dockerfile: contrib/build-wine/Dockerfile
cpu: 1
memory: 2G
build_script:
- cd contrib/build-wine
- ./make_win.sh
binaries_artifacts:
path: "contrib/build-wine/dist/*"
env:
CIRRUS_WORKING_DIR: /opt/wine64/drive_c/electrum-mona
task:
name: Android build
container:
dockerfile: contrib/android/Dockerfile
cpu: 2
memory: 2G
build_script:
- ./contrib/android/make_apk kivy arm64-v8a debug
binaries_artifacts:
path: "dist/*"
task:
name: MacOS build
macos_instance:
image: catalina-xcode-11.3.1
env:
TARGET_OS: macOS
install_script:
- git fetch --all --tags
build_script:
- ./contrib/osx/make_osx
sum_script:
- ls -lah dist
- shasum -a 256 dist/*.dmg
binaries_artifacts:
path: "dist/*"
task:
name: AppImage build
container:
dockerfile: contrib/build-linux/appimage/Dockerfile
cpu: 2
memory: 1G
build_script:
- ./contrib/build-linux/appimage/make_appimage.sh
binaries_artifacts:
path: "dist/*"
task:
name: tarball build
container:
dockerfile: contrib/build-linux/sdist/Dockerfile
cpu: 1
memory: 1G
build_script:
- ./contrib/build-linux/sdist/make_sdist.sh
binaries_artifacts:
path: "dist/*"
task:
name: Submodules
container:
image: python:3.8
cpu: 1
memory: 1G
fetch_script:
- git fetch --all --tags
check_script:
- ./contrib/deterministic-build/check_submodules.sh
only_if: $CIRRUS_TAG != ''