forked from nomacs/nomacs-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
41 lines (33 loc) · 1.84 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
language: c++
os:
- linux
- osx
compiler:
- gcc
- clang
sudo: required
dist: trusty
before_script:
# OSX dependencies
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install qt5; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then CMAKE_ARGS="-DCMAKE_PREFIX_PATH=/usr/local/opt/qt5"; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install exiv2; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install libraw; fi
#- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install quazip; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew tap homebrew/science; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install opencv; fi
# Linux dependencies
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-add-repository -y ppa:beineri/opt-qt551-trusty; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get update; fi
# - if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install -y --no-install-recommends debhelper cdbs qt5-qmake libqt5core5a libqt5widgets5 libqt5network5 libqt5gui5 libqt5printsupport5 libqt5svg5-dev qttools5-dev-tools qttools5-dev qt5-default libexiv2-dev libraw-dev libopencv-dev libhighgui-dev libcvaux-dev cmake libtiff-dev libzip-dev ; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install -y --no-install-recommends debhelper cdbs qt55tools qt55svg qt55base libexiv2-dev libraw-dev libopencv-dev libhighgui-dev libcvaux-dev cmake libtiff-dev libzip-dev ; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then CMAKE_ARGS="-DCMAKE_PREFIX_PATH=/opt/qt55/bin/"; fi
- git clone --depth 1 http://github.com/nomacs/nomacs nomacs
- mkdir nomacs/ImageLounge/plugins
- find . -maxdepth 1 -not -name "nomacs" -not -name ".*" -exec mv {} nomacs/ImageLounge/plugins/ \;
- mkdir build
- cd build
script:
- cmake $CMAKE_ARGS ../nomacs/ImageLounge/.
- make -j8