forked from gphoto/libgphoto2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (27 loc) · 943 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
language: c
os:
- linux
- osx
env:
- EXTRALIBS=""
- EXTRALIBS="libusb-dev"
- EXTRALIBS="libusb-1.0-0-dev libgd2-xpm-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 uninstall libtool; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install $(sh .travis-translate-pkgs $EXTRALIBS); fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install libtool; 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