-
Notifications
You must be signed in to change notification settings - Fork 64
/
.travis.yml
53 lines (48 loc) · 1.57 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
language: cpp
dist: bionic
# Install LLVM
addons:
apt:
update: true
sources:
- sourceline: 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-11 main'
key_url: 'http://apt.llvm.org/llvm-snapshot.gpg.key'
packages:
- llvm-11
- llvm-11-dev
- llvm-11-tools
- clang-11
- libclang-common-11-dev
- libclang-11-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:
# The latest version of CMake available in Travis is 3.12.4. That's
# insufficient for LLVM and llvm-tutor. Download more recent version and use
# that instead.
- CMAKE_DIR="/home/travis/build/banach-space/cmake/"
- mkdir $CMAKE_DIR && cd $CMAKE_DIR
- wget https://github.com/Kitware/CMake/releases/download/v3.18.4/cmake-3.18.4-Linux-x86_64.sh
- checksum=3d6e838e98cbeeeedb83860dc4ef9cc5d559b78bad5fd48b014b8d863d575356
- echo "$checksum cmake-3.18.4-Linux-x86_64.sh" | sha256sum -c -
- bash cmake-3.18.4-Linux-x86_64.sh --skip-license
# Build HelloWorld as a standalone project
- cd $HOME/build/banach-space/clang-tutor/HelloWorld
- mkdir build && cd build
- $CMAKE_DIR/bin/cmake -DCT_LLVM_INSTALL_DIR=/usr/lib/llvm-11/ -DCMAKE_BUILD_TYPE=$CONFIGURATION ../
- make -j4
# Build the top project and run tests
- cd ../../
- mkdir build
- cd build
- $CMAKE_DIR/bin/cmake -DCT_LLVM_INSTALL_DIR=/usr/lib/llvm-11/ -DCMAKE_BUILD_TYPE=$CONFIGURATION ../
- make -j4
- lit test/