forked from Stellarium/stellarium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (39 loc) · 1.25 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
env:
global:
- secure: "nDBuoowqSmcjCOsK4uXfkRRGuvcLt434lXeZIND/bfOEDgOv7h62w5h4i3ebSgItWkBStLzGB8Owfb2v/S0jC+wSIoP+SD2wRg12LA0/eeb3OBYw/TR5FlCVx21/GzvODTNi8NdWb92AcYGhbLNPqMDIFHGscARjHiP2EnONhTs="
- MATRIX_EVAL="CC=clang && CXX=clang++"
- TRANSLATE=false
language: cpp
os: osx
osx_image: xcode9.4
before_install:
- eval "${MATRIX_EVAL}"
# Linux
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
mkdir qt5;
wget -q -O qt5.zip https://github.com/Stellarium/stellarium-data/releases/download/qt-5.6/qt5.zip;
unzip -qq qt5.zip -d qt5;
export PATH=`pwd`/qt5/bin:$PATH;
export QT_PLUGIN_PATH=`pwd`/qt5/plugins;
fi
# Mac OS X
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update > /dev/null;
brew upgrade > /dev/null;
brew install qt;
export PATH="/usr/local/opt/qt/bin:$PATH";
fi
install:
before_script:
- export DISPLAY=:99.0
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sh -e /etc/init.d/xvfb start ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ( sudo Xvfb :99 -ac -screen 0 1024x768x8; echo ok )& fi
- sleep 3 # give xvfb some time to start
- mkdir build
- cd build
script:
- cmake -DENABLE_TESTING=1 ..
- make -j5
- ctest --output-on-failure
notifications:
email: false