vcglib/.travis.yml

52 lines
1.8 KiB
YAML
Raw Normal View History

2017-03-27 22:46:38 +02:00
# Enable C++ support
language: cpp
2017-03-27 22:58:58 +02:00
os:
- linux
- osx
# Compiler selection
compiler:
- clang
- gcc
2017-03-27 22:58:58 +02:00
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- g++-4.8
- clang
matrix:
exclude:
- os: osx
compiler: gcc
install:
# Linux Setup
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then wget --no-check-certificate http://cmake.org/files/v3.1/cmake-3.1.3-Linux-x86_64.tar.gz ;fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then tar -xzf cmake-3.1.3-Linux-x86_64.tar.gz ;fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8" ;fi ;fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export PATH=$PWD/cmake-3.1.3-Linux-x86_64/bin:$PATH ;fi
# OSX Setup
2017-03-28 16:34:54 +02:00
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then which cmake ;fi
2017-03-27 22:58:58 +02:00
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then wget --no-check-certificate http://cmake.org/files/v3.1/cmake-3.1.3-Darwin-x86_64.tar.gz ;fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then tar -xzf cmake-3.1.3-Darwin-x86_64.tar.gz ;fi
2017-03-28 16:34:54 +02:00
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ls -la ;fi
2017-03-27 22:58:58 +02:00
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PATH=$PWD/cmake-3.1.3-Darwin-x86_64/CMake.app/Contents/bin:$PATH ;fi
2017-03-28 16:34:54 +02:00
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then which cmake ;fi
# Build steps
script:
- cd apps/tridecimator
- mkdir build
- cd build
- cmake ..
- make