-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
54 lines (47 loc) · 1.63 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
43
44
45
46
47
48
49
50
51
52
53
54
language: cpp
matrix:
include:
- os: linux
compiler: gcc
dist: trusty
sudo: required
env:
- BUILD_NAME=trusty
- os: osx
compiler: clang
env:
- BUILD_NAME=osx
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get -qq update; fi
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew upgrade; fi
# Homebrew upgrade disabled to save time.
install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]];
then
sudo apt-get install build-essential git cmake qt5-default libpng-dev libnova-dev libproj-dev zlib1g-dev libbz2-dev qttools5-dev-tools qttools5-dev;
fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then grep -q trusty /etc/lsb-release || sudo apt-get install libopenjpeg-dev || true; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]];
then
if [[ "$BUILD_NAME" == "trusty" ]];
then
wget https://github.com/uclouvain/openjpeg/archive/v2.3.0.tar.gz;
tar xf v2.3.0.tar.gz;
cd openjpeg-2.3.0;
mkdir build;
cd build;
cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_CODEC=OFF -DOPJ_USE_THREAD=OFF;
make;
sudo make install;
cd ../..;
fi;
fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew tap indilib/indi; brew install git cmake libnova openjpeg libpng qt5; export PATH="/usr/local/opt/qt5/bin:$PATH"; echo 'export PATH="/usr/local/opt/qt5/bin:$PATH"' >> ~/.bash_profile; fi
script:
- mkdir build && cd build
- cmake ..
- make -s
notifications:
email: false
git:
depth: 10