xref: /relibc/openlibm/.travis.yml (revision e7e2050266146a06f4fa6af0725ab081e8ef291b)
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.)
4sudo: required
5dist: trusty
6language: c
7
8script:
9    - make $FLAGS
10    - make check $FLAGS $TEST_FLAGS
11    - make clean && git status --ignored --porcelain && test -z "$(git status --ignored --porcelain)"
12
13matrix:
14    include:
15        - os: linux
16          env: FLAGS="CC=gcc"
17
18        - os: linux
19          env: FLAGS="CC=gcc ARCH=i686"  # implies -m32 -march=i686
20          addons:
21              apt:
22                  packages:
23                      - gcc-multilib
24
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
35notifications:
36    email: false
37