build: Enable additional build errors and warnings
[platform/upstream/libusb.git] / .travis.yml
1 language: c
2
3 matrix:
4     include:
5         - os: linux
6           dist: bionic
7           compiler: gcc
8         - os: linux
9           dist: bionic
10           compiler: clang
11         - os: linux
12           dist: xenial
13           compiler: gcc
14         - os: linux
15           dist: xenial
16           compiler: clang
17         - os: osx
18           osx_image: xcode11.3
19           compiler: gcc
20         - os: osx
21           osx_image: xcode11.3
22           compiler: clang
23         - os: osx
24           osx_image: xcode9.4
25           compiler: gcc
26         - os: osx
27           osx_image: xcode9.4
28           compiler: clang
29         - os: osx
30           osx_image: xcode6.4
31           compiler: gcc
32         - os: osx
33           osx_image: xcode6.4
34           compiler: clang
35
36 addons:
37     homebrew:
38         update: true
39         brewfile: true
40     apt:
41         packages:
42             - autoconf
43             - automake
44             - libtool
45             - m4
46             - libudev-dev
47         sources:
48             - ubuntu-toolchain-r-test
49
50 script:
51     - ./travis-autogen.sh && make -j4
52     - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then make clean && ./travis-autogen.sh --disable-udev && make -j4 ; fi
53     - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then cd Xcode && xcodebuild -project libusb.xcodeproj ; fi