summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 011192511e496c0559dad7798cb0cb7d40f2b0aa (plain)
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
language: c

matrix:
    include:
        - os: linux
          dist: bionic
          compiler: gcc
        - os: linux
          dist: bionic
          compiler: clang
        - os: linux
          dist: xenial
          compiler: gcc
        - os: linux
          dist: xenial
          compiler: clang
        - os: osx
          osx_image: xcode11.3
          compiler: gcc
        - os: osx
          osx_image: xcode11.3
          compiler: clang
        - os: osx
          osx_image: xcode9.4
          compiler: gcc
        - os: osx
          osx_image: xcode9.4
          compiler: clang
        - os: osx
          osx_image: xcode6.4
          compiler: gcc
        - os: osx
          osx_image: xcode6.4
          compiler: clang

addons:
    homebrew:
        update: true
        brewfile: true
    apt:
        packages:
            - autoconf
            - automake
            - libtool
            - m4
            - libudev-dev
        sources:
            - ubuntu-toolchain-r-test

script:
    - ./travis-autogen.sh && make -j4
    - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then make clean && ./travis-autogen.sh --disable-udev && make -j4 ; fi
    - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then cd Xcode && xcodebuild -project libusb.xcodeproj ; fi