forked from Electron-Cash/Electron-Cash
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.cirrus.yml
93 lines (86 loc) · 2.48 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
common: &COMMON_TEMPLATE
timeout_in: 120m
clone_script: |
if [ -z "$CIRRUS_PR" ]; then
git clone --recursive --branch=$CIRRUS_BRANCH https://x-access-token:${CIRRUS_REPO_CLONE_TOKEN}@github.com/${CIRRUS_REPO_FULL_NAME}.git $CIRRUS_WORKING_DIR
git reset --hard $CIRRUS_CHANGE_IN_REPO
else
git clone --recursive https://x-access-token:${CIRRUS_REPO_CLONE_TOKEN}@github.com/${CIRRUS_REPO_FULL_NAME}.git $CIRRUS_WORKING_DIR
git fetch origin pull/$CIRRUS_PR/head:pull/$CIRRUS_PR
git reset --hard $CIRRUS_CHANGE_IN_REPO
fi
task:
name: "Build MacOS DMG"
<< : *COMMON_TEMPLATE
macos_instance:
image: ghcr.io/cirruslabs/macos-monterey-xcode
brew_script:
- brew update
- brew install coreutils gettext pyenv
test_script:
- cd contrib/osx && ./make_osx
binaries_artifacts:
path: "dist/*.dmg"
trigger_type: manual
docker_builder:
name: "Build Linux AppImage"
<< : *COMMON_TEMPLATE
platform: linux
build_script:
- contrib/build-linux/appimage/build.sh $CIRRUS_BRANCH
binaries_artifacts:
path: "dist/*.AppImage"
trigger_type: manual
docker_builder:
name: "Build source distribution"
<< : *COMMON_TEMPLATE
platform: linux
build_script:
- contrib/build-linux/srcdist_docker/build.sh $CIRRUS_BRANCH
binaries_artifacts:
path: "dist/*.tar.gz"
trigger_type: manual
docker_builder:
name: "Build Windows EXE"
<< : *COMMON_TEMPLATE
platform: linux
build_script:
- contrib/build-wine/build.sh $CIRRUS_BRANCH
binaries_artifacts:
path: "dist/*.exe"
trigger_type: manual
task:
name: "Tests"
build_script:
- pip install -r contrib/requirements/requirements-ci.txt
test_script:
- python -m electrumabc.tests -v
- python -m electrumabc_plugins.fusion.tests -v
matrix:
- container:
image: python:3.7
- container:
image: python:3.8
- container:
image: python:3.9
- container:
image: python:3.10
- container:
image: python:3.11
- windows_container:
image: "python:3.11-windowsservercore"
task:
name: "Tests (secp256k1)"
build_script:
- set -e
- contrib/make_secp
- pip install -r contrib/requirements/requirements-ci.txt
test_script:
- set -e
- coverage run -m electrumabc.tests -v;
- coverage run -m electrumabc_plugins.fusion.tests -v;
# FIXME: coverage report no longer works on cirrus.
# - coverage report --include="./electrumabc*";
matrix:
- container:
image: python:3.11