Skip to content

Commit

Permalink
Update CI (Travis and AppVeyor)
Browse files Browse the repository at this point in the history
AppVeyor still failing. Gonna fix it completely in another commit.
  • Loading branch information
vinipsmaker committed Mar 26, 2018
1 parent 5b19991 commit ea7aa01
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 73 deletions.
102 changes: 38 additions & 64 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
sudo: required
sudo: false
dist: trusty
notifications:
on_success: change
Expand All @@ -11,74 +11,50 @@ matrix:
env: CMAKE_COMPILER=clang++

- os: linux
env: CC=gcc-4.9 CXX=g++-4.9 BUILD_TYPE=Debug
addons: &gcc49
env: CC=gcc-6 CXX=g++-6 BUILD_TYPE=Debug
addons: &gcc6
apt:
packages:
- realpath
- g++-6
- libstdc++-5-dev
sources:
- ubuntu-toolchain-r-test
install:
- sudo apt-get update -qq
- sudo apt-get install -qq g++-4.9

- os: linux
env: CC=gcc-4.9 CXX=g++-4.9 BUILD_TYPE=Release
addons: &gcc49
env: CC=gcc-6 CXX=g++-6 BUILD_TYPE=Release
addons: &gcc6
apt:
packages:
- realpath
- g++-6
- libstdc++-5-dev
sources:
- ubuntu-toolchain-r-test
install:
- sudo apt-get update -qq
- sudo apt-get install -qq g++-4.9

- os: linux
env: CC=gcc-5 CXX=g++-5 BUILD_TYPE=Debug
addons: &gcc5
env: CC=clang-5.0 CXX=clang++-5.0 BUILD_TYPE=Debug
addons: &clang50
apt:
packages:
- g++-5
- libstdc++-5-dev
sources:
- ubuntu-toolchain-r-test

- os: linux
env: CC=gcc-5 CXX=g++-5 BUILD_TYPE=Release
addons: &gcc5
apt:
packages:
- g++-5
- libstdc++-5-dev
sources:
- ubuntu-toolchain-r-test

- os: linux
env: CC=clang-3.8 CXX=clang++-3.8 BUILD_TYPE=Debug
addons: &clang38
apt:
packages:
- clang-3.8
- realpath
- clang-5.0
- g++-4.9
sources:
- llvm-toolchain-trusty-3.8
- llvm-toolchain-trusty-5.0
- ubuntu-toolchain-r-test
install:
- sudo apt-get update -qq
- sudo apt-get install -qq g++-4.9

- os: linux
env: CC=clang-3.8 CXX=clang++-3.8 BUILD_TYPE=Release
addons: &clang38
env: CC=clang-5.0 CXX=clang++-5.0 BUILD_TYPE=Release
addons: &clang50
apt:
packages:
- clang-3.8
- realpath
- clang-5.0
- g++-4.9
sources:
- llvm-toolchain-trusty-3.8
- llvm-toolchain-trusty-5.0
- ubuntu-toolchain-r-test
install:
- sudo apt-get update -qq
- sudo apt-get install -qq g++-4.9

# - os: linux
# env: CC=clang-3.8 CXX=clang++-3.8 CXXFLAGS="-g -O1 -fsanitize=memory -fno-omit-frame-pointer -fno-optimize-sibling-calls -fsanitize-memory-track-origins=2"
Expand All @@ -96,39 +72,37 @@ matrix:
# - sudo apt-get install -qq g++-4.9

- os: linux
env: CC=clang-3.8 CXX=clang++-3.8 CXXFLAGS="-g -O1 -fsanitize=address -fno-omit-frame-pointer -fno-optimize-sibling-calls" ASAN_OPTIONS=check_initialization_order=1
addons: &clang38
env: CC=clang-5.0 CXX=clang++-5.0 CXXFLAGS="-g -O1 -fsanitize=address -fno-omit-frame-pointer -fno-optimize-sibling-calls" ASAN_OPTIONS=check_initialization_order=1
sudo: required
addons: &clang50
apt:
packages:
- clang-3.8
- realpath
- clang-5.0
- g++-4.9
sources:
- llvm-toolchain-trusty-3.8
- llvm-toolchain-trusty-5.0
- ubuntu-toolchain-r-test
install:
- sudo apt-get update -qq
- sudo apt-get install -qq g++-4.9

