forked from banach-space/llvm-tutor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
56 lines (52 loc) · 1.42 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
language: cpp
# Install LLVM
addons:
apt:
update: true
sources:
- sourceline: 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-9 main'
key_url: 'http://apt.llvm.org/llvm-snapshot.gpg.key'
packages:
- llvm-9
- llvm-9-dev
- llvm-9-tools
- clang-9
homebrew:
packages:
- llvm@9
# The following error was triggered when Homebrew was _not_ updated:
# Error: Your Homebrew is outdated. Please run `brew update`.
# Updating Homebrew every time slows down the build considerably, but seems
# necessary.
update: true
matrix:
include:
- os: linux
dist: bionic
env:
- LLVM_DIR="/usr/lib/llvm-9/"
- LLVM_TOOLCHAIN="/usr/lib/llvm-9/bin"
- LIT_PATH=/home/travis/.local/bin/
- os: osx
osx_image: xcode11
env:
- LLVM_DIR="/usr/local/opt/llvm@9/"
- LLVM_TOOLCHAIN="/usr/local/opt/llvm@9/bin/"
- LIT_PATH=/Users/travis/Library/Python/2.7/bin/
# AFAIK, there's no other way of obtaining LLVM's lit other than via `pip
# install`
install:
- pip install --user lit
script:
# Build HelloWorld as a standalone project
- cd HelloWorld
- mkdir build && cd build
- cmake -DLT_LLVM_INSTALL_DIR="$LLVM_DIR" ../
- make -j4
# Build the top project and run tests
- cd ../../
- mkdir build
- cd build
- cmake -DLT_LLVM_INSTALL_DIR="$LLVM_DIR" ../
- make -j4
- ${LIT_PATH}/lit test/