]> git.lizzy.rs Git - rust.git/blob - .travis.yml
Auto merge of #27045 - nikomatsakis:better-object-defaults-error, r=pnkfelix
[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
24   - make rustc-stage1 -j4
25
26 env:
27   - CXX=/usr/bin/g++-4.7
28
29 addons:
30   apt:
31     sources:
32     - ubuntu-toolchain-r-test
33     packages:
34     - gcc-4.7
35     - g++-4.7
36
37 # Real testing happens on http://buildbot.rust-lang.org/
38 #
39 # See https://github.com/rust-lang/rust-buildbot
40 #     CONTRIBUTING.md#pull-requests
41
42 notifications:
43   email: false
44
45 branches:
46   only:
47     - master