aboutsummaryrefslogtreecommitdiffstats
path: root/.builds
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2024-08-04 15:12:12 +0200
committerMatěj Cepl <mcepl@cepl.eu>2024-09-12 07:47:53 +0200
commita3feb548c0e63ee3d01c7abc1ff25b7c49d31175 (patch)
tree0cc14f4f06f68cfab837411c5fb05e00c33c9eb1 /.builds
parentf2d413e8dedd8043b4261dc9b55d5be24fd4fa21 (diff)
downloadaerc-a3feb548c0e63ee3d01c7abc1ff25b7c49d31175.tar.gz
filters: replace valgrind with libasanHEADdevel
Libasan is not available under alpine which has musl-libc. Add fedora rawhide to the list of builds and run all tests with the address sanitizer enabled for C programs. Remove FILTERS_TEST_*PREFIX which isn't needed anymore. Signed-off-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to '.builds')
-rw-r--r--.builds/alpine-edge.yml7
-rw-r--r--.builds/fedora.yml26
2 files changed, 26 insertions, 7 deletions
diff --git a/.builds/alpine-edge.yml b/.builds/alpine-edge.yml
index a03f101e..f9abb3b4 100644
--- a/.builds/alpine-edge.yml
+++ b/.builds/alpine-edge.yml
@@ -2,23 +2,16 @@
image: alpine/edge
packages:
- curl
- - go
- gnupg
- notmuch-dev
- scdoc
- - valgrind
sources:
- "https://git.sr.ht/~rjarry/aerc"
environment:
DESTDIR: ./out
GOFLAGS: "-tags=notmuch"
CC: gcc
- FILTERS_TEST_BIN_PREFIX: valgrind --leak-check=full --error-exitcode=1
tasks:
- - validate: |
- gmake -C aerc validate
- - install: |
- gmake -C aerc install checkinstall
- ancient-go-version: |
curl -O https://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/go-1.21.10-r0.apk
sudo apk add ./go-1.21.10-r0.apk
diff --git a/.builds/fedora.yml b/.builds/fedora.yml
new file mode 100644
index 00000000..f4177ebc
--- /dev/null
+++ b/.builds/fedora.yml
@@ -0,0 +1,26 @@
+---
+image: fedora/rawhide
+packages:
+ - curl
+ - diff
+ - gcc
+ - git
+ - gmake
+ - gnupg
+ - golang
+ - libasan
+ - notmuch-devel
+ - scdoc
+sources:
+ - "https://git.sr.ht/~rjarry/aerc"
+environment:
+ DESTDIR: ./out
+ GOFLAGS: "-tags=notmuch"
+ CC: gcc
+ CFLAGS: -Wall -Wextra -Wconversion -Werror -Wformat-security -Wstack-protector -Wpedantic -Wmissing-prototypes -fsanitize=address
+ LDFLAGS: -lasan
+tasks:
+ - validate: |
+ gmake -C aerc validate
+ - install: |
+ gmake -C aerc install checkinstall