Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do out-of-tree build on Travis #34071

Closed
wants to merge 1 commit into from
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