.travis.yml 2.37 KB
Newer Older
1 2
language: cpp
compiler:
3
  #- gcc # Avoid gcc because it exhausts travis VM memory
4
  - clang
5 6

before_install:
7 8
   # Add PPA for recent boost libraries
 - sudo add-apt-repository --yes ppa:boost-latest/ppa
9
 - sudo add-apt-repository --yes ppa:dcthomp/smtk
10 11 12 13
   # Make sure package index is up to date:
 - sudo apt-get -qq update

install:
David Thompson's avatar
David Thompson committed
14 15
   # Remove cmake-data package as it interferes with SMTK PPA cmake package:
 - sudo dpkg -r cmake cmake-data
16
   # Install build tools:
17
 - sudo apt-get install -yqq git cmake ninja-build ccache python-dev texlive-extra-utils doxygen graphviz
18
 - sudo apt-get install -yqq libboost1.54-dev libboost-filesystem1.54-dev libboost-system1.54-dev
19 20 21
   # Install Qt devel stuff:
 - sudo apt-get install -yqq libqt4-dev libqt4-opengl-dev libqtwebkit-dev qt4-dev-tools
   # Install opencascade
22
 - sudo apt-get install -yqq oce-dev cgm-dev
23 24 25 26 27
   # Install python packages via pip
 - sudo pip install -r ${TRAVIS_BUILD_DIR}/doc/requirements/dev.txt
   # Set user/email so any tests we might have for developers pass
 - git config --global user.email "travis@travis-ci.org"
 - git config --global user.name "Travis CI"
28
   # Now build and/or install deps for which there is no package
29
 - mkdir -p ~/smtk-deps/shiboken
30 31
 - cd ~/smtk-deps/shiboken
 - git clone https://github.com/OpenGeoscience/shiboken.git src
32 33 34
 - cd src
 - git checkout smtk-head
 - cd ..
35 36
 - mkdir build
 - cd build
David Thompson's avatar
David Thompson committed
37
 - cmake -G Ninja -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo "-DCMAKE_CXX_FLAGS:STRING=-fPIC" "-DCMAKE_INSTALL_PREFIX=${HOME}/smtk-deps/shiboken/install" ../src
38
 - ninja -j2 install
39 40 41

script:
 - mkdir ~/smtk-build && cd ~/smtk-build
David Thompson's avatar
David Thompson committed
42
 - cmake -G Ninja "-DSITE:STRING=travis-ci.org" "-DBUILDNAME:STRING=${TRAVIS_OS_NAME}-${CC}-Job.${TRAVIS_JOB_NUMBER}-SMTK" -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo -DBUILD_SHARED_LIBS:BOOL=ON -DSMTK_ENABLE_QT_SUPPORT:BOOL=ON -DSMTK_ENABLE_DOCUMENTATION:BOOL=ON -DSMTK_ENABLE_TESTING:BOOL=ON -DSMTK_ENABLE_CGM_SESSIONA:BOOL=ON -DCGM_CFG:FILEPATH=/usr/include/cgm.make -DSMTK_ENABLE_PYTHON_WRAPPING:BOOL=ON "-DShiboken_DIR:PATH=${HOME}/smtk-deps/shiboken/install/lib/cmake/Shiboken-1.2.1" -DSMTK_NO_SYSTEM_BOOST:BOOL=OFF "-DCMAKE_INSTALL_PREFIX=${HOME}/smtk-install" ${TRAVIS_BUILD_DIR}
43 44 45 46 47 48 49
 - ninja -j2 ExperimentalStart
 - ninja -j2 ExperimentalConfigure
 - ninja -j2 ExperimentalBuild
 - ninja -j2 doc-userguide &>/dev/null
 - ninja -j2 install
 - ninja -j2 ExperimentalTest
 - ninja -j2 ExperimentalSubmit