Commit bb4c2a6b authored by Bernhard Nortmann's avatar Bernhard Nortmann
Browse files

travisci: Extend the build testing for Mac OS X



The build configuration will now also execute
"make install-tools install-misc" for OSX.
Signed-off-by: default avatarBernhard Nortmann <bernhard.nortmann@web.de>
parent 95d40f8f
...@@ -3,8 +3,9 @@ sudo: false ...@@ -3,8 +3,9 @@ sudo: false
language: c language: c
# treat all warnings as errors # treat all warnings as errors, fake cross-toolchain (build everything on host)
env: CFLAGS=-Werror env:
- CFLAGS=-Werror CROSS_COMPILE=""
os: os:
- linux - linux
...@@ -26,24 +27,23 @@ addons: ...@@ -26,24 +27,23 @@ addons:
packages: packages:
- libusb-1.0-0-dev - libusb-1.0-0-dev
# take care of the libusb dependency for Mac OS X; on Linux use "make all" later # take care of the libusb dependency for Mac OS X; select make/install target
before_install: before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update; brew update;
brew install libusb; brew install libusb;
export TARGET=tools;
else else
export TARGET="all CROSS_COMPILE="; export TARGET=all;
fi fi
# build using the Makefile # build using the Makefile
script: script:
- make ${TARGET} && make misc - make ${TARGET} && make misc
# when on Linux: run/simulate a test install # run/simulate a test install
after_success: after_success:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then - make install-${TARGET} install-misc DESTDIR=/tmp PREFIX=/sunxi-tools
make install-all install-misc DESTDIR=/tmp PREFIX=/sunxi-tools;
fi
# turn off email notifications # turn off email notifications
notifications: notifications:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment