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
language: c
# treat all warnings as errors
env: CFLAGS=-Werror
# treat all warnings as errors, fake cross-toolchain (build everything on host)
env:
- CFLAGS=-Werror CROSS_COMPILE=""
os:
- linux
......@@ -26,24 +27,23 @@ addons:
packages:
- 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:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update;
brew install libusb;
export TARGET=tools;
else
export TARGET="all CROSS_COMPILE=";
export TARGET=all;
fi
# build using the Makefile
script:
- make ${TARGET} && make misc
# when on Linux: run/simulate a test install
# run/simulate a test install
after_success:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
make install-all install-misc DESTDIR=/tmp PREFIX=/sunxi-tools;
fi
- make install-${TARGET} install-misc DESTDIR=/tmp PREFIX=/sunxi-tools
# turn off email 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