summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorUrabe, Shyouhei <shyouhei@ruby-lang.org>2019-04-26 13:32:55 +0900
committerUrabe, Shyouhei <shyouhei@ruby-lang.org>2019-04-26 15:59:40 +0900
commitd700a8a0eb5f0a17d689216b5944ab6e39f1d55e (patch)
treef70152f460517c1f7599c6ec0d9cd5630fda3cac /.travis.yml
parent3175c54cb6d0684cf5a9346838a91756db33e54e (diff)
update travis clang
Seems clang-7 has false-positives around memory sanitizer. This line should not be reported because the memory region is correctly unpoisoned beforehand: https://travis-ci.org/ruby/ruby/jobs/524766381 Clang 8 seems to fix it.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml37
1 files changed, 31 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml
index 8b50a2a68c..81efc2f324 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -98,6 +98,31 @@ env:
before_install:
- /usr/local/opt/openssl@1.1/bin/openssl version
+ - &clang-8
+ compiler: clang-8
+ addons:
+ apt:
+ config:
+ retries: true
+ update: true
+ sources:
+ - llvm-toolchain-xenial-8
+ packages:
+ - clang-8
+ - llvm-8-tools
+ - libffi-dev
+ - libgdbm-dev
+ - libgmp-dev
+ - libjemalloc-dev
+ - libncurses5-dev
+ - libncursesw5-dev
+ - libreadline6-dev
+ - libssl-dev
+ - libyaml-dev
+ - openssl
+ - valgrind
+ - zlib1g-dev
+
# --------
- &x86_64-linux
@@ -163,13 +188,13 @@ env:
<<: *linux
#<<: *cron-only
<<: *make-test-only
- compiler: clang
+ <<: *clang-8
env:
- ASAN_OPTIONS=detect_leaks=0
- cflags='-march=native -fsanitize=address -fno-omit-frame-pointer -fPIC'
- debugflags=-ggdb3
- optflags=-O1
- - LD=clang
+ - LD=clang-8
- LDFLAGS='-fsanitize=address -fPIC'
- CONFIG_FLAG='--with-out-ext=openssl --without-gmp --without-jemalloc --without-valgrind'
@@ -178,11 +203,11 @@ env:
<<: *linux
#<<: *cron-only
<<: *make-test-only
- compiler: clang
+ <<: *clang-8
env:
- cflags='-fsanitize=memory -fsanitize-memory-track-origins=2 -fno-omit-frame-pointer -fPIC'
- optflags=-O1
- - LD=clang
+ - LD=clang-8
- LDFLAGS='-fsanitize=memory -fPIC'
- CONFIG_FLAG='--with-out-ext=openssl --without-gmp --without-jemalloc --without-valgrind'
@@ -191,13 +216,13 @@ env:
<<: *linux
#<<: *cron-only
<<: *make-test-only
- compiler: clang
+ <<: *clang-8
env:
- cflags='-fsanitize=undefined,integer,nullability -fno-omit-frame-pointer'
- cppflags=-DUNALIGNED_WORD_ACCESS=0
- debugflags=-ggdb3
- optflags='-O1 -march=native'
- - LD=clang
+ - LD=clang-8
- LDFLAGS=-fsanitize=undefined,integer,nullability
- &i686-linux