Yet another travis attempt.
This commit is contained in:
parent
433f4c85a1
commit
2714a2d46a
1 changed files with 17 additions and 14 deletions
31
.travis.yml
31
.travis.yml
|
@ -1,5 +1,8 @@
|
||||||
language: cpp
|
language: cpp
|
||||||
|
|
||||||
|
dist: trusty
|
||||||
|
sudo: required
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
@ -16,12 +19,12 @@ before_install:
|
||||||
|
|
||||||
# OpenCV dependencies and boost
|
# OpenCV dependencies and boost
|
||||||
- if [ ${TRAVIS_OS_NAME} = linux ]; then
|
- if [ ${TRAVIS_OS_NAME} = linux ]; then
|
||||||
apt-get install libopenblas-dev;
|
sudo apt-get update;
|
||||||
apt-get install git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev;
|
sudo apt-get install libopenblas-dev;
|
||||||
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 git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev;
|
||||||
apt-get install cmake;
|
sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev checkinstall;
|
||||||
apt-get update;
|
sudo apt-get install cmake;
|
||||||
apt-get install libboost1.55-all-dev;
|
sudo apt-get install libboost1.55-all-dev;
|
||||||
wget https://github.com/Itseez/opencv/archive/3.1.0.zip;
|
wget https://github.com/Itseez/opencv/archive/3.1.0.zip;
|
||||||
unzip 3.1.0.zip;
|
unzip 3.1.0.zip;
|
||||||
opencv-3.1.0;
|
opencv-3.1.0;
|
||||||
|
@ -33,7 +36,7 @@ before_install:
|
||||||
- if [ "$CXX" = "g++" ]; then
|
- if [ "$CXX" = "g++" ]; then
|
||||||
if [ ${TRAVIS_OS_NAME} = linux ]; then
|
if [ ${TRAVIS_OS_NAME} = linux ]; then
|
||||||
$CXX --version;
|
$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 ..;
|
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 ..;
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -41,20 +44,20 @@ before_install:
|
||||||
- if [ "$CXX" = "clang++" ]; then
|
- if [ "$CXX" = "clang++" ]; then
|
||||||
if [ ${TRAVIS_OS_NAME} = linux ]; then
|
if [ ${TRAVIS_OS_NAME} = linux ]; then
|
||||||
$CXX --version;
|
$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 -D WITH_TBB=ON ..;
|
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 ..;
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- if [ ${TRAVIS_OS_NAME} = osx ]; then
|
- if [ ${TRAVIS_OS_NAME} = osx ]; then
|
||||||
brew update;
|
sudo brew update;
|
||||||
brew install tbb;
|
sudo brew install tbb;
|
||||||
brew tap homebrew/science
|
sudo brew tap homebrew/science
|
||||||
brew install opencv3 --HEAD;
|
sudo brew install opencv3 --HEAD;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- make -j4
|
- sudo make -j4
|
||||||
- make install
|
- sudo make install
|
||||||
- cd ../..
|
- cd ../..
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
|
Loading…
Reference in a new issue