Skip to content

Commit 90e8344

Browse files
ci: Add C++ test
1 parent f698caa commit 90e8344

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.cirrus.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,3 +320,23 @@ task:
320320
- ./ci/cirrus.sh
321321
<< : *CAT_LOGS
322322

323+
task:
324+
name: "C++ -fpermissive"
325+
container:
326+
dockerfile: ci/linux-debian.Dockerfile
327+
cpu: 1
328+
memory: 1G
329+
env:
330+
# ./configure correctly errors out when given CC=g++.
331+
# We hack around this by passing CC=g++ only to make.
332+
CC: gcc
333+
MAKEFLAGS: -j2 CC=g++ CFLAGS=-fpermissive
334+
WERROR_CFLAGS:
335+
EXPERIMENTAL: yes
336+
ECDH: yes
337+
RECOVERY: yes
338+
SCHNORRSIG: yes
339+
<< : *MERGE_BASE
340+
test_script:
341+
- ./ci/cirrus.sh
342+
<< : *CAT_LOGS

ci/linux-debian.Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ RUN apt-get install --no-install-recommends --no-upgrade -y \
1313
git ca-certificates \
1414
make automake libtool pkg-config dpkg-dev valgrind qemu-user \
1515
gcc clang llvm libc6-dbg \
16+
g++ \
1617
gcc-i686-linux-gnu libc6-dev-i386-cross libc6-dbg:i386 libubsan1:i386 libasan5:i386 \
1718
gcc-s390x-linux-gnu libc6-dev-s390x-cross libc6-dbg:s390x \
1819
gcc-arm-linux-gnueabihf libc6-dev-armhf-cross libc6-dbg:armhf \

0 commit comments

Comments
 (0)