Skip to content

Commit

Permalink
travis: make it build again
Browse files Browse the repository at this point in the history
v2: add -j2 to make
  • Loading branch information
karolherbst committed Apr 12, 2018
1 parent fdbd08a commit 44c36a3
Showing 1 changed file with 26 additions and 13 deletions.
39 changes: 26 additions & 13 deletions .travis.yml
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:
# adds deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty main
- llvm-toolchain-trusty
- ubuntu-toolchain-r-test
packages:
- llvm-7-tools
- llvm-7-dev

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

0 comments on commit 44c36a3

Please sign in to comment.