diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2016-02-21 12:29:30 +0100 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2016-02-21 12:29:30 +0100 |
commit | d8e3e0d54293f0a33d4b44e872963726004ea151 (patch) | |
tree | 20c86a83ce05bb4edaaad964144bd0ae6bfcd0e8 /.travis.yml | |
parent | 1b720f1e8e723eca12640e5524be077b91bfd4db (diff) | |
download | libmtp-d8e3e0d54293f0a33d4b44e872963726004ea151.tar.gz |
hook in travis support
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..f7a02bd --- /dev/null +++ b/.travis.yml @@ -0,0 +1,31 @@ +language: c + +os: + - linux + - osx + +env: + - EXTRALIBS="" + - EXTRALIBS="libusb-dev" + - EXTRALIBS="libusb-1.0-0-dev" + +# Note: Keep the sudo commands in .travis.yml - they do not work from +# a helper shell script. +before_install: + - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi + - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install $(sh .travis-translate-pkgs $EXTRALIBS); fi + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update -qq; fi + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y $(sh .travis-translate-pkgs $EXTRALIBS); fi + +compiler: + - clang + - gcc + +script: + - PATH=/usr/local/opt/gettext/bin:$PATH autoreconf -i -f + - ./configure && make && make check + +notifications: + email: + on_success: change + on_failure: always |