- os: linux
env: CC=clang-3.8 CXX=clang++-3.8 CXXFLAGS="-g -O1 -fsanitize=undefined -fno-omit-frame-pointer -fno-optimize-sibling-calls"
addons: &clang38
env: CC=clang-5.0 CXX=clang++-5.0 CXXFLAGS="-g -O1 -fsanitize=undefined -fno-omit-frame-pointer -fno-optimize-sibling-calls"
addons: &clang50
apt:
packages:
- clang-3.8
- realpath
- clang-5.0
- g++-4.9
sources:
- llvm-toolchain-trusty-3.8
- llvm-toolchain-trusty-5.0
- ubuntu-toolchain-r-test
install:
- sudo apt-get update -qq
- sudo apt-get install -qq g++-4.9

before_install:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install -qq realpath; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then wget https://github.com/ned14/boost-release/archive/master.zip; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then unzip -q master.zip; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then export BOOST_ROOT="$(realpath boost-release-master)"; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then wget https://dl.bintray.com/boostorg/release/1.66.0/source/boost_1_66_0.tar.bz2; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then tar xjf boost_1_66_0.tar.bz2; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then export BOOST_ROOT="$(realpath boost_1_66_0)"; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then pushd "${BOOST_ROOT}"; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then chmod +x bootstrap.sh; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then ./bootstrap.sh --with-libraries=container,context,coroutine,date_time,filesystem,system,regex; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then ./bootstrap.sh --with-libraries=container,context,coroutine,date_time,filesystem,system,regex,test; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then ./b2; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then popd; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update; fi
Expand Down
18 changes: 9 additions & 9 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
platform:
- x86
- x64
#- x64

configuration:
- Debug
- Release

image: Visual Studio 2015
image: Visual Studio 2017

branches:
except:
Expand All @@ -16,20 +16,20 @@ environment:
CXXFLAGS: -DWIN32_LEAN_AND_MEAN

install:
- C:\"Program Files (x86)"\"Microsoft Visual Studio 14.0"\VC\vcvarsall.bat
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars32.bat"
- cinst -y cmake.portable
- ps: (new-object net.webclient).DownloadFile('https://github.com/ned14/boost-release/archive/master.zip', 'C:\master.zip')
- ps: (new-object net.webclient).DownloadFile('https://dl.bintray.com/boostorg/release/1.66.0/source/boost_1_66_0.zip', 'C:\boost_1_66_0.zip')
- ps: Add-Type -A System.IO.Compression.FileSystem
- ps: "[IO.Compression.ZipFile]::ExtractToDirectory('C:\\master.zip', 'C:\\')"
- cd "C:\boost-release-master"
- bootstrap.bat --with-toolset=msvc-14.0
- b2 --with-container --with-context --with-coroutine --with-date_time --with-filesystem --with-system --with-regex
- ps: "[IO.Compression.ZipFile]::ExtractToDirectory('C:\\boost_1_66_0.zip', 'C:\\')"
- cd "C:\boost_1_66_0"
- bootstrap.bat --with-toolset=msvc-15.0
- b2 --with-container --with-context --with-coroutine --with-date_time --with-filesystem --with-system --with-regex --with=test
- cd "%APPVEYOR_BUILD_FOLDER%"

build_script:
- md "test\build"
- cd "test\build"
- set LDFLAGS="/SAFESEH:NO"
- cmake -G"Visual Studio 14 2015" -DBOOST_ROOT="C:/boost-release-master" -DBoost_USE_STATIC_LIBS=ON ..
- cmake -G"Visual Studio 15 2017" -DBOOST_ROOT="C:/boost_1_66_0" -DBoost_USE_STATIC_LIBS=ON ..
- cmake --build .
- ctest --output-on-failure -C Debug

0 comments on commit ea7aa01

Please sign in to comment.