Skip to content

Commit 6405ac7

Browse files
committed
Do out-of-tree build on Travis
1 parent 95206f4 commit 6405ac7

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.travis.yml

+11-4
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,25 @@ sudo: required
33
services:
44
- docker
55

6-
# LLVM takes awhile to check out and otherwise we'll manage the submodules in
7-
# our configure script, so disable auto submodule management.
6+
# LLVM takes awhile to check out and otherwise we'll manage the submodules
7+
# ourselves, so disable auto submodule management.
88
git:
99
submodules: false
1010

11+
# We want to mount source directory read-only to test out-of-tree build.
12+
# This means configure can't manage submodules, so we do it here.
1113
before_install:
14+
- git submodule init
15+
- git submodule deinit src/llvm
16+
- git submodule update
1217
- docker build -t rust -f src/etc/Dockerfile src/etc
1318

1419
script:
15-
- docker run -v `pwd`:/build rust
20+
- docker run -v `pwd`:/src:ro rust
1621
sh -c "
17-
./configure --llvm-root=/usr/lib/llvm-3.7 &&
22+
/src/configure
23+
--llvm-root=/usr/lib/llvm-3.7
24+
--disable-manage-submodules &&
1825
make tidy &&
1926
make check-notidy -j4
2027
"

0 commit comments

Comments
 (0)