Commit 8c3e5c99 authored by Rashad Kanavath's avatar Rashad Kanavath

COMP: travis: fixed travis.yml

parent d37faa31
......@@ -8,16 +8,9 @@ compiler:
addons:
apt:
packages:
- libboost-dev
- libboost-graph-dev
- libqt4-dev
- libqtcore4
- libqtgui4
- libopencv-dev
- libtinyxml-dev
- libopenthreads-dev
- libfftw3-dev
- libfreetype6-dev
before_script:
- export SOURCE_DIR=$PWD
......@@ -26,9 +19,17 @@ before_script:
- tar -xzf cmake-3.4.0-rc3-Linux-x86_64.tar.gz
- wget https://github.com/martine/ninja/releases/download/v1.6.0/ninja-linux.zip --no-check-certificate
- unzip ninja-linux.zip
- echo $SOURCE_DIR
- cd $SOURCE_DIR
- wget https://www.orfeo-toolbox.org/srpms/OTB-5.0.0-Linux64.run --no-check-certificate
- wget https://www.orfeo-toolbox.org/srpms/OTB-headers.tar.gz --no-check-certificate
- chmod +x /tmp/OTB-5.0.0-Linux64.run
- /tmp/OTB-5.0.0-Linux64.run
- cd /tmp/OTB-5.0.0-Linux64
- tar xf /tmp/OTB-headers.tar.gz
- sed -i 's,/home/mrashad/Dashboard/OTB/install,/tmp/OTB-5.0.0-Linux64,g' lib/cmake/ITK-4.8/Modules/ITKZLIB.cmake
- sed -i 's,/home/mrashad/Dashboard/OTB/install,/tmp/OTB-5.0.0-Linux64,g' lib/cmake/ITK-4.8/ITKConfig.cmake
- sed -i 's,/home/mrashad/Dashboard/OTB/install,/tmp/OTB-5.0.0-Linux64,g' lib/cmake/ITK-4.8/ITKTargets-release.cmake
- cd $SOURCE_DIR/../
- mkdir build
- cd build
script: /tmp/cmake-3.4.0-rc3-Linux-x86_64/bin/cmake ../SuperBuild -DCMAKE_INSTALL_PREFIX=../install -DUSE_SYSTEM_TIFF=ON -DUSE_SYSTEM_ZLIB=ON -DUSE_SYSTEM_GEOTIFF=OFF -DUSE_SYSTEM_JPEG=ON -DUSE_SYSTEM_SQLITE=ON -DUSE_SYSTEM_CURL=ON -DUSE_SYSTEM_PNG=ON -DUSE_SYSTEM_OPENCV=ON -DUSE_SYSTEM_QT4=ON -DUSE_SYSTEM_GEOS=OFF -DUSE_SYSTEM_FFTW=OFF -DUSE_SYSTEM_PROJ=ON -DUSE_SYSTEM_EXPAT=ON -DUSE_SYSTEM_BOOST=ON -DUSE_SYSTEM_LIBKML=ON -DUSE_SYSTEM_TINYXML=ON -DUSE_SYSTEM_OPENJPEG=OFF -DUSE_SYSTEM_OPENTHREADS=ON -DUSE_SYSTEM_GDAL=OFF -DUSE_SYSTEM_ITK=OFF -DUSE_SYSTEM_MUPARSER=ON -DUSE_SYSTEM_MUPARSERX=OFF -DUSE_SYSTEM_OSSIM=OFF -DOTB_USE_OPENJPEG=OFF -DOTB_USE_LIBSVM=OFF -DOTB_USE_MUPARSER=OFF -DOTB_USE_MUPARSERX=OFF -DOTB_USE_LIBKML=OFF -DOTB_USE_QT4=OFF -DOTB_USE_CURL=OFF -DUSE_SYSTEM_FREETYPE=ON -DUSE_SYSTEM_OPENCV=ON -DUSE_SYSTEM_OPENSSL=ON && make
script: /tmp/cmake-3.4.0-rc3-Linux-x86_64/bin/cmake -DCMAKE_MAKE_PROGRAM=/tmp/ninja -DCMAKE_CXX_FLAGS="-Wno-gnu -Wno-overloaded-virtual -Wno-\\#warnings" -DCMAKE_PREFIX_PATH=/tmp/OTB-5.0.0-Linux64 -DCMAKE_INSTALL_PREFIX=../install -G "Ninja" $SOURCE_DIR && /tmp/ninja
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment