.travis.yml 2.71 KB
Newer Older
1 2
language: cpp
compiler:
3
  - gcc
4
  - clang
5 6

before_install:
7 8
   # Add PPA for recent boost libraries
 - sudo add-apt-repository --yes ppa:boost-latest/ppa
9 10 11 12 13 14 15
 #- sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test
 #- sudo add-apt-repository --yes ppa:kubuntu-ppa/backports
   # Make sure package index is up to date:
 - sudo apt-get -qq update

install:
   # Install build tools:
16
 - sudo apt-get install -yqq git ninja-build ccache python-dev texlive-extra-utils doxygen graphviz
17
 - sudo apt-get install -yqq libboost1.54-dev libboost-filesystem1.54-dev libboost-system1.54-dev
18 19 20 21 22 23 24 25 26
   # Install Qt devel stuff:
 - sudo apt-get install -yqq libqt4-dev libqt4-opengl-dev libqtwebkit-dev qt4-dev-tools
   # Install opencascade
 - sudo apt-get install -yqq libopencascade-dev
   # 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"
27 28 29 30
   # Now build and/or install deps for which there is no package
 - mkdir -p ~/smtk-deps/{cgm,cmake}
   # Download a new cmake since Ubuntu's is horribly old.
 - cd ~/smtk-deps/cmake
31
 - wget -q "http://www.cmake.org/files/v3.1/cmake-3.1.0-Linux-x86_64.tar.gz"
32 33 34
 - tar xzf "cmake-3.1.0-Linux-x86_64.tar.gz"
 - mv cmake-3.1.0-Linux-x86_64 install
 - mkdir ~/smtk-deps/cgm/build && cd ~/smtk-deps/cgm
35 36
 - git clone https://bitbucket.org/fathomteam/cgm.git src
 - cd ~/smtk-deps/cgm/build
37 38
 #- ~/smtk-deps/cmake/install/bin/cmake --version
 #- ~/smtk-deps/cmake/install/bin/cmake --help
39 40
 #- ~/smtk-deps/cmake/install/bin/cmake -G Ninja -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo "-DCMAKE_CXX_FLAGS:STRING=-fPIC" -DCGM_OCC:BOOL=ON "-DCMAKE_INSTALL_PREFIX=${HOME}/smtk-deps/cgm/install" ../src
 - ~/smtk-deps/cmake/install/bin/cmake -G Ninja -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo "-DCMAKE_CXX_FLAGS:STRING=-fPIC" "-DCMAKE_INSTALL_PREFIX=${HOME}/smtk-deps/cgm/install" ../src
41
 - ninja -j2 install
42 43 44

script:
 - mkdir ~/smtk-build && cd ~/smtk-build
45 46 47 48
 - ~/smtk-deps/cmake/install/bin/cmake -G Ninja "-DSITE:STRING=travis-ci.org" "-DBUILDNAME:STRING=${TRAVIS_OS_NAME}-${CC}-Job.${TRAVIS_JOB_NUMBER}" -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo -DBUILD_SHARED_LIBS:BOOL=ON -DSMTK_BUILD_QT:BOOL=ON -DSMTK_ENABLE_DOCUMENTATION:BOOL=ON -DSMTK_ENABLE_TESTING:BOOL=ON -DSMTK_BUILD_CGMA:BOOL=ON -DCGM_CFG:FILEPATH=${HOME}/smtk-deps/cgm/install/include/cgm.make -DSMTK_NO_SYSTEM_BOOST:BOOL=OFF "-DCMAKE_INSTALL_PREFIX=${HOME}/smtk-install" ${TRAVIS_BUILD_DIR}
 - ninja ExperimentalStart
 - ninja ExperimentalConfigure
 - ninja ExperimentalBuild
vibraphone's avatar
vibraphone committed
49
 - ninja doc-userguide &>/dev/null
50
 - ninja install
51 52
 - ninja ExperimentalTest
 - ninja ExperimentalSubmit