mirror of
https://github.com/dashpay/dash.git
synced 2024-12-29 05:49:11 +01:00
da33c9619c
* Update to leveldb upstream using subtree merge * Import crc32c using subtree merge as as 'src/crc32c' * build: Update build system for new leveldb Upstream leveldb switched build systems, which means we need to define a few different values. Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com> * doc: Add crc32c subtree to developer notes * test: Add crc32c to subtree check linter * test: Add crc32c exception to various linters and generation scripts * build: Add LCOV exception for crc32c Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com> * build: CRC32C build system integration Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com>
83 lines
2.1 KiB
YAML
83 lines
2.1 KiB
YAML
# Build matrix / environment variables are explained on:
|
|
# http://about.travis-ci.org/docs/user/build-configuration/
|
|
# This file can be validated on: http://lint.travis-ci.org/
|
|
|
|
language: cpp
|
|
dist: bionic
|
|
osx_image: xcode10.3
|
|
|
|
compiler:
|
|
- gcc
|
|
- clang
|
|
os:
|
|
- linux
|
|
- osx
|
|
|
|
env:
|
|
- BUILD_TYPE=Debug
|
|
- BUILD_TYPE=RelWithDebInfo
|
|
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- sourceline: 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-9 main'
|
|
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
|
|
- sourceline: 'ppa:ubuntu-toolchain-r/test'
|
|
packages:
|
|
- clang-9
|
|
- cmake
|
|
- gcc-9
|
|
- g++-9
|
|
- libgoogle-perftools-dev
|
|
- libkyotocabinet-dev
|
|
- libsnappy-dev
|
|
- libsqlite3-dev
|
|
- ninja-build
|
|
homebrew:
|
|
packages:
|
|
- cmake
|
|
- crc32c
|
|
- gcc@9
|
|
- gperftools
|
|
- kyoto-cabinet
|
|
- llvm@9
|
|
- ninja
|
|
- snappy
|
|
- sqlite3
|
|
update: true
|
|
|
|
install:
|
|
# The following Homebrew packages aren't linked by default, and need to be
|
|
# prepended to the path explicitly.
|
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
|
|
export PATH="$(brew --prefix llvm)/bin:$PATH";
|
|
fi
|
|
# /usr/bin/gcc points to an older compiler on both Linux and macOS.
|
|
- if [ "$CXX" = "g++" ]; then export CXX="g++-9" CC="gcc-9"; fi
|
|
# /usr/bin/clang points to an older compiler on both Linux and macOS.
|
|
#
|
|
# Homebrew's llvm package doesn't ship a versioned clang++ binary, so the values
|
|
# below don't work on macOS. Fortunately, the path change above makes the
|
|
# default values (clang and clang++) resolve to the correct compiler on macOS.
|
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
|
|
if [ "$CXX" = "clang++" ]; then export CXX="clang++-9" CC="clang-9"; fi;
|
|
fi
|
|
- echo ${CC}
|
|
- echo ${CXX}
|
|
- ${CXX} --version
|
|
- cmake --version
|
|
|
|
before_script:
|
|
- mkdir -p build && cd build
|
|
- cmake .. -G Ninja -DCMAKE_BUILD_TYPE=$BUILD_TYPE
|
|
-DCMAKE_INSTALL_PREFIX=$HOME/.local
|
|
- cmake --build .
|
|
- cd ..
|
|
|
|
script:
|
|
- cd build && ctest --verbose && cd ..
|
|
- "if [ -f build/db_bench ] ; then build/db_bench ; fi"
|
|
- "if [ -f build/db_bench_sqlite3 ] ; then build/db_bench_sqlite3 ; fi"
|
|
- "if [ -f build/db_bench_tree_db ] ; then build/db_bench_tree_db ; fi"
|
|
- cd build && cmake --build . --target install
|