forked from klee/klee-uclibc
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
72 lines (67 loc) · 2.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
sudo: required
dist: trusty
language: cpp
compiler:
# FIXME: For now, building with Clang is disabled because the STP built with
# it hits an assertion failure during some tests. We should sort this out
# eventually and file the bug against STP or Clang whichever is appropriate,
# but for now it is easier to just reduce the number of configs we test
# anyway.
# - clang
- gcc
env:
###########################################################################
# Configurations
#
# Each line in the "env" section represents a set of environment variables
# passed to a build. Thus each line represents a different build
# configuration.
###########################################################################
# Check a subset of the matrix of:
# LLVM : {3.4}
# SOLVERS : {Z3}
# DISABLE_ASSERTIONS: {0}
# ENABLE_OPTIMIZED: {1}
# Check KLEE CMake build
- LLVM_VERSION=3.4 SOLVERS=Z3 DISABLE_ASSERTIONS=0 ENABLE_OPTIMIZED=1
addons:
apt:
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
- sourceline: 'ppa:h-rayflood/llvm'
- sourceline: 'deb http://download.opensuse.org/repositories/home:/delcypher:/z3/xUbuntu_14.04/ /'
key_url: 'http://download.opensuse.org/repositories/home:delcypher:z3/xUbuntu_14.04/Release.key'
packages:
- gcc-4.8
- g++-4.8
- libcap-dev
- libselinux1-dev
- cmake
cache: apt
before_install:
###########################################################################
# Set up the locations to get various packages from
# We assume the Travis image uses Ubuntu 14.04 LTS
###########################################################################
# Update package information
- sudo apt-get update
###########################################################################
# Set up out of source build directory
###########################################################################
- export SRC_DIR=`pwd`
- cd ../
- mkdir build
- cd build/
- export BUILD_DIR=`pwd`
###########################################################################
# Install stuff
###########################################################################
# Install LLVM and the LLVM bitcode compiler we require to build KLEE
- ${SRC_DIR}/.travis/install-llvm-and-runtime-compiler.sh
# Install lit (llvm-lit is not available)
- sudo pip install lit==0.6.0
script:
# Build uclibc
- ${SRC_DIR}/.travis/uclibc.sh
# Test uclibc integration with KLEE
- ${SRC_DIR}/.travis/klee.sh