Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,25 @@ sudo: required
services:
- docker

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

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

script:
- docker run -v `pwd`:/build rust
- docker run -v `pwd`:/src:ro rust
sh -c "
./configure --llvm-root=/usr/lib/llvm-3.7 &&
/src/configure
--llvm-root=/usr/lib/llvm-3.7
--disable-manage-submodules &&
make tidy &&
make check-notidy -j4
"
Expand Down