Skip to content

Commit 806c725

Browse files
committed
Test Linux arm64 using qemu user emulation
1 parent aeaf9ce commit 806c725

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.travis.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1+
# We require a full (virtual) machine to load the kernel module for
2+
# binfmt support, which is needed to test other architectures besides
3+
# x86 using qemu user emulation. (This will not work in a container.)
14
sudo: required
25
dist: trusty
36
language: c
47

58
script:
69
- make $FLAGS
7-
- make check $FLAGS
10+
- make check $FLAGS $TEST_FLAGS
811
- make clean && git status --ignored --porcelain && test -z "$(git status --ignored --porcelain)"
912

1013
matrix:
@@ -19,5 +22,15 @@ matrix:
1922
packages:
2023
- gcc-multilib
2124

25+
- os: linux
26+
env: FLAGS="CC=aarch64-linux-gnu-gcc" TEST_FLAGS="LDFLAGS=-static"
27+
addons:
28+
apt:
29+
packages:
30+
- gcc-aarch64-linux-gnu
31+
- libc6-dev-arm64-cross
32+
- qemu-user-static
33+
- binfmt-support
34+
2235
notifications:
2336
email: false

0 commit comments

Comments
 (0)