Install desktop file and icons to DATADIR instead of the hardcoded share/.
[keepassx:keepassx.git] / .travis.yml
1 os:
2   - linux
3   - osx
4 compiler:
5   - gcc
6   - clang
7 language: cpp
8 install:
9   - if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get -qq update; fi
10   - if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get -qq install cmake libqt4-dev libgcrypt11-dev zlib1g-dev libxtst-dev; fi
11   - if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update; fi
12   - if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install cmake qt libgcrypt; fi
13 before_script: mkdir build && pushd build
14 script:
15   - cmake -DCMAKE_BUILD_TYPE=Debug -DWITH_GUI_TESTS=ON ..
16   - make
17   - if [ "$TRAVIS_OS_NAME" = "linux" ]; then make test ARGS+="-E testgui"; fi
18   - if [ "$TRAVIS_OS_NAME" = "linux" ]; then xvfb-run -a --server-args="-screen 0 800x600x24" make test ARGS+="-R testgui"; fi
19   - if [ "$TRAVIS_OS_NAME" = "osx" ]; then make test; fi