.travis.yml 962 Bytes
Newer Older
1 2
language: cpp

Rashad Kanavath's avatar
Rashad Kanavath committed
3
sudo: false
4

5 6 7
compiler:
- clang

Rashad Kanavath's avatar
Rashad Kanavath committed
8 9 10 11 12 13 14
addons:
  apt:
    packages:
    - libqt4-dev
    - libqtcore4
    - libqtgui4

15
before_script:
Rashad Kanavath's avatar
Rashad Kanavath committed
16
  - export SOURCE_DIR=$PWD
Rashad Kanavath's avatar
Rashad Kanavath committed
17 18 19 20 21
  - cd /tmp
  - wget https://cmake.org/files/v3.4/cmake-3.4.0-rc3-Linux-x86_64.tar.gz --no-check-certificate
  - 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
Rashad Kanavath's avatar
Rashad Kanavath committed
22 23 24
  - wget https://www.orfeo-toolbox.org/packages/xdk/OTB-xdk-Linux64.run  --no-check-certificate
  - chmod +x /tmp/OTB-xdk-Linux64.run
  - /tmp/OTB-xdk-Linux64.run
25
  - cd $SOURCE_DIR/../
26 27
  - mkdir build
  - cd build
28

29
script: /tmp/cmake-3.4.0-rc3-Linux-x86_64/bin/cmake -DCMAKE_MAKE_PROGRAM=/tmp/ninja -DCMAKE_CXX_FLAGS="-Wno-gnu -Wno-unused-parameter -Wno-overloaded-virtual -Wno-\\#warnings" -DCMAKE_PREFIX_PATH=/tmp/OTB-xdk-Linux64 -DCMAKE_INSTALL_PREFIX=../install -G "Ninja" $SOURCE_DIR && /tmp/ninja