.travis.yml 1.01 KB
Newer Older
1
2
3
4
5
# use container-based infrastructure
sudo: false

language: c

6
7
8
# treat all warnings as errors
env: EXTRA_CFLAGS=-Werror

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

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

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

29
# take care of the libusb dependency for Mac OS X; on Linux use "make all" later
30
31
32
33
before_install:
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
      brew update;
      brew install libusb;
34
35
    else
      export TARGET="all CROSS_COMPILE=";
36
37
    fi

38
# build using the Makefile
39
script:
40
41
42
43
44
45
46
  - make ${TARGET} && make misc

# when on Linux: run/simulate a test install
after_success:
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
      make install-all install-misc DESTDIR=/tmp PREFIX=/sunxi-tools;
    fi
47
48
49
50

# turn off email notifications
notifications:
  - email: false