-
Notifications
You must be signed in to change notification settings - Fork 308
/
.travis.yml
47 lines (44 loc) · 1.26 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
language: cpp
branches:
only:
- master
- dev
jobs:
include:
- os: linux
dist: xenial
env: QT5=510 PPA=beineri/opt-qt-5.10.1-xenial
- os: linux
dist: bionic
env: QT5=511 PPA=beineri/opt-qt-5.11.3-bionic
#- os: osx
# osx_image: xcode10.2
#- os: osx
# osx_image: xcode11.3
env:
- CONFIG=Release
branches:
only:
- master
- dev
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update;
brew install qt;
brew install opencv;
brew install curl;
else
sudo apt-add-repository --yes ppa:$PPA && sudo apt-get update -qq && sudo apt-get install -qy qt${QT5}base qt${QT5}script qt${QT5}multimedia && export CMAKE_PREFIX_PATH=/opt/qt${QT5};
sudo apt-get install libopencv-dev curl libgl1-mesa-dev;
fi
before_script:
- mkdir build
- cd build
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
cmake .. -DCMAKE_BUILD_TYPE=$CONFIG -DDISABLE_MAINTAINER_CFLAGS=off -DCMAKE_PREFIX_PATH=$(brew --prefix qt) -DQMAKE_PATH=$(brew --prefix qt)/bin;
else
cmake .. -DCMAKE_BUILD_TYPE=$CONFIG -DDISABLE_MAINTAINER_CFLAGS=off;
fi
script:
- cmake --build . --config $CONFIG
- cmake --build . --config $CONFIG --target upload_file