Merge pull request #7803 from jamessan/remove-ci-special-cases

[RFC] Simplify Travis builds
This commit is contained in:
James McCoy
2018-01-02 19:12:57 -05:00
committed by GitHub
2 changed files with 16 additions and 22 deletions

View File

@@ -10,7 +10,7 @@ env:
# http://docs.travis-ci.com/user/speeding-up-the-build/#Paralellizing-your-build-on-one-VM # http://docs.travis-ci.com/user/speeding-up-the-build/#Paralellizing-your-build-on-one-VM
- MAKE_CMD="make -j2" - MAKE_CMD="make -j2"
# Update PATH for pip. # Update PATH for pip.
- PATH="$(python2.7 -c 'import site; print(site.getuserbase())')/bin:/usr/lib/llvm-symbolizer-4.0/bin:$PATH" - PATH="$(python2.7 -c 'import site; print(site.getuserbase())')/bin:$PATH"
# Build directory for Neovim. # Build directory for Neovim.
- BUILD_DIR="$TRAVIS_BUILD_DIR/build" - BUILD_DIR="$TRAVIS_BUILD_DIR/build"
# Build directory for third-party dependencies. # Build directory for third-party dependencies.
@@ -51,40 +51,38 @@ env:
jobs: jobs:
include: include:
- stage: sanitizers - stage: normal builds
os: linux os: linux
compiler: clang-4.0 compiler: clang
env: > env: >
CLANG_SANITIZER=ASAN_UBSAN CLANG_SANITIZER=ASAN_UBSAN
CMAKE_FLAGS="$CMAKE_FLAGS -DPREFER_LUA=ON" CMAKE_FLAGS="$CMAKE_FLAGS -DPREFER_LUA=ON"
- stage: normal builds - os: linux
os: linux compiler: gcc
compiler: gcc-5
env: FUNCTIONALTEST=functionaltest-lua env: FUNCTIONALTEST=functionaltest-lua
- os: linux - os: linux
# Travis creates a cache per compiler. # Travis creates a cache per compiler.
# Set a different value here to store 32-bit # Set a different value here to store 32-bit
# dependencies in a separate cache. # dependencies in a separate cache.
compiler: gcc-5 -m32 compiler: gcc -m32
env: BUILD_32BIT=ON env: BUILD_32BIT=ON
- os: osx - os: osx
compiler: clang compiler: clang
osx_image: xcode7.3 # macOS 10.11 osx_image: xcode7.3 # macOS 10.11
- os: osx - os: osx
compiler: gcc-4.9 compiler: gcc
osx_image: xcode7.3 # macOS 10.11 osx_image: xcode7.3 # macOS 10.11
- stage: lint - os: linux
os: linux
env: CI_TARGET=lint env: CI_TARGET=lint
- stage: Flaky builds - stage: Flaky builds
os: linux os: linux
compiler: gcc-5 compiler: gcc
env: GCOV=gcov-5 CMAKE_FLAGS="$CMAKE_FLAGS -DUSE_GCOV=ON" env: GCOV=gcov CMAKE_FLAGS="$CMAKE_FLAGS -DUSE_GCOV=ON"
- os: linux - os: linux
compiler: clang-4.0 compiler: clang
env: CLANG_SANITIZER=TSAN env: CLANG_SANITIZER=TSAN
allow_failures: allow_failures:
- env: GCOV=gcov-5 CMAKE_FLAGS="$CMAKE_FLAGS -DUSE_GCOV=ON" - env: GCOV=gcov CMAKE_FLAGS="$CMAKE_FLAGS -DUSE_GCOV=ON"
- env: CLANG_SANITIZER=TSAN - env: CLANG_SANITIZER=TSAN
fast_finish: true fast_finish: true
@@ -97,26 +95,20 @@ after_success: ci/after_success.sh
addons: addons:
apt: apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-4.0
packages: packages:
- autoconf - autoconf
- automake - automake
- apport - apport
- build-essential - build-essential
- clang-4.0 - clang
- cmake - cmake
- cscope - cscope
- g++-5-multilib
- g++-multilib - g++-multilib
- gcc-5-multilib
- gcc-multilib - gcc-multilib
- gdb - gdb
- language-pack-tr - language-pack-tr
- libc6-dev-i386 - libc6-dev-i386
- libtool - libtool
- llvm-4.0-dev
- locales - locales
- pkg-config - pkg-config
- unzip - unzip

View File

@@ -71,7 +71,9 @@ valgrind_check() {
} }
asan_check() { asan_check() {
check_logs "${1}" "*san.*" if test "${CLANG_SANITIZER}" = "ASAN_UBSAN" ; then
check_logs "${1}" "*san.*" | asan_symbolize
fi
} }
run_unittests() {( run_unittests() {(