forked from gphoto/gphoto2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (35 loc) · 1.48 KB
/
.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
34
35
36
37
38
39
40
41
42
language: c
os:
- linux
compiler:
- gcc
env:
- EXTRALIBS="libusb-1.0-0-dev libgd2-xpm-dev libpopt-dev gettext"
- EXTRALIBS="libusb-1.0-0-dev libgd2-xpm-dev libpopt-dev libaa1-dev gettext"
- EXTRALIBS="libusb-1.0-0-dev libgd2-xpm-dev libpopt-dev libaa1-dev libcdk5-dev gettext"
# Note: Keep the sudo commands in .travis.yml - they do not work from
# a helper shell script.
before_install:
- travis_retry git clone --depth=50 https://github.com/gphoto/libgphoto2.git lgp2
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update > /dev/null; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install $(sh lgp2/.travis-translate-pkgs $EXTRALIBS); fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PATH=/usr/local/opt/gettext/bin:$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 lgp2/.travis-translate-pkgs $EXTRALIBS); fi
install:
- cd lgp2
- git_sha=$(git rev-parse HEAD); echo git checkout -qf ${git_sha}; git checkout -qf ${git_sha}
- echo $PATH; which autopoint; which gettext
- autoreconf -vis
- ./configure --prefix=/usr --libdir=/usr/lib --enable-silent-rules --with-camlibs=directory
- make && sudo make install
- cd ..
script:
- autoreconf -v -i -f
- ./configure --prefix=$PWD/_i
- make && make check || cat tests/log/test037.out
- make && make install && make installcheck
notifications:
email:
on_success: change
on_failure: always