Commit 30dd58b0 authored by David Thompson's avatar David Thompson

Try downloading a recent CMake for Travis.

parent 9386b84b
......@@ -11,7 +11,7 @@ before_install:
install:
# Install build tools:
- sudo apt-get install -yqq git cmake ninja-build ccache python-dev texlive-extra-utils
- sudo apt-get install -yqq git ninja-build ccache python-dev texlive-extra-utils
- sudo apt-get install -yqq libboost-dev doxygen
# Install Qt devel stuff:
- sudo apt-get install -yqq libqt4-dev libqt4-opengl-dev libqtwebkit-dev qt4-dev-tools
......@@ -22,15 +22,20 @@ install:
# 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"
# Now build deps for which there is no package
- mkdir ~/smtk-deps && cd ~/smtk-deps
- mkdir -p ~/smtk-deps/cgm/build && cd ~/smtk-deps/cgm
# 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
- wget "http://www.cmake.org/files/v3.1/cmake-3.1.0-Linux-x86_64.tar.gz"
- 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
- git clone https://bitbucket.org/fathomteam/cgm.git src
- cd ~/smtk-deps/cgm/build
- cmake --version
- cmake --help
- cmake "-DCMAKE_INSTALL_PREFIX=${HOME}/smtk-deps/cgm/install" ../src && make -j2
- ~/smtk-deps/cmake/install/bin/cmake --version
- ~/smtk-deps/cmake/install/bin/cmake --help
- ~/smtk-deps/cmake/install/bin/cmake -G Ninja "-DCMAKE_INSTALL_PREFIX=${HOME}/smtk-deps/cgm/install" ../src && ninja
script:
- mkdir ~/smtk-build && cd ~/smtk-build
- cmake ${TRAVIS_BUILD_DIR} && make -j2 Continuous
- ~/smtk-deps/cmake/install/bin/cmake -G Ninja ${TRAVIS_BUILD_DIR} && ninja Continuous
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