X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=.travis.yml;h=cc93b1127c3a73069dd5d6a7053ee741f9781984;hb=6fdde01368eb9e04360f0be7256fc5f2ad241ed1;hp=10545b909741812904f31c750ca1d8566e6297d8;hpb=75383ea7d7b1a4dff104be737830c1a31a6c0a73;p=rust.git diff --git a/.travis.yml b/.travis.yml index 10545b90974..cc93b1127c3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,37 +1,22 @@ -# ccache support is disabled unless your language is a C-derivative. However -# `language: C` unconditionally sets `CC=compiler`. If we just set it in our -# `env` it will be overwritten by the default (gcc 4.6). -language: c -compiler: /usr/bin/gcc-4.7 -cache: ccache -sudo: false +language: generic +sudo: required +dist: trusty -# The test suite is in general way too stressful for travis, especially in -# terms of time limit and reliability. In the past we've tried to scale things -# back to only build the stage1 compiler and run a subset of tests, but this -# didn't end up panning out very well. -# -# As a result, we're just using travis to run `make tidy` and *only* build -# stage1 but *not* test it for now (a strict subset of the bootstrap). This will -# catch "obvious" errors like style or not even compiling. -# -# We need gcc4.7 or higher to build LLVM, and travis (well, Ubuntu 12.04) -# currently ships with 4.6. Gotta download our own. -before_script: - - ./configure --enable-ccache -script: - - make tidy check -j4 +# LLVM takes awhile to check out and otherwise we'll manage the submodules in +# our configure script, so disable auto submodule management. +git: + submodules: false -env: - - CXX=/usr/bin/g++-4.7 +before_install: + - echo 0 | sudo tee /proc/sys/net/ipv6/conf/lo/disable_ipv6 + - echo 'deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.7 main' | sudo tee -a /etc/apt/sources.list + - echo 'deb-src http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.7 main' | sudo tee -a /etc/apt/sources.list + - sudo apt-get update + - sudo apt-get --force-yes install curl make g++ python2.7 git zlib1g-dev libedit-dev llvm-3.7-tools -addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - gcc-4.7 - - g++-4.7 +script: + - ./configure --llvm-root=/usr/lib/llvm-3.7 + - make tidy && make check-notidy -j4 # Real testing happens on http://buildbot.rust-lang.org/ #