File tree 2 files changed +34
-8
lines changed
2 files changed +34
-8
lines changed Original file line number Diff line number Diff line change 1
1
language : generic
2
2
sudo : required
3
- dist : trusty
3
+ services :
4
+ - docker
4
5
5
6
# LLVM takes awhile to check out and otherwise we'll manage the submodules in
6
7
# our configure script, so disable auto submodule management.
7
8
git :
8
9
submodules : false
9
10
10
11
before_install :
11
- - echo 0 | sudo tee /proc/sys/net/ipv6/conf/lo/disable_ipv6
12
- - echo 'deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.7 main' | sudo tee -a /etc/apt/sources.list
13
- - echo 'deb-src http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.7 main' | sudo tee -a /etc/apt/sources.list
14
- - sudo apt-get update
15
- - sudo apt-get --force-yes install curl make g++ python2.7 git zlib1g-dev libedit-dev llvm-3.7-tools
12
+ - docker build -t rust -f src/etc/Dockerfile src/etc
16
13
17
14
script :
18
- - ./configure --llvm-root=/usr/lib/llvm-3.7
19
- - make tidy && make check-notidy -j4
15
+ - docker run -v `pwd`:/build rust
16
+ sh -c "
17
+ ./configure --llvm-root=/usr/lib/llvm-3.7 &&
18
+ make tidy &&
19
+ make check-notidy -j4
20
+ "
20
21
21
22
# Real testing happens on http://buildbot.rust-lang.org/
22
23
#
Original file line number Diff line number Diff line change
1
+ FROM ubuntu:xenial
2
+
3
+ # curl
4
+ # Download stage0, see src/bootstrap/bootstrap.py
5
+ # g++
6
+ # Compile LLVM binding in src/rustllvm
7
+ # git
8
+ # Get commit hash and commit date in version string
9
+ # make
10
+ # Run build scripts in mk
11
+ # libedit-dev zlib1g-dev
12
+ # LLVM dependencies as packaged in Ubuntu
13
+ # (They are optional, but Ubuntu package enables them)
14
+ # llvm-3.7-dev (installed by llvm-3.7-tools)
15
+ # LLVM
16
+ # llvm-3.7-tools
17
+ # FileCheck is used to run tests in src/test/codegen
18
+
19
+ RUN apt-get update && apt-get -y install \
20
+ curl g++ git make \
21
+ libedit-dev zlib1g-dev \
22
+ llvm-3.7-tools
23
+
24
+ RUN mkdir /build
25
+ WORKDIR /build
You can’t perform that action at this time.
0 commit comments