.travis.yml 1.3 KB
Newer Older
1 2 3
# 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).
4
language: c
5 6
compiler: /usr/bin/gcc-4.7
cache: ccache
7
sudo: false
8

9 10 11 12
# 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.
13
#
14 15 16 17 18 19
# 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.
20
before_script:
21
  - ./configure --enable-ccache
22
script:
H
Huon Wilson 已提交
23
  - make tidy && make check -j4
24 25 26 27 28 29 30 31 32 33 34

env:
  - CXX=/usr/bin/g++-4.7

addons:
  apt:
    sources:
    - ubuntu-toolchain-r-test
    packages:
    - gcc-4.7
    - g++-4.7
35

M
Matthew Astley 已提交
36 37 38 39 40
# Real testing happens on http://buildbot.rust-lang.org/
#
# See https://github.com/rust-lang/rust-buildbot
#     CONTRIBUTING.md#pull-requests

41 42 43 44 45 46
notifications:
  email: false

branches:
  only:
    - master