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