.travis.yml 773 Bytes
Newer Older
1
2
3
4
5
6
7
8
# use container-based infrastructure
sudo: false

language: c

os:
  - linux
  - osx
9
10
11
12
13
14
15
16
17
18
compiler:
  - gcc
  - clang

# OSX uses Apple's flavor of clang anyway, so there's no point in using "gcc".
# This excludes the "gcc" compiler from the build matrix for OSX:
matrix:
  exclude:
    - os: osx
      compiler: gcc
19
20
21
22
23
24
25
26
27
28
29
30
31
32

# take care of the libusb dependency for Linux
addons:
  apt:
    packages:
    - libusb-1.0-0-dev

# take care of the libusb dependency for Mac OS X
before_install:
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
      brew update;
      brew install libusb;
    fi

33
# build using the Makefile, treat all warnings as errors
34
script:
35
36
  - make EXTRA_CFLAGS=-Werror
  - make misc EXTRA_CFLAGS=-Werror
37
38
39
40

# turn off email notifications
notifications:
  - email: false