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

language: c

6
7
8
# treat all warnings as errors, fake cross-toolchain (build everything on host)
env:
  - CFLAGS=-Werror CROSS_COMPILE=""
9

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

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

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

30
# take care of the libusb dependency for Mac OS X; select make/install target
31
32
33
34
before_install:
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
      brew update;
      brew install libusb;
35
      export TARGET=tools;
36
    else
37
      export TARGET=all;
38
39
    fi

40
# build using the Makefile
41
script:
42
43
  - make ${TARGET} && make misc

44
# run/simulate a test install
45
after_success:
46
  - make install-${TARGET} install-misc DESTDIR=/tmp PREFIX=/sunxi-tools
47
48
49
50

# turn off email notifications
notifications:
  - email: false