---
sudo: required
language: cpp
os:
- linux
compiler:
- gcc
- clang
env:
- CONFIGURE_OPTIONS=--disable-shared
- CONFIGURE_OPTIONS=
matrix:
include:
- os: linux
compiler: gcc
env: HOST=i386-pc-linux-gnu
- os: linux
env: HOST=moxie-elf
install:
- ./.travis/install.sh
script:
- ./autogen.sh
- if test x"$HOST" = x"i386-pc-linux-gnu"; then CC="$CC -m32"; CXX="$CXX -m32"; fi
- if test x"$HOST" = x"moxie-unknown-elf"; then LDFLAGS="-Tsim.ld"; RUNTESTFLAGS="--target_board moxie-sim"; fi
- ./configure ${HOST+--host=$HOST} ${CONFIGURE_OPTIONS}
- make
- make dist
- echo "$TRAVIS_BUILD_DIR"/.travis
- DEJAGNU="$TRAVIS_BUILD_DIR"/.travis make check
- cat */testsuite/libffi.log