2015-07-14 02:29:01 +02:00
|
|
|
# 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).
|
2014-02-21 00:37:44 +01:00
|
|
|
language: c
|
2015-07-14 02:29:01 +02:00
|
|
|
compiler: /usr/bin/gcc-4.7
|
|
|
|
cache: ccache
|
2015-01-01 08:00:29 +01:00
|
|
|
sudo: false
|
2014-02-21 00:37:44 +01:00
|
|
|
|
2014-10-02 22:50:43 +02:00
|
|
|
# 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.
|
2014-02-21 00:37:44 +01:00
|
|
|
#
|
2015-07-14 02:29:01 +02:00
|
|
|
# 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.
|
2014-02-21 00:37:44 +01:00
|
|
|
before_script:
|
2015-07-14 02:29:01 +02:00
|
|
|
- ./configure --enable-ccache
|
2014-10-02 22:50:43 +02:00
|
|
|
script:
|
2015-08-29 07:59:00 +02:00
|
|
|
- make tidy && make check -j4
|
2015-07-14 02:29:01 +02:00
|
|
|
|
|
|
|
env:
|
|
|
|
- CXX=/usr/bin/g++-4.7
|
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- gcc-4.7
|
|
|
|
- g++-4.7
|
2014-03-06 06:17:15 +01:00
|
|
|
|
2015-06-11 11:26:19 +02:00
|
|
|
# Real testing happens on http://buildbot.rust-lang.org/
|
|
|
|
#
|
|
|
|
# See https://github.com/rust-lang/rust-buildbot
|
|
|
|
# CONTRIBUTING.md#pull-requests
|
|
|
|
|
2014-03-06 06:17:15 +01:00
|
|
|
notifications:
|
|
|
|
email: false
|
|
|
|
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|