-
Notifications
You must be signed in to change notification settings - Fork 22
/
.cirrus.yml
64 lines (58 loc) · 2.3 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
# Cirrus CI configuration
# https://cirrus-ci.com/github/libexif/exif
freebsd_task:
skip: "changesIncludeOnly(
'.appveyor.yml',
'.github/**'
)"
name: FreeBSD
freebsd_instance:
memory: 1400M
matrix:
image_family: freebsd-14-1
image_family: freebsd-13-4
env:
# Set to 10 instead of 1 to avoid problems when new commits are submitted
# during a run.
CIRRUS_CLONE_DEPTH: 10
CFLAGS: -Wall -Wextra -O2
MAKEFLAGS: -j 3
pkginstall_script:
- pkg install -y autoconf automake libtool gettext-tools gettext-runtime popt pkgconf git
- git clone --depth=1 https://github.com/libexif/libexif.git /tmp/libexif
builddeps_script:
- (cd /tmp/libexif && autoreconf -sivf && ./configure --prefix=/tmp/libexif/install && make V=1 && make V=1 install)
configure_script:
- autoreconf -sivf
- ./configure --prefix="${HOME}" CFLAGS="$CFLAGS" PKG_CONFIG_PATH="/tmp/libexif/install/lib/pkgconfig:/usr/libdata/pkgconfig:/usr/local/libdata/pkgconfig" POPT_CFLAGS="$(pkg-config --cflags popt)" POPT_LIBS="$(pkg-config --libs popt)" || { tail -400 config.log; false; }
compile_script:
- make V=1
test_script:
- make V=1 check || { tail -400 test/test-suite.log; false; }
install_script:
- make V=1 install
linux_arm_task:
name: ARM Linux
arm_container:
image: ubuntu:22.04
memory: 350M
env:
# Set to 10 instead of 1 to avoid problems when new commits are submitted
# during a run.
CIRRUS_CLONE_DEPTH: 10
CFLAGS: -Wall -Wextra -O2
MAKE_FLAGS: -j 3
pkginstall_script:
- apt-get update -y && DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential autoconf automake autopoint libtool pkgconf git gettext libpopt-dev
- git clone --depth=1 https://github.com/libexif/libexif.git /tmp/libexif
builddeps_script:
- (cd /tmp/libexif && autoreconf -sivf && ./configure --prefix=/tmp/libexif/install && make V=1 && make V=1 install)
configure_script:
- autoreconf -sivf
- ./configure --prefix="${HOME}" CFLAGS="$CFLAGS" PKG_CONFIG_PATH="/tmp/libexif/install/lib/pkgconfig:/usr/libdata/pkgconfig:/usr/local/libdata/pkgconfig" || { tail -400 config.log; false; }
compile_script:
- make V=1
test_script:
- make V=1 check || { tail -400 test/test-suite.log; false; }
install_script:
- make V=1 install