darwin_set_interface_altsetting: Avoid device reset on pipe error
[platform/upstream/libusb.git] / .travis.yml
index eb477a1..e92f0c4 100644 (file)
@@ -1,53 +1,58 @@
 language: c
 
+git:
+    depth: 1
+
 matrix:
     include:
         - os: linux
-          dist: bionic
+          dist: focal
+          compiler: clang
+        - os: linux
+          dist: focal
           compiler: gcc
         - os: linux
           dist: bionic
           compiler: clang
         - os: linux
-          dist: xenial
+          dist: bionic
           compiler: gcc
         - os: linux
           dist: xenial
           compiler: clang
-        - os: osx
-          osx_image: xcode11.3
+        - os: linux
+          dist: xenial
           compiler: gcc
         - os: osx
-          osx_image: xcode11.3
+          osx_image: xcode12.2
           compiler: clang
         - os: osx
-          osx_image: xcode9.4
-          compiler: gcc
-        - os: osx
-          osx_image: xcode9.4
+          osx_image: xcode11.3
           compiler: clang
         - os: osx
-          osx_image: xcode6.4
-          compiler: gcc
-        - os: osx
-          osx_image: xcode6.4
+          osx_image: xcode9.4
           compiler: clang
 
 addons:
-    homebrew:
-        update: true
-        brewfile: true
     apt:
         packages:
             - autoconf
             - automake
             - libtool
-            - m4
             - libudev-dev
-        sources:
-            - ubuntu-toolchain-r-test
+            - m4
+    homebrew:
+        packages:
+            - autoconf
+            - automake
+            - libtool
+            - m4
+
+before_script:
+    - ./bootstrap.sh
 
 script:
-    - ./autogen.sh && make clean && make
-    - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./travis-autogen.sh --disable-udev && make clean && make ; 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