2017-09-14 02:32:44 +02:00
|
|
|
language: c
|
2016-03-01 08:40:13 +01:00
|
|
|
sudo: required
|
2017-09-14 02:32:44 +02:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
### OS X
|
|
|
|
- os: osx
|
|
|
|
env: C_COMPILER=clang
|
|
|
|
|
2019-07-10 03:32:39 +02:00
|
|
|
### linux gcc and format check
|
|
|
|
- dist: xenial
|
2019-07-17 01:09:16 +02:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- nasm
|
2019-07-10 03:32:39 +02:00
|
|
|
install:
|
|
|
|
# Install newer indent to check formatting
|
|
|
|
- sudo apt-get install texinfo
|
|
|
|
- wget http://archive.ubuntu.com/ubuntu/pool/main/i/indent/indent_2.2.12.orig.tar.xz -O /tmp/indent.tar.xz
|
|
|
|
- tar -xJf /tmp/indent.tar.xz -C /tmp/
|
|
|
|
- pushd /tmp/indent-2.2.12 && ./configure --prefix=/usr && make && sudo make install && popd
|
2017-09-14 02:32:44 +02:00
|
|
|
env: C_COMPILER=gcc
|
|
|
|
|
|
|
|
### linux clang
|
2019-07-10 03:32:39 +02:00
|
|
|
- dist: xenial
|
2019-07-17 01:09:16 +02:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- nasm
|
2017-09-14 02:32:44 +02:00
|
|
|
env: C_COMPILER=clang
|
|
|
|
|
|
|
|
### linux newer clang
|
|
|
|
- dist: trusty
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
- llvm-toolchain-trusty-4.0
|
|
|
|
packages:
|
|
|
|
- clang-4.0
|
|
|
|
env: C_COMPILER=clang-4.0
|
|
|
|
|
|
|
|
### linux older gcc
|
|
|
|
- dist: trusty
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- g++-4.7
|
|
|
|
env: C_COMPILER=gcc-4.7
|
|
|
|
|
|
|
|
### linux newer gcc
|
|
|
|
- dist: trusty
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- g++-6
|
|
|
|
env: C_COMPILER=gcc-6
|
|
|
|
|
2019-10-18 05:39:13 +02:00
|
|
|
### arm64: clang-3.8
|
|
|
|
- os: linux
|
|
|
|
dist: xenial
|
|
|
|
arch: arm64
|
|
|
|
env: C_COMPILER=clang
|
|
|
|
|
|
|
|
### arm64: gcc-5.4
|
|
|
|
- os: linux
|
|
|
|
dist: xenial
|
|
|
|
arch: arm64
|
|
|
|
env: C_COMPILER=gcc
|
|
|
|
|
|
|
|
### arm64: gcc-5.4
|
|
|
|
- os: linux
|
|
|
|
dist: xenial
|
|
|
|
arch: arm64
|
|
|
|
env: TEST_TYPE=ext
|
|
|
|
|
2017-09-14 02:32:44 +02:00
|
|
|
### linux extended tests
|
2019-07-10 03:32:39 +02:00
|
|
|
- dist: xenial
|
2017-09-14 02:32:44 +02:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- binutils-mingw-w64-x86-64
|
|
|
|
- gcc-mingw-w64-x86-64
|
|
|
|
- wine
|
2019-07-17 01:09:16 +02:00
|
|
|
- nasm
|
2017-09-14 02:32:44 +02:00
|
|
|
env: TEST_TYPE=ext
|
|
|
|
|
|
|
|
before_install:
|
|
|
|
- if [ -n "${C_COMPILER}" ]; then export CC="${C_COMPILER}"; fi
|
|
|
|
- if [ -n "${AS_ASSEMBL}" ]; then export AS="${AS_ASSEMBL}"; fi
|
|
|
|
|
2016-03-01 08:40:13 +01:00
|
|
|
before_script:
|
2017-09-14 02:32:44 +02:00
|
|
|
- if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get -q update; fi
|
2019-07-10 03:32:39 +02:00
|
|
|
- if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get install yasm; fi
|
2017-09-14 02:32:44 +02:00
|
|
|
- if [ $TRAVIS_OS_NAME = osx ]; then brew install yasm; fi
|
|
|
|
|
|
|
|
script:
|
|
|
|
- if [ -n "${CC}" ]; then $CC --version; fi
|
2019-07-10 03:32:39 +02:00
|
|
|
- if [ -n "${AS}" ]; then $AS --version || echo No version; fi
|
2017-09-14 02:32:44 +02:00
|
|
|
- ./tools/test_autorun.sh "${TEST_TYPE}"
|