Skip to content

Travis: Use clang-6.0 and mark all builds as sudo: false #2876

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 22, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,71 +146,68 @@ jobs:
- EXTRA_CXXFLAGS="-DDEBUG"
script: echo "Not running any tests for a debug build."

# Ubuntu Linux with glibc using clang++-3.7, no-debug mode
# Ubuntu Linux with glibc using clang++-6.0, no-debug mode
- stage: Test different OS/CXX/Flags
os: linux
sudo: true
sudo: false
compiler: clang
cache: ccache
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-6.0
packages:
- libwww-perl
- g++-5
- clang-6.0
- libstdc++-5-dev
- libubsan0
- parallel
before_install:
- curl -sSL "http://apt.llvm.org/llvm-snapshot.gpg.key" | sudo -E apt-key add -
- echo "deb http://apt.llvm.org/precise/ llvm-toolchain-precise-3.7 main" | sudo tee -a /etc/apt/sources.list > /dev/null
- sudo apt-get update --option Acquire::Retries=100 --option Acquire::http::Timeout="60"
- sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install clang-3.7
- mkdir bin
- ln -s /usr/bin/gcc-5 bin/gcc
- ln -s /usr/bin/c++-5 bin/g++
- export CCACHE_CPP2=yes
# env: COMPILER=clang++-3.7 SAN_FLAGS="-fsanitize=undefined -fno-sanitize-recover=undefined,integer -fno-omit-frame-pointer"
# env: COMPILER=clang++-6.0 SAN_FLAGS="-fsanitize=undefined -fno-sanitize-recover=undefined,integer -fno-omit-frame-pointer"
env:
- COMPILER="ccache /usr/bin/clang++-3.7"
- COMPILER="ccache /usr/bin/clang++-6.0"
- EXTRA_CXXFLAGS="-Qunused-arguments -fcolor-diagnostics -DNDEBUG"
- CCACHE_CPP2=yes

# Ubuntu Linux with glibc using clang++-3.7, debug mode, disable USE_DSTRING
# Ubuntu Linux with glibc using clang++-6.0, debug mode, disable USE_DSTRING
- stage: Test different OS/CXX/Flags
os: linux
sudo: true
sudo: false
compiler: clang
cache: ccache
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-6.0
packages:
- libwww-perl
- g++-5
- clang-6.0
- libstdc++-5-dev
- libubsan0
before_install:
- curl -sSL "http://apt.llvm.org/llvm-snapshot.gpg.key" | sudo -E apt-key add -
- echo "deb http://apt.llvm.org/precise/ llvm-toolchain-precise-3.7 main" | sudo tee -a /etc/apt/sources.list > /dev/null
- sudo apt-get update --option Acquire::Retries=100 --option Acquire::http::Timeout="60"
- sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install clang-3.7
- mkdir bin
- ln -s /usr/bin/gcc-5 bin/gcc
- ln -s /usr/bin/g++-5 bin/g++
- export CCACHE_CPP2=yes
# env: COMPILER=clang++-3.7 SAN_FLAGS="-fsanitize=undefined -fno-sanitize-recover=undefined,integer -fno-omit-frame-pointer"
# env: COMPILER=clang++-6.0 SAN_FLAGS="-fsanitize=undefined -fno-sanitize-recover=undefined,integer -fno-omit-frame-pointer"
env:
- COMPILER="ccache /usr/bin/clang++-3.7"
- COMPILER="ccache /usr/bin/clang++-6.0"
- EXTRA_CXXFLAGS="-Qunused-arguments -fcolor-diagnostics -DDEBUG -DUSE_STD_STRING"
- CCACHE_CPP2=yes
script: echo "Not running any tests for a debug build."

# cmake build using g++-5
- stage: Test different OS/CXX/Flags
os: linux
sudo: false
compiler: gcc
cache: ccache
env:
Expand All @@ -236,6 +233,7 @@ jobs:
# cmake build using g++-7
- stage: Test different OS/CXX/Flags
os: linux
sudo: false
compiler: gcc
cache: ccache
env:
Expand All @@ -261,6 +259,7 @@ jobs:
# cmake build using clang++-6
- stage: Test different OS/CXX/Flags
os: linux
sudo: false
compiler: clang
cache: ccache
env:
Expand Down Expand Up @@ -294,6 +293,7 @@ jobs:
# cmake build on OSX, using default clang
- stage: Test different OS/CXX/Flags
os: osx
sudo: false
compiler: clang
cache: ccache
before_install:
Expand Down