summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: c7de9c489dd5647659d31d3b3a1081d468b5c9bd (plain)
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
34
35
36
37
language: c

os:
 - linux
 - osx

env:
 - EXTRALIBS="gettext"
 - EXTRALIBS="gettext libusb-dev"
 - EXTRALIBS="gettext libusb-1.0-0-dev libgd2-xpm-dev"
 - EXTRALIBS="gettext libusb-1.0-0-dev libgd2-xpm-dev libcurl4-openssl-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); for d in /usr/local/opt/libexif/lib/pkgconfig; do if test -d "$d"; then PKG_CONFIG_PATH="${PKG_CONFIG_PATH}{PKG_CONFIG_PATH+:}${d}"; fi; done; export PKG_CONFIG_PATH; 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 && sleep 2
 - sh .travis-script.sh standard-test   --enable-vusb
 - sh .travis-script.sh everything-test --enable-vusb --with-camlibs=everything
 - date; ls -l configure
 - ./configure --enable-vusb && make && if make check; then :; else cat libgphoto2_port/test/test-suite.log test/test-suite.log; false; fi && sudo PATH=$PATH make install && examples/sample-afl && make clean
 - date; ls -l configure
 - ./configure --enable-vusb --with-camlibs=all,outdated,jd11 && make && if make check; then :; else cat libgphoto2_port/test/test-suite.log test/test-suite.log; false; fi && sudo PATH=$PATH make install && examples/sample-afl && make clean

notifications:
  email:
    on_success: change
    on_failure: always