2016-07-25 20:22:56 +00:00
|
|
|
language: cpp
|
|
|
|
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- develop
|
2016-07-27 19:20:38 +00:00
|
|
|
- feature-travis
|
|
|
|
compiler:
|
|
|
|
- gcc
|
2016-07-26 17:12:07 +00:00
|
|
|
|
2016-07-27 19:20:38 +00:00
|
|
|
before_install:
|
|
|
|
# g++4.8.1
|
|
|
|
- if [ "$CXX" == "g++" ]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi
|
|
|
|
|
|
|
|
# clang 3.4
|
2016-07-27 20:07:46 +00:00
|
|
|
#- if [ "$CXX" == "clang++" ]; then sudo add-apt-repository -y ppa:h-rayflood/llvm; fi
|
2016-07-27 19:20:38 +00:00
|
|
|
|
|
|
|
- sudo apt-get update -qq
|
2016-07-27 18:46:33 +00:00
|
|
|
|
|
|
|
install:
|
2016-07-27 20:07:46 +00:00
|
|
|
- if [ "$CXX" == "g++" ]; then sudo apt-get install -qq g++-4.8; fi
|
|
|
|
- if [ "$CXX" == "g++" ]; then export CXX="g++-4.8"; fi
|
2016-07-27 18:46:33 +00:00
|
|
|
- sudo apt-get install git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
|
|
|
|
- sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev checkinstall
|
2016-07-27 20:07:46 +00:00
|
|
|
# Getting newest boost
|
2016-07-27 20:49:32 +00:00
|
|
|
- sudo add-apt-repository -y ppa:boost-latest/ppa
|
2016-07-27 20:39:05 +00:00
|
|
|
- sudo apt-get update
|
2016-07-27 21:18:25 +00:00
|
|
|
- sudo apt-get install libboost1.55-all-dev
|
2016-07-27 18:46:33 +00:00
|
|
|
|
|
|
|
before_script:
|
|
|
|
- git clone https://github.com/Itseez/opencv.git
|
|
|
|
- cd opencv
|
|
|
|
- mkdir build
|
|
|
|
- cd build
|
|
|
|
- cmake ..
|
|
|
|
- make -j4
|
|
|
|
- sudo make -j4 install
|
|
|
|
- cd ../..
|
|
|
|
|
2016-07-25 20:22:56 +00:00
|
|
|
script:
|
2016-07-27 19:20:38 +00:00
|
|
|
- $CXX --version
|
2016-07-25 20:22:56 +00:00
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2016-07-26 17:12:07 +00:00
|
|
|
- cmake -D CMAKE_BUILD_TYPE=RELEASE ..
|
2016-07-25 20:22:56 +00:00
|
|
|
- make
|
|
|
|
- ./bin/FaceLandmarkImg -fdir "../videos/" -ofdir "./demo_img/" -oidir "./demo_img/" -wild -q
|