-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
51 lines (42 loc) · 793 Bytes
/
.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
language: cpp
sudo: false
dist: trusty
addons:
apt:
packages:
- debhelper
- fakeroot
- libhidapi-dev
- libqt5widgets5
- libusb-1.0-0-dev
- qt5-default
os:
- linux
- osx
env:
- BUILD_MODE=release
- BUILD_MODE=debug
install:
- |
if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
export MKSPEC=linux-g++
fi
- |
if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
export MKSPEC=macx-clang
brew install pkg-config qt hidapi libusb
brew link qt --force
fi
script:
- echo "Building for ${MKSPEC} in ${BUILD_MODE} mode..."
- mkdir build
- cd build
- qmake ../hv-ms794-config.pro -spec ${MKSPEC} CONFIG+=${BUILD_MODE}
- make
branches:
only:
- master
cache:
apt: true
directories:
- $HOME/Library/Caches/Homebrew