From 0ad01c60a0f2c67aa5218f7e039a1bc614297766 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 21 May 2016 22:09:15 +0300 Subject: [PATCH] Add .travis.yml --- .travis.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..a409e36 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,39 @@ +# Copyright 2016 Peter Dimov +# Distributed under the Boost Software License, Version 1.0. +# (See accompanying file LICENSE_1_0.txt or copy at http://boost.org/LICENSE_1_0.txt) + +language: cpp + +sudo: false + +os: + - linux + - osx + +branches: + only: + - master + - develop + +install: + - git clone -b $TRAVIS_BRANCH https://github.com/boostorg/boost.git boost + - cd boost + - git submodule init libs/assert + - git submodule init libs/config + - git submodule init libs/core + - git submodule init libs/predef + - git submodule init libs/static_assert + - git submodule init libs/type_traits + - git submodule init tools/build + - git submodule init tools/inspect + - git submodule update + - cd libs/core + - git checkout -q $TRAVIS_COMMIT + - cd ../.. + - ./bootstrap.sh + - ./b2 headers + +script: + - TOOLSET=gcc,clang + - if [ $TRAVIS_OS_NAME == osx ]; then TOOLSET=clang; fi + - ./b2 libs/core/test toolset=$TOOLSET