-
Notifications
You must be signed in to change notification settings - Fork 184
/
.cirrus.yml
90 lines (79 loc) · 2.44 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
.compile: &compile
configure_script: meson -Db_lundef=false build
compile_script: ninja -C build
.test: &test
test_script: ninja -C build test
.pipeline: &pipeline
info_script: |
meson --version
ninja --version
<<: *compile
<<: *test
Debian (gcc)_task:
container:
image: debian:11
setup_script: |-
apt-get update
apt-get install -y build-essential pkg-config meson ninja-build cmake git libgit2-dev libffi-dev libnanomsg-dev python3-pip
pip3 install cram==0.7
<<: *pipeline
Alpine (gcc,x86_64)_task:
container:
image: amd64/alpine:3
setup_script: &alpine-deps |-
apk add --no-cache build-base pkgconf meson ninja cmake git libgit2-dev libffi-dev py3-pip
pip3 install cram==0.7
<<: *pipeline
Alpine (gcc,i386)_task:
container:
image: i386/alpine:3
setup_script: *alpine-deps
<<: *pipeline
Alpine (gcc,arm32v6)_task:
arm_container:
image: arm32v6/alpine:3
setup_script: *alpine-deps
<<: *pipeline
Alpine (gcc,arm32v7)_task:
arm_container:
image: arm32v7/alpine:3
setup_script: *alpine-deps
<<: *pipeline
Alpine (gcc,aarch64)_task:
arm_container:
image: arm64v8/alpine:3
setup_script: *alpine-deps
<<: *pipeline
MacOS_task:
macos_instance:
image: ghcr.io/cirruslabs/macos-ventura-base:latest
env:
PKG_CONFIG_PATH: ${PKG_CONFIG_PATH}:/usr/local/opt/libffi/lib/pkgconfig
setup_script: |-
brew install meson cmake pkg-config libffi libgit2 nanomsg
sudo pip3 install cram==0.7
<<: *pipeline
FreeBSD_task:
freebsd_instance:
image_family: freebsd-13-1
setup_script: |-
pkg install -y gettext-tools pkgconf cmake meson git libffi libgit2 nanomsg
python3 -m ensurepip
python3 -m pip install --upgrade pip
python3 -m pip install cram==0.7
<<: *pipeline
Windows (mingw-gcc)_task:
windows_container:
image: cirrusci/windowsservercore:cmake
os_version: 2019
env:
PATH: C:\\Python;C:\\Python\\Scripts;C:\\ProgramData\\chocolatey\\lib\\ninja\\tools;%PATH%
setup_script: |-
choco install -y --no-progress python311 --params "/InstallDir:C:\Python"
choco install -y --no-progress ninja cmake
pip install meson cram==0.7
git config --global core.autocrlf false
patch --forward --directory="C:\\Python\\Lib\\site-packages\\cram" < ci/cram-fix-winenv.patch
patch --forward --directory="C:\\Python\\Lib\\site-packages\\cram" < ci/cram-ignore-cr.patch
<<: *compile
test_script: meson devenv -C build ninja test