-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
52 lines (45 loc) · 1.58 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
language: cpp
sudo: required
dist: trusty
os:
- linux
- osx
env:
- BUILD_MODE=release
- BUILD_MODE=debug
install:
- |
if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
export MKSPEC=linux-g++
sudo add-apt-repository ppa:softus-team/ppa -y
sudo add-apt-repository ppa:dan-witt/gstreamer -y
sudo apt-get update -q
sudo apt-get install -y debhelper fakeroot libdcmtk2-dev libboost-dev libmediainfo-dev
sudo apt-get install -y libssl-dev libwrap0-dev libgudev-1.0-dev libqt5opengl5-dev
sudo apt-get install -y libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
sudo apt-get install -y libqt5gstreamer-1.0-0 libqt5gstreamer-dev libavc1394-dev libraw1394-dev
sudo apt-get install -y libv4l-dev qttools5-dev-tools qt5-default libqt5x11extras5-dev
fi
- |
if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
export MKSPEC=macx-clang
brew install cmake git pkg-config qt boost gstreamer gst-plugins-base dcmtk media-info libffi
export PATH="/usr/local/opt/qt/bin:$PATH"
export PKG_CONFIG_PATH=/usr/local/opt/qt/lib/pkgconfig:/usr/local/lib/pkgconfig
.ci/git-install.sh git://anongit.freedesktop.org/gstreamer/qt-gstreamer master "-DQT_VERSION=5"
fi
script:
- echo "Building for ${MKSPEC} in ${BUILD_MODE} mode..."
- mkdir build
- cd build
- lrelease ../*.ts
- qmake ../beryllium.pro INCLUDEPATH+=/usr/local/include -spec ${MKSPEC} CONFIG+=${BUILD_MODE}
- make
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then macdeployqt beryllium.app -dmg; fi
branches:
only:
- master
cache:
apt: true
directories:
- $HOME/Library/Caches/Homebrew