mirror of
https://github.com/Z3Prover/z3
synced 2025-04-08 18:31:49 +00:00
add a single configuration to TravisCI to test. TravisCI is very slow at running macOS jobs so just have one configuration for now.
81 lines
3.9 KiB
YAML
81 lines
3.9 KiB
YAML
cache:
|
|
# This persistent cache is used to cache the building of
|
|
# docker base images.
|
|
directories:
|
|
- $DOCKER_TRAVIS_CI_CACHE_DIR
|
|
sudo: required
|
|
language: cpp
|
|
services:
|
|
- docker
|
|
env:
|
|
global:
|
|
# This environment variable tells the `travis_ci_linux_entry_point.sh`
|
|
# script to look for a cached Docker image.
|
|
- DOCKER_TRAVIS_CI_CACHE_DIR=$HOME/.cache/docker
|
|
# Configurations
|
|
matrix:
|
|
###############################################################################
|
|
# Ubuntu 16.04 LTS
|
|
###############################################################################
|
|
# 64-bit GCC 5.4 RelWithDebInfo
|
|
- LINUX_BASE=ubuntu_16.04 C_COMPILER=/usr/bin/gcc-5 CXX_COMPILER=/usr/bin/g++-5 TARGET_ARCH=x86_64 Z3_BUILD_TYPE=RelWithDebInfo
|
|
# 64-bit Clang 3.9 RelWithDebInfo
|
|
- LINUX_BASE=ubuntu_16.04 C_COMPILER=/usr/bin/clang-3.9 CXX_COMPILER=/usr/bin/clang++-3.9 TARGET_ARCH=x86_64 Z3_BUILD_TYPE=RelWithDebInfo
|
|
|
|
# 64-bit GCC 5.4 Debug
|
|
- LINUX_BASE=ubuntu_16.04 C_COMPILER=/usr/bin/gcc-5 CXX_COMPILER=/usr/bin/g++-5 TARGET_ARCH=x86_64 Z3_BUILD_TYPE=Debug
|
|
# 64-bit Clang Debug
|
|
- LINUX_BASE=ubuntu_16.04 C_COMPILER=/usr/bin/clang-3.9 CXX_COMPILER=/usr/bin/clang++-3.9 TARGET_ARCH=x86_64 Z3_BUILD_TYPE=Debug
|
|
|
|
# 32-bit GCC 5.4 RelWithDebInfo
|
|
- LINUX_BASE=ubuntu32_16.04 C_COMPILER=/usr/bin/gcc-5 CXX_COMPILER=/usr/bin/g++-5 TARGET_ARCH=i686 Z3_BUILD_TYPE=RelWithDebInfo
|
|
|
|
# Both of the two configurations below build the docs because the current
|
|
# implementation uses python as part of the building process.
|
|
# TODO: Teach one of the configurations to upload built docs somewhere.
|
|
# Test with Python 3 and API docs
|
|
- LINUX_BASE=ubuntu_16.04 PYTHON_EXECUTABLE=/usr/bin/python3 BUILD_DOCS=1
|
|
# Test with LibGMP and API docs
|
|
- LINUX_BASE=ubuntu_16.04 TARGET_ARCH=x86_64 USE_LIBGMP=1 BUILD_DOCS=1 PYTHON_EXECUTABLE=/usr/bin/python2.7
|
|
|
|
# Test without OpenMP
|
|
- LINUX_BASE=ubuntu_16.04 C_COMPILER=/usr/bin/gcc-5 CXX_COMPILER=/usr/bin/g++-5 TARGET_ARCH=x86_64 Z3_BUILD_TYPE=RelWithDebInfo USE_OPENMP=0
|
|
|
|
# Unix Makefile generator build
|
|
- LINUX_BASE=ubuntu_16.04 C_COMPILER=/usr/bin/gcc-5 CXX_COMPILER=/usr/bin/g++-5 TARGET_ARCH=x86_64 Z3_CMAKE_GENERATOR="Unix Makefiles"
|
|
|
|
# LTO build
|
|
- LINUX_BASE=ubuntu_16.04 C_COMPILER=/usr/bin/gcc-5 CXX_COMPILER=/usr/bin/g++-5 TARGET_ARCH=x86_64 USE_LTO=1
|
|
|
|
# Static build. Note we have disable building the bindings because they won't work with a static libz3
|
|
- LINUX_BASE=ubuntu_16.04 C_COMPILER=/usr/bin/gcc-5 CXX_COMPILER=/usr/bin/g++-5 TARGET_ARCH=x86_64 Z3_STATIC_BUILD=1 DOTNET_BINDINGS=0 JAVA_BINDINGS=0 PYTHON_BINDINGS=0
|
|
|
|
###############################################################################
|
|
# Ubuntu 14.04 LTS
|
|
###############################################################################
|
|
# GCC 4.8
|
|
# 64-bit GCC 4.8 RelWithDebInfo
|
|
- LINUX_BASE=ubuntu_14.04 C_COMPILER=/usr/bin/gcc-4.8 CXX_COMPILER=/usr/bin/g++-4.8 TARGET_ARCH=x86_64 Z3_BUILD_TYPE=RelWithDebInfo
|
|
# 64-bit GCC 4.8 Debug
|
|
- LINUX_BASE=ubuntu_14.04 C_COMPILER=/usr/bin/gcc-4.8 CXX_COMPILER=/usr/bin/g++-4.8 TARGET_ARCH=x86_64 Z3_BUILD_TYPE=Debug
|
|
|
|
# macOS (a.k.a OSX) support
|
|
matrix:
|
|
include:
|
|
# For now just test a single configuration. macOS builds on TravisCI are
|
|
# very slow so we should keep the number of configurations we test on this
|
|
# OS to a minimum.
|
|
- os: osx
|
|
osx_image: xcode8.3
|
|
# Note: Apple Clang does not support OpenMP
|
|
env: Z3_BUILD_TYPE=RelWithDebInfo USE_OPENMP=0
|
|
script:
|
|
# Use `travis_wait` when doing LTO builds because this configuration will
|
|
# have long link times during which it will not show any output which
|
|
# TravisCI might kill due to perceived inactivity.
|
|
- if [ "X${USE_LTO}" = "X1" ]; then
|
|
travis_wait 45 contrib/ci/scripts/travis_ci_entry_point.sh || exit 1;
|
|
else
|
|
contrib/ci/scripts/travis_ci_entry_point.sh || exit 1;
|
|
fi
|