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

travis: add before_script for cmake and ninja

parent b6b6ea12
......@@ -8,7 +8,6 @@ compiler:
addons:
apt:
packages:
- cmake
- libboost-dev
- libgdal-dev
- libgeotiff-dev
......@@ -20,10 +19,13 @@ addons:
- libtinyxml-dev
- libopenthreads-dev
- libfftw3-dev
- ninja-build
before_script:
- mkdir build
- cd build
- wget https://cmake.org/files/v3.4/cmake-3.4.0-rc3-Linux-x86_64.tar.gz -O /tmp/cmake-3.4.0-rc3-Linux-x86_64.tar.gz
- tar -xzf /tmp/cmake-3.4.0-rc3-Linux-x86_64.tar.gz
- wget https://github.com/martine/ninja/releases/download/v1.6.0/ninja-linux.zip -O /tmp/ninja-linux.zip
- unzip /tmp/ninja-linux.zip
- mkdir build
- cd build
script: cmake ../SuperBuild -DCMAKE_INSTALL_PREFIX=../install -DUSE_SYSTEM_TIFF=ON -DUSE_SYSTEM_ZLIB=ON -DUSE_SYSTEM_GEOTIFF=ON -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=ON -DUSE_SYSTEM_FFTW=ON -DUSE_SYSTEM_PROJ=ON -DUSE_SYSTEM_EXPAT=ON -DUSE_SYSTEM_BOOST=ON -DUSE_SYSTEM_LIBKML=ON -DUSE_SYSTEM_TINYXML=ON -DUSE_SYSTEM_OPENJPEG=ON -DUSE_SYSTEM_OPENTHREADS=ON -DUSE_SYSTEM_GDAL=ON -DUSE_SYSTEM_ITK=OFF -DUSE_SYSTEM_MUPARSER=ON -DUSE_SYSTEM_MUPARSERX=OFF -DUSE_SYSTEM_OSSIM=OFF -DOTB_USE_OPENJPEG=OFF -DOTB_USE_MUPARSER=OFF -DOTB_USE_MUPARSERX=OFF -G "Ninja" && ninja-build
script: /tmp/cmake-3.4.0-rc3-Linux-x86_64/bin/cmake ../SuperBuild -DCMAKE_MAKE_PROGRAM=/tmp/ninja -DCMAKE_INSTALL_PREFIX=../install -DUSE_SYSTEM_TIFF=ON -DUSE_SYSTEM_ZLIB=ON -DUSE_SYSTEM_GEOTIFF=ON -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=ON -DUSE_SYSTEM_FFTW=ON -DUSE_SYSTEM_PROJ=ON -DUSE_SYSTEM_EXPAT=ON -DUSE_SYSTEM_BOOST=ON -DUSE_SYSTEM_LIBKML=ON -DUSE_SYSTEM_TINYXML=ON -DUSE_SYSTEM_OPENJPEG=ON -DUSE_SYSTEM_OPENTHREADS=ON -DUSE_SYSTEM_GDAL=ON -DUSE_SYSTEM_ITK=OFF -DUSE_SYSTEM_MUPARSER=ON -DUSE_SYSTEM_MUPARSERX=OFF -DUSE_SYSTEM_OSSIM=OFF -DOTB_USE_OPENJPEG=OFF -DOTB_USE_MUPARSER=OFF -DOTB_USE_MUPARSERX=OFF -G "Ninja" && /tmp/ninja
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