language: c
+git:
+ depth: 1
+
matrix:
include:
- os: linux
- dist: trusty
- sudo: required
+ dist: focal
+ compiler: clang
+ - os: linux
+ dist: focal
compiler: gcc
- os: linux
- dist: trusty
- sudo: required
+ dist: bionic
compiler: clang
- - os: osx
- osx_image: xcode8
+ - os: linux
+ dist: bionic
compiler: gcc
- - os: osx
- osx_image: xcode8
+ - os: linux
+ dist: xenial
compiler: clang
- - os: osx
- osx_image: xcode7.1
+ - os: linux
+ dist: xenial
compiler: gcc
- os: osx
- osx_image: xcode7.1
+ osx_image: xcode12.2
compiler: clang
- os: osx
- osx_image: beta-xcode6.2
- compiler: gcc
+ osx_image: xcode11.3
+ compiler: clang
- os: osx
- osx_image: beta-xcode6.2
+ osx_image: xcode9.4
compiler: clang
addons:
- autoconf
- automake
- libtool
- - m4
- libudev-dev
- sources:
- - ubuntu-toolchain-r-test
+ - m4
+ homebrew:
+ packages:
+ - autoconf
+ - automake
+ - libtool
+ - m4
-before_install:
- # brew upgrade sets the return code to 1 if the latest version is already installed. the true command
- # is used to reset the return code to 0.
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; brew upgrade automake libtool ; true; fi
+before_script:
+ - ./bootstrap.sh
script:
- - ./autogen.sh && make -j4
- - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./travis-autogen.sh --disable-udev && make -j4; fi
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then cd Xcode && xcodebuild -project libusb.xcodeproj ; fi
+ - if [ "$TRAVIS_OS_NAME" = "linux" ]; then .private/ci-build.sh --build-dir build-netlink -- --disable-udev; fi
+ - if [ "$TRAVIS_OS_NAME" = "linux" ]; then .private/ci-build.sh --build-dir build-udev -- --enable-udev; fi
+ - if [ "$TRAVIS_OS_NAME" = "osx" ]; then .private/ci-build.sh --build-dir build; fi
+ - if [ "$TRAVIS_OS_NAME" = "osx" ]; then cd Xcode && xcodebuild -project libusb.xcodeproj; fi