forked from abreheret/PixelAnnotationTool
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
40 lines (37 loc) · 1.14 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
language: cpp
branches:
only:
- master
- dev
os:
- linux
- osx
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
QT_VERSION_MM=510;
QT_VERSION_FULL=5.10.1-xenial;
sudo apt-add-repository --yes ppa:beineri/opt-qt-$QT_VERSION_FULL && sudo apt-get update -qq && sudo apt-get install -qq qt${QT_VERSION_MM}base qt${QT_VERSION_MM}script qt${QT_VERSION_MM}tools && export CMAKE_PREFIX_PATH=/opt/qt${QT_VERSION_MM};
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