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-27 22:37:40 +00:00
|
|
|
- clang
|
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:
|
|
|
|
# g++4.8.1
|
2016-12-19 19:59:25 +00:00
|
|
|
- if [ "$CXX" = "g++" ]; then
|
2016-07-29 14:31:29 +00:00
|
|
|
if [[ ${TRAVIS_OS_NAME} = linux ]]; then
|
|
|
|
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test;
|
|
|
|
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-07-29 14:31:29 +00:00
|
|
|
if [[ ${TRAVIS_OS_NAME} = linux ]]; then
|
|
|
|
sudo add-apt-repository -y ppa:h-rayflood/llvm;
|
|
|
|
fi
|
|
|
|
fi
|
2016-07-27 19:20:38 +00:00
|
|
|
|
2016-07-29 15:18:06 +00:00
|
|
|
- if [[ ${TRAVIS_OS_NAME} = linux ]]; then sudo apt-get update -qq; fi
|
2016-07-27 18:46:33 +00:00
|
|
|
|
|
|
|
install:
|
2016-12-19 19:24:35 +00: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 14:40:51 +00:00
|
|
|
|
2016-12-20 18:42:19 +00:00
|
|
|
- if [[ ${TRAVIS_OS_NAME} = linux ]]; then sudo apt-get -qq remove ffmpeg x264 libx264-dev; fi
|
2016-07-29 14:40:51 +00:00
|
|
|
- if [[ ${TRAVIS_OS_NAME} = linux ]]; then sudo apt-get install git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev; fi
|
2016-12-20 17:29:59 +00:00
|
|
|
- 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 checkinstall; fi
|
2016-12-20 18:05:35 +00:00
|
|
|
- if [[ ${TRAVIS_OS_NAME} = linux ]]; then sudo apt-get install libv4l-dev libxvidcore-dev libx264-dev; fi
|
2016-07-29 14:40:51 +00:00
|
|
|
|
2016-07-29 14:31:29 +00:00
|
|
|
# Getting newest boost
|
2016-07-29 14:40:51 +00: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 18:46:33 +00:00
|
|
|
|
2016-07-29 14:40:51 +00:00
|
|
|
- if [[ ${TRAVIS_OS_NAME} = osx ]]; then brew update; fi
|
|
|
|
- if [[ ${TRAVIS_OS_NAME} = osx ]]; then brew tap homebrew/science; fi
|
2016-11-18 22:22:12 +00:00
|
|
|
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then /usr/bin/yes | pip uninstall numpy; fi
|
2016-07-29 15:43:58 +00:00
|
|
|
- if [[ ${TRAVIS_OS_NAME} = osx ]]; then brew install tbb opencv3; fi
|
2016-07-29 14:40:51 +00:00
|
|
|
|
2016-07-27 18:46:33 +00:00
|
|
|
before_script:
|
2016-12-19 19:24:35 +00:00
|
|
|
# OpenCV install for linux
|
2016-12-19 20:29:41 +00:00
|
|
|
- git clone https://github.com/Itseez/opencv.git
|
|
|
|
- cd opencv
|
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2016-12-20 18:42:19 +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 ..
|
2016-12-20 18:05:35 +00:00
|
|
|
- make -j4
|
|
|
|
- sudo make install
|
|
|
|
- sudo ldconfig
|
2016-12-19 20:58:46 +00:00
|
|
|
- cd ../..
|
2016-07-27 18:46:33 +00:00
|
|
|
|
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-29 14:31:29 +00:00
|
|
|
- make -j2
|
2016-07-30 19:51:07 +00:00
|
|
|
- ../build/bin/FaceLandmarkImg -fdir "../videos/" -ofdir "./demo_img/" -oidir "./demo_img/" -wild -q
|
2016-08-01 14:14:58 +00:00
|
|
|
- ../build/bin/FaceLandmarkImg -inroot ../videos -f Obama.jpg -outroot data -of obama.txt -op obama.3d -oi obama.bmp -multi_view 1 -wild -q
|
2016-08-01 00:55:29 +00:00
|
|
|
- ../build/bin/FaceLandmarkVidMulti -inroot ../videos -f multi_face.avi -outroot output -ov multi_face.avi -q
|
|
|
|
- ../build/bin/FeatureExtraction -f "../videos/1815_01_008_tony_blair.avi" -outroot output_features -ov blair.avi -of "1815_01_008_tony_blair.txt" -simalign aligned -ov feat_test.avi -hogalign hog_test.dat -q
|
|
|
|
- ../build/bin/FaceLandmarkVid -inroot ../videos -f 1815_01_008_tony_blair.avi -f 0188_03_021_al_pacino.avi -f 0217_03_006_alanis_morissette.avi -outroot output_data -ov 1.avi -ov 2.avi -ov 3.avi -q
|