40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
language: c # or other C/C++ variants
|
|
|
|
# https://docs.travis-ci.com/user/caching/
|
|
cache:
|
|
directories:
|
|
- rocksdb
|
|
|
|
git:
|
|
depth: 1
|
|
submodules_depth: 1
|
|
|
|
matrix:
|
|
include:
|
|
- os: linux
|
|
sudo: required
|
|
before_install:
|
|
- export INSTALL_PATH=/usr
|
|
- export NPROC=$(nproc)
|
|
- os: osx
|
|
before_install:
|
|
- export INSTALL_PATH=$HOME # included in DYLD_FALLBACK_LIBRARY_PATH
|
|
- export NPROC=$(sysctl -n hw.ncpu)
|
|
|
|
install:
|
|
# build our own rocksdb to test with a fixed version that we think works
|
|
- "export ROCKSDBVER=5.14.2"
|
|
- "[ -f rocksdb/rocksdb-$ROCKSDBVER/Makefile ] || { rm -rf rocksdb ; mkdir -p rocksdb; cd rocksdb; wget https://github.com/facebook/rocksdb/archive/v$ROCKSDBVER.tar.gz && tar xvf v$ROCKSDBVER.tar.gz; cd ..; }"
|
|
- cd rocksdb/rocksdb-$ROCKSDBVER
|
|
- "[ -f util/build_version.cc ] || { make util/build_version.cc ; }" # use cached version if possible
|
|
- export NO_UPDATE_BUILD_VERSION=1
|
|
- make -j${NPROC} shared_lib && sudo make install-shared
|
|
- cd ../..
|
|
|
|
script:
|
|
- set -e # fail fast
|
|
- make -j${NPROC} nimbus
|
|
- ./build/nimbus --help
|
|
- make -j${NPROC} test
|
|
|