sustaining_gazes/.travis.yml

75 lines
2.4 KiB
YAML
Raw Normal View History

2016-07-25 22:22:56 +02:00
language: cpp
2017-12-17 22:04:47 +01:00
dist: trusty
sudo: required
2016-07-25 22:22:56 +02:00
branches:
only:
- master
- develop
2016-07-31 19:15:47 +02:00
- /^feature-.*$/
2016-07-27 21:20:38 +02:00
compiler:
- gcc
os:
- linux
- osx
2016-07-26 19:12:07 +02:00
2016-07-27 21:20:38 +02:00
before_install:
2016-12-21 16:07:27 +01:00
# OpenCV dependencies and boost
- if [ ${TRAVIS_OS_NAME} = linux ]; then
2017-12-17 22:04:47 +01:00
sudo apt-get update;
sudo apt-get install libopenblas-dev;
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;
sudo apt-get install cmake;
sudo apt-get install libboost1.55-all-dev;
wget https://github.com/opencv/opencv/archive/3.4.0.zip;
unzip -q 3.4.0.zip;
cd opencv-3.4.0;
2017-12-17 15:41:24 +01:00
mkdir build;
2017-12-17 16:59:43 +01:00
cd build;
2016-12-21 16:07:27 +01:00
fi
2016-07-27 21:20:38 +02:00
# g++4.8.1
2016-12-19 20:59:25 +01:00
- if [ "$CXX" = "g++" ]; then
2016-12-21 15:58:15 +01:00
if [ ${TRAVIS_OS_NAME} = linux ]; then
2017-12-17 15:41:24 +01:00
$CXX --version;
2017-12-17 22:04:47 +01:00
sudo 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 ..;
2018-02-02 11:04:43 +01:00
sudo make -j4;
sudo make install;
cd ../..;
2016-07-29 16:31:29 +02:00
fi
fi
2016-07-27 21:20:38 +02:00
2016-07-28 00:40:30 +02:00
# clang 3.4
2016-12-19 20:59:25 +01:00
- if [ "$CXX" = "clang++" ]; then
2016-12-21 15:58:15 +01:00
if [ ${TRAVIS_OS_NAME} = linux ]; then
2016-12-22 01:47:01 +01:00
$CXX --version;
2017-12-17 22:04:47 +01:00
sudo 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 ..;
2018-02-02 11:04:43 +01:00
sudo make -j4;
sudo make install;
cd ../..;
2016-07-29 16:31:29 +02:00
fi
fi
2016-12-21 18:07:15 +01:00
2017-12-17 16:59:43 +01:00
- if [ ${TRAVIS_OS_NAME} = osx ]; then
2017-12-17 22:08:23 +01:00
brew update;
brew install tbb;
2017-12-19 18:31:42 +01:00
brew tap homebrew/science;
2018-02-02 10:52:21 +01:00
brew install opencv3;
brew upgrade boost;
2016-12-21 17:51:36 +01:00
fi
2016-12-21 00:13:49 +01:00
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
- cmake -D CMAKE_BUILD_TYPE=RELEASE CMAKE_CXX_FLAGS="-std=c++11" -D CMAKE_EXE_LINKER_FLAGS="-std=c++11" ..
2016-07-29 16:31:29 +02:00
- make -j2
2017-12-19 20:12:05 +01: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
2017-12-19 20:12:05 +01:00
- ../build/bin/FeatureExtraction -f "../samples/2015-10-15-15-14.avi" -out_dir output -q
- ../build/bin/FeatureExtraction -f "../samples/2015-10-15-15-14.avi" -simsize 200 -simscale 0.5 -q