-
Notifications
You must be signed in to change notification settings - Fork 126
/
.travis.yml
46 lines (41 loc) · 1.43 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
sudo: required
dist: xenial
language: cpp
os: linux
compiler: g++
addons:
apt:
update: true
sources:
- george-edison55-precise-backports
- ubuntu-toolchain-r-test
- sourceline: 'ppa:timsc/opencv-3.4'
key_url: 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x8A9CA30DB3C431E3'
packages:
- cmake-data
- cmake
- g++-6
- libopencv-core3.4
- libopencv-imgproc3.4
- libopencv-highgui3.4
- libopencv-dev
before_install:
- if [ $TRAVIS_OS_NAME == osx ]; then brew update && brew install opencv && brew install qt5 && brew link --force qt5; fi
# additional headerfiles
- sudo apt-get -y install libxxf86vm-dev libxi-dev libudev-dev libxcursor-dev wget xz-utils
- sudo apt-get -y install -f qtbase5-dev qt5-default qttools5-dev-tools libqt5opengl5-dev
- sudo apt-get -y install libfreeimage-dev
# workaround for contrib binary libs unavailability
- wget -O opencv-3.4-x86_64.pkg.tar.xz https://www.archlinux.org/packages/extra/x86_64/opencv/download/
- sudo tar --wildcards --strip=2 -C /usr/lib/x86_64-linux-gnu/ -xf opencv-3.4-x86_64.pkg.tar.xz usr/lib/libopencv_xfeatures2d.so* usr/lib/libopencv_xphoto.so* usr/lib/libopencv_optflow.so*
script:
- qmake -recursive PREFIX=/app
- make
- sudo make install
after_success:
- find /app
- curl --upload-file /app/bin/imageplay https://transfer.sh/imageplay
- sudo bash -ex appimage.sh
branches:
only:
- master