-
Notifications
You must be signed in to change notification settings - Fork 64
/
.travis.yml
44 lines (39 loc) · 984 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: bionic
# Install LLVM
addons:
apt:
update: true
sources:
- sourceline: 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main'
key_url: 'http://apt.llvm.org/llvm-snapshot.gpg.key'
packages:
- llvm-10
- llvm-10-dev
- llvm-10-tools
- clang-10
- libclang-common-10-dev
- libclang-10-dev
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:
- pip install --user lit
script:
# Build HelloWorld as a standalone project
- cd HelloWorld
- mkdir build && cd build
- cmake -DCT_LLVM_INSTALL_DIR=/usr/lib/llvm-10/ -DCMAKE_BUILD_TYPE=$CONFIGURATION ../
- make -j4
# Build the top project and run tests
- cd ../../
- mkdir build
- cd build
- cmake -DCT_LLVM_INSTALL_DIR=/usr/lib/llvm-10/ -DCMAKE_BUILD_TYPE=$CONFIGURATION ../
- make -j4
- lit test/