7bfddce35bbc182d3527108da4ce03599752f0e3
[platform/upstream/libffi.git] / .travis.yml
1 ---
2 sudo: required
3
4 language: cpp
5
6 # For qemu-powered targets, get the list of supported processors from
7 # travis by setting QEMU_CPU=help, then set -mcpu= for the compilers
8 # accordingly.
9
10 matrix:
11   include:
12     - os: osx
13       env: HOST=aarch64-apple-darwin13
14     - os: osx
15       env: HOST=x86_64-apple-darwin10
16     - os: linux
17       env: HOST=x86_64-w64-mingw32 MEVAL='export CC="x86_64-w64-mingw32-gcc" && CXX="x86_64-w64-mingw32-g++" RUNTESTFLAGS="--target_board wine-sim" DEJAGNU="$TRAVIS_BUILD_DIR/.travis/site.exp" CONFIGURE_OPTIONS=--disable-shared LIBFFI_TEST_OPTIMIZATION="-O2"
18     - os: linux
19       env: HOST=sh4-linux-gnu CONFIGURE_OPTIONS=--disable-shared QEMU_LD_PREFIX=/usr/sh4-linux-gnu
20     - os: linux
21       env: HOST=alpha-linux-gnu CONFIGURE_OPTIONS=--disable-shared QEMU_LD_PREFIX=/usr/alpha-linux-gnu
22     - os: linux
23       env: HOST=m68k-linux-gnu MEVAL='export CC="m68k-linux-gnu-gcc-8 -mcpu=547x" && CXX="m68k-linux-gnu-g++-8 -mcpu=547x"' CONFIGURE_OPTIONS=--disable-shared QEMU_LD_PREFIX=/usr/m68k-linux-gnu QEMU_CPU=cfv4e
24     - os: linux
25       env: HOST=s390x-linux-gnu MEVAL='export CC="s390x-linux-gnu-gcc-8" && CXX="s390x-linux-gnu-g++-8"' CONFIGURE_OPTIONS=--disable-shared QEMU_LD_PREFIX=/usr/s390x-linux-gnu QEMU_CPU=max
26     - os: linux
27       env: HOST=arm32v7-linux-gnu LIBFFI_TEST_OPTIMIZATION="-O0"
28     - os: linux
29       env: HOST=arm32v7-linux-gnu LIBFFI_TEST_OPTIMIZATION="-O2"
30     - os: linux
31       env: HOST=arm32v7-linux-gnu LIBFFI_TEST_OPTIMIZATION="-O2 -fomit-frame-pointer"
32 # The sparc64 linux system in the GCC compile farm is non-responsive.
33 #    - os: linux
34 #      env: HOST=sparc64-linux-gnu
35     - os: linux
36       env: HOST=aarch64-linux-gnu
37     - os: linux
38       env: HOST=powerpc64le-unknown-linux-gnu
39     - os: linux
40       env: HOST=mips64el-linux-gnu
41     - os: linux
42       compiler: gcc
43       env: HOST=i386-pc-linux-gnu MEVAL='export CC="$CC -m32" && CXX="$CXX -m32"'
44     - os: linux
45       compiler: gcc
46     - os: linux
47       compiler: gcc
48       env: CONFIGURE_OPTIONS=--disable-shared
49     - os: linux
50       compiler: clang
51     - os: linux
52       compiler: clang
53       env: CONFIGURE_OPTIONS=--disable-shared
54     - os: linux
55       env: HOST=moxie-elf MEVAL='export PATH=/opt/moxielogic/bin:$PATH && CC=moxie-elf-gcc && CXX=moxie-elf-g++' LDFLAGS=-Tsim.ld RUNTESTFLAGS="--target_board moxie-sim" DEJAGNU="$TRAVIS_BUILD_DIR/.travis/site.exp"
56
57 before_install:
58   - if test x"$MEVAL" != x; then eval ${MEVAL}; fi
59
60 install:
61   - travis_wait 30 ./.travis/install.sh
62
63 script:
64   - if ! test x"$MEVAL" = x; then eval ${MEVAL}; fi
65   - travis_wait 45 sleep infinity &
66   - ./.travis/build.sh