Commit 42957eee authored by David Thompson's avatar David Thompson

Try running build+tests with an X server on travis.

parent 85a4e997
#!/bin/sh
mkdir ~/smtk-build && cd ~/smtk-build
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}
ninja -j2 ExperimentalStart
ninja -j2 ExperimentalConfigure
ninja -j2 ExperimentalBuild
ninja -j2 doc-userguide &>/dev/null
ninja -j2 install
ninja -j2 ExperimentalTest
ninja -j2 ExperimentalSubmit
......@@ -18,6 +18,8 @@ install:
- sudo apt-get install -yqq libboost1.54-dev libboost-filesystem1.54-dev libboost-system1.54-dev
# Install Qt devel stuff:
- sudo apt-get install -yqq libqt4-dev libqt4-opengl-dev libqtwebkit-dev qt4-dev-tools
# Install mesa OpenGL driver
- sudo apt-get install libgl1-mesa-dri
# Install opencascade
- sudo apt-get install -yqq oce-dev cgm-dev
# Install python packages via pip
......@@ -38,12 +40,4 @@ install:
- ninja -j2 install
script:
- mkdir ~/smtk-build && cd ~/smtk-build
- 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}
- ninja -j2 ExperimentalStart
- ninja -j2 ExperimentalConfigure
- ninja -j2 ExperimentalBuild
- ninja -j2 doc-userguide &>/dev/null
- ninja -j2 install
- ninja -j2 ExperimentalTest
- ninja -j2 ExperimentalSubmit
- xvfb-run -s "-screen 0 1024x768x16" ${TRAVIS_BUILD_DIR}/.travis.build.sh
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