]> git.lizzy.rs Git - rust.git/blob - .travis.yml
Auto merge of #28077 - jonas-schievink:attr-gateage, r=huonw
[rust.git] / .travis.yml
1 # ccache support is disabled unless your language is a C-derivative. However
2 # `language: C` unconditionally sets `CC=compiler`. If we just set it in our
3 # `env` it will be overwritten by the default (gcc 4.6).
4 language: c
5 compiler: /usr/bin/gcc-4.7
6 cache: ccache
7 sudo: false
8
9 # The test suite is in general way too stressful for travis, especially in
10 # terms of time limit and reliability. In the past we've tried to scale things
11 # back to only build the stage1 compiler and run a subset of tests, but this
12 # didn't end up panning out very well.
13 #
14 # As a result, we're just using travis to run `make tidy` and *only* build
15 # stage1 but *not* test it for now (a strict subset of the bootstrap). This will
16 # catch "obvious" errors like style or not even compiling.
17 #
18 # We need gcc4.7 or higher to build LLVM, and travis (well, Ubuntu 12.04)
19 # currently ships with 4.6. Gotta download our own.
20 before_script:
21   - ./configure --enable-ccache
22 script:
23   - make tidy && make check -j4
24
25 env:
26   - CXX=/usr/bin/g++-4.7
27
28 addons:
29   apt:
30     sources:
31     - ubuntu-toolchain-r-test
32     packages:
33     - gcc-4.7
34     - g++-4.7
35
36 # Real testing happens on http://buildbot.rust-lang.org/
37 #
38 # See https://github.com/rust-lang/rust-buildbot
39 #     CONTRIBUTING.md#pull-requests
40
41 notifications:
42   email: false
43
44 branches:
45   only:
46     - master