Use Travis trusty infrastructure

This commit is contained in:
arcnmx 2015-10-18 21:37:14 -04:00
parent d3f497861d
commit 1181ca4b51
2 changed files with 10 additions and 22 deletions

View File

@ -1,7 +1,6 @@
language: c language: generic
sudo: required sudo: required
services: dist: trusty
- docker
# LLVM takes awhile to check out and otherwise we'll manage the submodules in # LLVM takes awhile to check out and otherwise we'll manage the submodules in
# our configure script, so disable auto submodule management. # our configure script, so disable auto submodule management.
@ -9,14 +8,15 @@ git:
submodules: false submodules: false
before_install: before_install:
- docker build -t rust -f src/etc/Dockerfile src/etc - 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
script: script:
- docker run --privileged -tv `pwd`:/build rust - ./configure --llvm-root=/usr/lib/llvm-3.7
sh -c " - make tidy && make check-notidy -j4
./configure --llvm-root=/usr/lib/llvm-3.7 &&
make tidy &&
make check -j4
"
# Real testing happens on http://buildbot.rust-lang.org/ # Real testing happens on http://buildbot.rust-lang.org/
# #

View File

@ -1,12 +0,0 @@
FROM ubuntu:latest
RUN echo 'deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.7 main' | \
sudo tee -a /etc/apt/sources.list
RUN echo 'deb-src http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.7 main' | \
sudo tee -a /etc/apt/sources.list
RUN apt-get update
RUN apt-get -y install curl make g++ python2.7 git zlib1g-dev libedit-dev
RUN apt-get -y --force-yes install llvm-3.7-tools
RUN mkdir /build
WORKDIR /build