From: erbsenzaehler Date: Sun, 23 Dec 2018 17:17:44 +0000 (+0100) Subject: Update our continuous integration machinery (#1889) X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=2089c414dad595430432632cfe606b2cd6d701ab;hp=656aad8b0c10f43eae7744edc1b7171720ac7426 Update our continuous integration machinery (#1889) * Update our continuous integration machinery Ubuntu 16.04 can now be used with travis. Updating all the other stuff when there. Invoking the lld linker seems to save 5 minutes with clang on linux. No functional change. * fix --- diff --git a/.travis.yml b/.travis.yml index ded29e47..ea5bda1d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: cpp sudo: required -dist: trusty +dist: xenial matrix: include: @@ -9,21 +9,21 @@ matrix: addons: apt: sources: ['ubuntu-toolchain-r-test'] - packages: ['g++-7', 'g++-7-multilib', 'g++-multilib', 'valgrind', 'expect', 'curl'] + packages: ['g++-8', 'g++-8-multilib', 'g++-multilib', 'valgrind', 'expect', 'curl'] env: - - COMPILER=g++-7 + - COMPILER=g++-8 - COMP=gcc - os: linux compiler: clang addons: apt: - sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-trusty-5.0'] - packages: ['clang-5.0', 'llvm-5.0-dev', 'g++-multilib', 'valgrind', 'expect', 'curl'] + sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-xenial-6.0'] + packages: ['clang-6.0', 'llvm-6.0-dev', 'g++-multilib', 'valgrind', 'expect', 'curl'] env: - - COMPILER=clang++-5.0 + - COMPILER=clang++-6.0 - COMP=clang - - LDFLAGS=-fuse-ld=gold + - LDFLAGS=-fuse-ld=lld - os: osx compiler: gcc @@ -34,7 +34,7 @@ matrix: - os: osx compiler: clang env: - - COMPILER=clang++ V='Apple LLVM 6.0' # Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn) + - COMPILER=clang++ V='Apple LLVM 9.4.1' # Apple LLVM version 9.1.0 (clang-902.0.39.2) - COMP=clang branches: @@ -69,6 +69,6 @@ script: # # Sanitizer # - # Use g++-7 as a proxy for having sanitizers, might need revision as they become available for more recent versions of clang/gcc - - if [[ "$COMPILER" == "g++-7" ]]; then make clean && make -j2 ARCH=x86-64 sanitize=undefined optimize=no debug=yes build > /dev/null && ../tests/instrumented.sh --sanitizer-undefined; fi - - if [[ "$COMPILER" == "g++-7" ]]; then make clean && make -j2 ARCH=x86-64 sanitize=thread optimize=no debug=yes build > /dev/null && ../tests/instrumented.sh --sanitizer-thread; fi + # Use g++-8 as a proxy for having sanitizers, might need revision as they become available for more recent versions of clang/gcc + - if [[ "$COMPILER" == "g++-8" ]]; then make clean && make -j2 ARCH=x86-64 sanitize=undefined optimize=no debug=yes build > /dev/null && ../tests/instrumented.sh --sanitizer-undefined; fi + - if [[ "$COMPILER" == "g++-8" ]]; then make clean && make -j2 ARCH=x86-64 sanitize=thread optimize=no debug=yes build > /dev/null && ../tests/instrumented.sh --sanitizer-thread; fi diff --git a/appveyor.yml b/appveyor.yml index c81869b5..21f3bbe3 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -7,7 +7,7 @@ branches: - appveyor # Operating system (build VM template) -os: Visual Studio 2015 +os: Visual Studio 2017 # Build platform, i.e. x86, x64, AnyCPU. This setting is optional. platform: @@ -51,7 +51,7 @@ before_build: $b = git log HEAD | sls "\b[Bb]ench[ :]+[0-9]{7}" | select -first 1 $bench = $b -match '\D+(\d+)' | % { $matches[1] } Write-Host "Reference bench:" $bench - $g = "Visual Studio 14 2015" + $g = "Visual Studio 15 2017" If (${env:PLATFORM} -eq 'x64') { $g = $g + ' Win64' } cmake -G "${g}" . Write-Host "Generated files for: " $g