2016-07-25 22:22:56 +02:00
|
|
|
language: cpp
|
|
|
|
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- develop
|
2016-07-27 21:20:38 +02:00
|
|
|
- feature-travis
|
|
|
|
compiler:
|
|
|
|
- gcc
|
2016-07-28 00:37:40 +02:00
|
|
|
- clang
|
2016-07-29 15:56:38 +02:00
|
|
|
|
|
|
|
os:
|
|
|
|
- osx
|
|
|
|
- linux
|
2016-07-26 19:12:07 +02:00
|
|
|
|
2016-07-27 21:20:38 +02:00
|
|
|
before_install:
|
|
|
|
# g++4.8.1
|
2016-07-29 16:31:29 +02:00
|
|
|
- if [ "$CXX" == "g++" ]; then
|
|
|
|
if [[ ${TRAVIS_OS_NAME} = linux ]]; then
|
|
|
|
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test;
|
|
|
|
fi
|
|
|
|
fi
|
2016-07-27 21:20:38 +02:00
|
|
|
|
2016-07-28 00:40:30 +02:00
|
|
|
# clang 3.4
|
2016-07-29 16:31:29 +02:00
|
|
|
- if [ "$CXX" == "clang++" ]; then
|
|
|
|
if [[ ${TRAVIS_OS_NAME} = linux ]]; then
|
|
|
|
sudo add-apt-repository -y ppa:h-rayflood/llvm;
|
|
|
|
fi
|
|
|
|
fi
|
2016-07-27 21:20:38 +02:00
|
|
|
|
2016-07-29 17:18:06 +02:00
|
|
|
- if [[ ${TRAVIS_OS_NAME} = linux ]]; then sudo apt-get update -qq; fi
|
2016-07-27 20:46:33 +02:00
|
|
|
|
|
|
|
install:
|
2016-07-29 17:43:58 +02:00
|
|
|
- if [ "$CXX" == "g++" ]; then if [[ ${TRAVIS_OS_NAME} = linux ]]; then sudo apt-get install -qq g++-4.8; fi fi
|
|
|
|
- if [ "$CXX" == "g++" ]; then if [[ ${TRAVIS_OS_NAME} = linux ]]; then export CXX="g++-4.8"; fi fi
|
|
|
|
- if [ "$CXX" == "clang++" ]; then if [[ ${TRAVIS_OS_NAME} = linux ]]; then sudo apt-get install -qq clang-3.4; fi fi
|
|
|
|
- if [ "$CXX" == "clang++" ]; then if [[ ${TRAVIS_OS_NAME} = linux ]]; then export CXX="clang++-3.4"; fi fi
|
2016-07-29 16:40:51 +02:00
|
|
|
|
|
|
|
- if [[ ${TRAVIS_OS_NAME} = linux ]]; then sudo apt-get install git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev; fi
|
|
|
|
- if [[ ${TRAVIS_OS_NAME} = linux ]]; then sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev checkinstall; fi
|
|
|
|
|
2016-07-29 16:31:29 +02:00
|
|
|
# Getting newest boost
|
2016-07-29 16:40:51 +02:00
|
|
|
- if [[ ${TRAVIS_OS_NAME} = linux ]]; then sudo add-apt-repository -y ppa:boost-latest/ppa; fi
|
|
|
|
- if [[ ${TRAVIS_OS_NAME} = linux ]]; then sudo apt-get update; fi
|
|
|
|
- if [[ ${TRAVIS_OS_NAME} = linux ]]; then sudo apt-get install libboost1.55-all-dev; fi
|
2016-07-27 20:46:33 +02:00
|
|
|
|
2016-07-29 16:40:51 +02:00
|
|
|
- if [[ ${TRAVIS_OS_NAME} = osx ]]; then brew update; fi
|
|
|
|
- if [[ ${TRAVIS_OS_NAME} = osx ]]; then brew tap homebrew/science; fi
|
2016-07-29 17:43:58 +02:00
|
|
|
- if [[ ${TRAVIS_OS_NAME} = osx ]]; then brew install tbb opencv3; fi
|
2016-07-29 16:40:51 +02:00
|
|
|
|
2016-07-27 20:46:33 +02:00
|
|
|
before_script:
|
|
|
|
- git clone https://github.com/Itseez/opencv.git
|
|
|
|
- cd opencv
|
|
|
|
- mkdir build
|
|
|
|
- cd build
|
|
|
|
- cmake ..
|
2016-07-29 16:31:29 +02:00
|
|
|
- make -j2
|
|
|
|
- sudo make -j2 install
|
2016-07-27 20:46:33 +02:00
|
|
|
- cd ../..
|
|
|
|
|
2016-07-25 22:22:56 +02:00
|
|
|
script:
|
2016-07-27 21:20:38 +02:00
|
|
|
- $CXX --version
|
2016-07-25 22:22:56 +02:00
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2016-07-26 19:12:07 +02:00
|
|
|
- cmake -D CMAKE_BUILD_TYPE=RELEASE ..
|
2016-07-29 16:31:29 +02:00
|
|
|
- make -j2
|
2016-07-25 22:22:56 +02:00
|
|
|
- ./bin/FaceLandmarkImg -fdir "../videos/" -ofdir "./demo_img/" -oidir "./demo_img/" -wild -q
|