• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1sudo: required
2language: c
3compiler: gcc
4env:
5- HOST=x86_64-linux-gnu
6- HOST=x86-linux-gnu
7- HOST=arm-linux-gnueabihf
8- HOST=aarch64-linux-gnu
9- HOST=mipsel-linux-gnu
10# Currently experiencing build failures here
11#- HOST=powerpc64-linux-gnu
12
13linux-s390x: &linux-s390x
14  os: linux
15  arch: s390x
16  env: BUILD=s390x-linux-gnu HOST=s390x-linux-gnu
17  script:
18    - autoreconf -i
19    - ./configure
20    - make -j32
21    - ulimit -c unlimited
22    - make check -j32
23
24windows-remote-only: &windows-remote-only
25  os: windows
26  compiler: msvc
27  script:
28  - cmake -G "Visual Studio 15 2017" -A ${WINHOST} -S . -B bin/windows-${WINHOST}/${TARGET}
29  - cmake --build bin/windows-${WINHOST}/${TARGET}
30
31script:
32- |
33  BUILD=x86_64-linux-gnu
34  export BUILD
35  if [ $HOST = 'x86-linux-gnu' ]; then
36    sudo apt-get update
37    sudo apt-get install -yqq -o=Dpkg::Use-Pty=0 g++-multilib
38    CFLAGS=" -m32"
39    CXXFLAGS=" -m32"
40    export CFLAGS CXXFLAGS
41  elif [ $HOST != 'x86_64-linux-gnu' ]; then
42    sudo apt-get update
43    sudo apt-get install -yqq -o=Dpkg::Use-Pty=0 g++-$HOST
44    CC=$HOST-gcc
45    CXX=$HOST-g++
46    export CC CXX
47  fi
48- autoreconf -i
49- ./configure CC=$CC CXX=$CXX CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" --build=$BUILD --host=$HOST
50- make -j32
51- sudo bash -c 'echo core.%p.%p > /proc/sys/kernel/core_pattern'
52- ulimit -c unlimited
53- if [ $HOST = 'x86_64-linux-gnu' ]; then make check -j32; fi
54
55after_failure: cat tests/test-suite.log 2>/dev/null
56
57jobs:
58  include:
59    - <<: *linux-s390x
60    - <<: *windows-remote-only
61      env: TARGET=x86_64-linux-gnu    WINHOST=x64
62    - <<: *windows-remote-only
63      env: TARGET=arm-linux-gnueabihf WINHOST=Win32
64    - <<: *windows-remote-only
65      env: TARGET=aarch64-linux-gnu   WINHOST=x64
66