-
Notifications
You must be signed in to change notification settings - Fork 65
/
.travis.yml
77 lines (67 loc) · 2.02 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
language: cpp
cache: ccache
jobs:
include:
- os: linux
dist: bionic
env: TARGET="linux64"
compiler: gcc
cache:
directories:
- ~/.ccache
before_cache:
- rm -f ~/.cache/*.log
- os: osx
osx_image: xcode11.3
env: TARGET="osx"
compiler:
- gcc
- clang
before_install:
- if [ "$TARGET" == "linux64" ]; then
sudo apt-get update;
fi
- if [ "$TARGET" == "osx" ]; then
brew update;
fi
install:
- if [ "$TARGET" == "linux64" ]; then
sudo apt-get install qt5-default qttools5-dev-tools
libqt5opengl5-dev qtmultimedia5-dev qtwebengine5-dev;
sudo apt-get install liblo-dev liblo-tools;
sudo apt-get install libgstreamer1.0-dev
libgstreamer-plugins-base1.0-dev gstreamer1.0-plugins-bad
gstreamer1.0-libav gstreamer1.0-vaapi gstreamer1.0-plugins-base
gstreamer1.0-plugins-base-apps gstreamer1.0-plugins-good
gstreamer1.0-plugins-ugly gstreamer1.0-x gstreamer1.0-tools;
sudo apt-get install ccache;
fi
- if [ "$TARGET" == "osx" ]; then
brew install qt;
brew install liblo;
brew install ccache;
export PATH="/usr/local/opt/ccache/libexec:$PATH";
wget --quiet https://gstreamer.freedesktop.org/data/pkg/osx/1.16.2/gstreamer-1.0-1.16.2-x86_64.pkg;
sudo installer -verboseR -pkg gstreamer-1.0-1.16.2-x86_64.pkg -target /;
wget --quiet https://gstreamer.freedesktop.org/data/pkg/osx/1.16.2/gstreamer-1.0-devel-1.16.2-x86_64.pkg;
sudo installer -verboseR -pkg gstreamer-1.0-devel-1.16.2-x86_64.pkg -target /;
fi
before_script:
- if [ "$TARGET" == "osx" ]; then
brew link qt --force;
brew link liblo --force;
gstreamer="GStreamer.framework/Versions/1.0/lib/GStreamer";
app="MapMap.app";
fi
script:
- ccache -z
- ccache -s
- if [ "$TARGET" == "linux64" ]; then
qmake mapmap.pro;
make -j4;
fi
- if [ "$TARGET" == "osx" ]; then
qmake -config release;
make -j4;
fi
- ccache -s