forked from halide/Halide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
46 lines (44 loc) · 1.72 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
language: cpp
compiler:
# Comment out for now to keep build matrix small
# - clang
- gcc
addons:
apt:
sources:
- sourceline: 'deb https://apt.kitware.com/ubuntu/ bionic main'
key_url: 'https://apt.kitware.com/keys/kitware-archive-latest.asc'
packages:
- libpng-dev # Get libpng for the tutorials and apps
- cmake # For modern CMake build
- doxygen # For generating docs
env:
global:
# The Travis Ubuntu Xenial environment we run in currently promises 2 cores.
# We'll run at -j4 on the assumption that there's enough I/O bound work
# for that to be profitable.
- MAKEFLAGS=-j4
matrix:
# Configurations
#
# Each line in the ``env`` section represents a set of environment
# variables passed to a build configuration
#
# Test a mix of llvm versions, a mix of build systems, and a mix of shared vs static library
# Don't build as a static library with cmake. It risks exceeding the travis memory limit.
#
# Note that gcc5.4 is the default install on Travis Xenial, so we'll just use that.
- LLVM_VERSION=9.0.0 BUILD_SYSTEM=MAKE
- LLVM_VERSION=9.0.0 BUILD_SYSTEM=CMAKE HALIDE_SHARED_LIBRARY=ON
- LLVM_VERSION=9.0.0 BUILD_SYSTEM=CMAKE HALIDE_SHARED_LIBRARY=OFF
# Just one version of LLVM8 should suffice.
- LLVM_VERSION=8.0.0 BUILD_SYSTEM=MAKE
cache: ccache
dist: bionic
install:
# Download the right llvm release.
- wget https://releases.llvm.org/${LLVM_VERSION}/clang+llvm-${LLVM_VERSION}-x86_64-linux-gnu-ubuntu-18.04.tar.xz
- tar xvf clang+llvm-${LLVM_VERSION}-x86_64-linux-gnu-ubuntu-18.04.tar.xz
- sudo mv clang+llvm-${LLVM_VERSION}-x86_64-linux-gnu-ubuntu-18.04 /usr/local/llvm
script:
- test/scripts/build_travis.sh