2016-07-25 20:22:56 +00:00
|
|
|
language: cpp
|
|
|
|
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- develop
|
2016-07-31 17:15:47 +00:00
|
|
|
- /^feature-.*$/
|
2016-07-27 19:20:38 +00:00
|
|
|
compiler:
|
|
|
|
- gcc
|
2016-07-29 13:56:38 +00:00
|
|
|
|
|
|
|
os:
|
|
|
|
- osx
|
|
|
|
- linux
|
2016-07-26 17:12:07 +00:00
|
|
|
|
2016-07-27 19:20:38 +00:00
|
|
|
before_install:
|
2016-12-21 15:07:27 +00:00
|
|
|
|
|
|
|
# OpenCV dependencies and boost
|
|
|
|
- if [ ${TRAVIS_OS_NAME} = linux ]; then
|
2017-12-17 14:41:24 +00:00
|
|
|
apt-get install git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev;
|
|
|
|
apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev checkinstall;
|
2017-12-17 14:50:15 +00:00
|
|
|
apt-get install cmake;
|
2017-12-17 14:41:24 +00:00
|
|
|
apt-get update;
|
|
|
|
apt-get install libboost1.55-all-dev;
|
2016-12-21 18:01:32 +00:00
|
|
|
wget https://github.com/Itseez/opencv/archive/3.1.0.zip;
|
2017-12-17 14:41:24 +00:00
|
|
|
unzip 3.1.0.zip;
|
|
|
|
opencv-3.1.0;
|
|
|
|
mkdir build;
|
2017-12-17 15:59:43 +00:00
|
|
|
cd build;
|
2016-12-21 15:07:27 +00:00
|
|
|
fi
|
|
|
|
|
2016-07-27 19:20:38 +00:00
|
|
|
# g++4.8.1
|
2016-12-19 19:59:25 +00:00
|
|
|
- if [ "$CXX" = "g++" ]; then
|
2016-12-21 14:58:15 +00:00
|
|
|
if [ ${TRAVIS_OS_NAME} = linux ]; then
|
2017-12-17 14:41:24 +00:00
|
|
|
$CXX --version;
|
|
|
|
cmake -D CMAKE_BUILD_TYPE=RELEASE -D WITH_V4L=ON -D WITH_OPENCL=OFF -D INSTALL_C_EXAMPLES=OFF -D BUILD_EXAMPLES=OFF -D BUILD_TESTS=OFF -D BUILD_PERF_TESTS=OFF -D BUILD_EXAMPLES=OFF -D INSTALL_PYTHON_EXAMPLES=OFF ..;
|
2016-07-29 14:31:29 +00:00
|
|
|
fi
|
|
|
|
fi
|
2016-07-27 19:20:38 +00:00
|
|
|
|
2016-07-27 22:40:30 +00:00
|
|
|
# clang 3.4
|
2016-12-19 19:59:25 +00:00
|
|
|
- if [ "$CXX" = "clang++" ]; then
|
2016-12-21 14:58:15 +00:00
|
|
|
if [ ${TRAVIS_OS_NAME} = linux ]; then
|
2016-12-22 00:47:01 +00:00
|
|
|
$CXX --version;
|
2017-12-17 14:41:24 +00:00
|
|
|
cmake -D CMAKE_BUILD_TYPE=RELEASE -D WITH_V4L=ON -D WITH_OPENCL=OFF -D INSTALL_C_EXAMPLES=OFF -D BUILD_EXAMPLES=OFF -D BUILD_TESTS=OFF -D BUILD_PERF_TESTS=OFF -D BUILD_EXAMPLES=OFF -D INSTALL_PYTHON_EXAMPLES=OFF -D WITH_TBB=ON ..;
|
2016-07-29 14:31:29 +00:00
|
|
|
fi
|
|
|
|
fi
|
2016-12-21 17:07:15 +00:00
|
|
|
|
2017-12-17 15:59:43 +00:00
|
|
|
- if [ ${TRAVIS_OS_NAME} = osx ]; then
|
2016-12-21 16:51:36 +00:00
|
|
|
brew update;
|
2016-12-21 20:06:48 +00:00
|
|
|
brew install tbb;
|
2017-12-17 15:59:43 +00:00
|
|
|
brew install opencv3 --HEAD;
|
2016-12-21 16:51:36 +00:00
|
|
|
fi
|
|
|
|
|
2016-12-21 17:07:15 +00:00
|
|
|
before_script:
|
2017-12-17 14:41:24 +00:00
|
|
|
- make -j4
|
|
|
|
- make install
|
2016-12-20 23:13:49 +00:00
|
|
|
- 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
|
2017-09-10 20:07:37 +00:00
|
|
|
- cmake -D CMAKE_BUILD_TYPE=RELEASE CMAKE_CXX_FLAGS="-std=c++11" -D CMAKE_EXE_LINKER_FLAGS="-std=c++11" ..
|
2016-07-29 14:31:29 +00:00
|
|
|
- make -j2
|
2017-12-13 18:00:05 +00:00
|
|
|
- ../build/bin/FaceLandmarkImg -fdir "../samples/" -out_dir "./demo_img/" -wild -q
|
|
|
|
- ../build/bin/FaceLandmarkImg -inroot ../samples -f sample1.jpg -out_dir data -of sample1.txt -multi_view 1 -wild -q
|
|
|
|
- ../build/bin/FaceLandmarkVidMulti -inroot ../samples -f multi_face.avi -q
|
|
|
|
- ../build/bin/FeatureExtraction -f "../samples/2015-10-15-15-14.avi" -out_dir -q
|
|
|
|
- ../build/bin/FeatureExtraction -f "../samples/2015-10-15-15-14.avi" -simsize 200 -simscale 0.5 -q
|
|
|
|
- ../build/bin/FaceLandmarkVid -inroot ../samples -f 2015-10-15-15-14.avi -f multi_face.avi -q
|