-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.gitlab-ci.yml
35 lines (33 loc) · 1.2 KB
/
.gitlab-ci.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
before_script:
- apt-get update -qq
- apt-get install -y -qq build-essential gcovr autoconf pkg-config
- apt-get install -y -qq libpoppler-cpp-dev libgcrypt20-dev libpcre2-dev asciidoc dejagnu texlive-latex-base
test:
image: debian:bookworm
script:
- export CXXFLAGS="-Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches"
- ./autogen.sh
- ./configure --enable-coverage
- if grep -q '^exit' testsuite/pdfgrep.tests/*.exp; then false; else true; fi
- make distcheck
- make check
- gcovr -r .
artifacts:
paths:
- testsuite/pdfgrep.log
when: on_failure
expire_in: 1 week
test:libunac:
image: debian:bookworm
script:
- apt-get install -y libunac1-dev
- export CXXFLAGS="-Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches"
- ./autogen.sh
- ./configure --with-unac
- if grep -q '^exit' testsuite/pdfgrep.tests/*.exp; then false; else true; fi
- LC_ALL=C.UTF-8 make check
artifacts:
paths:
- testsuite/pdfgrep.log
when: on_failure
expire_in: 1 week