forked from banach-space/llvm-tutor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (39 loc) · 998 Bytes
/
.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
language: cpp
dist: focal
# Install LLVM
addons:
apt:
update: true
sources:
- sourceline: 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-13 main'
key_url: 'http://apt.llvm.org/llvm-snapshot.gpg.key'
packages:
- llvm-13
- llvm-13-dev
- llvm-13-tools
- clang-13
- python3
- python3-pip
env:
- CONFIGURATION=Debug
- CONFIGURATION=Release
compiler:
- clang
- gcc
# AFAIK, there's no other way of obtaining LLVM's lit other than via `pip
# install`
install:
- pip3 install --user lit
script:
# Build HelloWorld as a standalone project
- cd $HOME/build/banach-space/llvm-tutor/HelloWorld
- mkdir build && cd build
- cmake -DLT_LLVM_INSTALL_DIR=/usr/lib/llvm-13/ -DCMAKE_BUILD_TYPE=$CONFIGURATION ../
- make -j4
# Build the top project and run tests
- cd ../../
- mkdir build
- cd build
- cmake -DLT_LLVM_INSTALL_DIR=/usr/lib/llvm-13/ -DCMAKE_BUILD_TYPE=$CONFIGURATION ../
- make -j4
- lit test/