Travis test

This commit is contained in:
Tadas Baltrusaitis 2016-12-20 17:46:48 -05:00
parent 410fe6aab5
commit 53119f0bca

View file

@ -31,23 +31,27 @@ before_install:
- if [[ ${TRAVIS_OS_NAME} = linux ]]; then sudo apt-get update -qq; fi - if [[ ${TRAVIS_OS_NAME} = linux ]]; then sudo apt-get update -qq; fi
install: install:
- 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
- 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
- 'if [ ${TRAVIS_OS_NAME} = linux ]; then
if [ "$CXX" = "g++" ]; then
sudo apt-get install -qq g++-4.8;
export CXX="g++-4.8";
else
sudo apt-get install -qq clang-3.4;
export CXX="clang++-3.4";
fi;
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;
# Getting newest boost # Getting newest boost
- if [[ ${TRAVIS_OS_NAME} = linux ]]; then sudo add-apt-repository -y ppa:boost-latest/ppa; fi sudo add-apt-repository -y ppa:boost-latest/ppa;
- if [[ ${TRAVIS_OS_NAME} = linux ]]; then sudo apt-get update; fi sudo apt-get update;
- if [[ ${TRAVIS_OS_NAME} = linux ]]; then sudo apt-get install libboost1.55-all-dev; fi sudo apt-get install libboost1.55-all-dev;
else
- if [[ ${TRAVIS_OS_NAME} = osx ]]; then brew update; fi brew update;
- if [[ ${TRAVIS_OS_NAME} = osx ]]; then brew tap homebrew/science; fi brew tap homebrew/science;
- if [[ ${TRAVIS_OS_NAME} = osx ]]; then /usr/bin/yes | pip uninstall numpy; fi /usr/bin/yes | pip uninstall numpy;
- if [[ ${TRAVIS_OS_NAME} = osx ]]; then brew install tbb opencv3; fi brew install tbb
fi'
# Installing openCV 3.1 # Installing openCV 3.1
- wget https://github.com/Itseez/opencv/archive/3.1.0.zip - wget https://github.com/Itseez/opencv/archive/3.1.0.zip