-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
26 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,42 @@ | ||
# Linux Build Configuration for Travis | ||
|
||
language: cpp | ||
|
||
os: | ||
- linux | ||
|
||
# Use Ubuntu 14.04 LTS (Trusty) as the Linux testing environment. | ||
sudo: required | ||
dist: trusty | ||
sudo: false | ||
|
||
env: | ||
# Each line is a set of environment variables set before a build. | ||
# Thus each line represents a different build configuration. | ||
- BUILD_TYPE=Release | ||
- BUILD_TYPE=Debug | ||
git: | ||
depth: false | ||
|
||
addons: | ||
apt: | ||
sources: | ||
- llvm-toolchain-trusty | ||
- ubuntu-toolchain-r-test | ||
packages: | ||
- llvm-7-tools | ||
- llvm-7-dev | ||
- python3 | ||
|
||
compiler: | ||
- gcc | ||
- clang | ||
|
||
# To avoid Go bindings related issues in LIT tests, hide Go binaries from CMake | ||
install: | ||
- rm -f `which go` | ||
env: | ||
global: | ||
- MAKEFLAGS="-j2" | ||
matrix: | ||
- BUILD_TYPE=Release | ||
- BUILD_TYPE=Debug | ||
|
||
script: | ||
- mkdir build && cd build | ||
- cmake -D CMAKE_VERBOSE_MAKEFILE:BOOL=OFF -D CMAKE_COLOR_MAKEFILE:BOOL=ON -D LLVM_INCLUDE_EXAMPLES:BOOL=OFF -D LLVM_INCLUDE_TESTS:BOOL=ON -D LLVM_BUILD_TESTS:BOOL=ON -D LLVM_TARGETS_TO_BUILD="X86" -D LLVM_LIT_ARGS:STRING="-sv --no-progress-bar" -G "Unix Makefiles" -D CMAKE_BUILD_TYPE:STRING=${BUILD_TYPE} .. | ||
- make check-llvm -j 2 | ||
- cmake .. | ||
-DCMAKE_COLOR_MAKEFILE=ON | ||
-DCMAKE_BUILD_TYPE=${BUILD_TYPE} | ||
-DLLVM_EXTERNAL_LIT="/usr/lib/llvm-7/build/utils/lit/lit.py" | ||
-DCMAKE_INSTALL_PREFIX=../install/ | ||
-G "Unix Makefiles" | ||
- make && make test && make install |