From 61119a8e3771ad04ea43d8e6f2156e2424d55944 Mon Sep 17 00:00:00 2001 From: Edward Diener Date: Mon, 9 Oct 2017 08:18:50 -0400 Subject: [PATCH 1/2] Added Appveyor file and Travis CI file. --- .travis.yml | 40 ++++++++++++++++++++++++++++++++++++++++ appveyor.yml | 29 +++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 .travis.yml create mode 100644 appveyor.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..3e0540b --- /dev/null +++ b/.travis.yml @@ -0,0 +1,40 @@ +# Copyright 2016 Edward Diener +# 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 + +python: "2.7" + +os: + - linux + - osx + +branches: + only: + - master + - develop + +install: + - cd .. + - git clone -b $TRAVIS_BRANCH --depth 1 https://github.com/boostorg/boost.git boost-root + - cd boost-root + - git submodule update --init --depth 1 tools/build + - git submodule update --init --depth 1 libs/config + - git submodule update --init --depth 1 tools/boostdep + - cp -r $TRAVIS_BUILD_DIR/* libs/lambda + - python tools/boostdep/depinst/depinst.py lambda + - ./bootstrap.sh + - ./b2 headers + +script: + - TOOLSET=gcc,clang + - if [ $TRAVIS_OS_NAME == osx ]; then TOOLSET=clang; fi + - ./b2 --verbose-test libs/config/test//config_info toolset=$TOOLSET || true + - ./b2 libs/lambda/test toolset=$TOOLSET + +notifications: + email: + on_success: always diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..495975e --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,29 @@ +# Copyright 2017 Edward Diener +# 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) + +version: 1.0.{build}-{branch} + +shallow_clone: true + +branches: + only: + - master + - develop + +install: + - cd .. + - git clone -b %APPVEYOR_REPO_BRANCH% https://github.com/boostorg/boost.git boost-root + - cd boost-root + - git submodule update --init tools/build + - git submodule update --init libs/config + - git submodule update --init tools/boostdep + - xcopy /s /e /q %APPVEYOR_BUILD_FOLDER% libs\lambda + - python tools/boostdep/depinst/depinst.py lambda + - bootstrap + - b2 headers + +build: off + +test_script: + - b2 libs/lambda/test toolset=msvc-9.0,msvc-10.0,msvc-11.0,msvc-12.0,msvc-14.0,msvc-14.1 From 42b499ec9b7f1c4aea9b6d63d1dc105b5f089ad8 Mon Sep 17 00:00:00 2001 From: Edward Diener Date: Mon, 9 Oct 2017 12:08:07 -0400 Subject: [PATCH 2/2] Better appveyor file setup. --- appveyor.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 495975e..6912cd6 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -11,6 +11,13 @@ branches: - master - develop +environment: + matrix: + - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 + TOOLSET: msvc-9.0,msvc-10.0,msvc-11.0,msvc-12.0,msvc-14.0 + - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 + TOOLSET: msvc-14.1 + install: - cd .. - git clone -b %APPVEYOR_REPO_BRANCH% https://github.com/boostorg/boost.git boost-root @@ -26,4 +33,4 @@ install: build: off test_script: - - b2 libs/lambda/test toolset=msvc-9.0,msvc-10.0,msvc-11.0,msvc-12.0,msvc-14.0,msvc-14.1 + - b2 libs/lambda/test toolset=%TOOLSET%