nimbus-eth1/.travis.yml

42 lines
1.3 KiB
YAML
Raw Normal View History

2018-08-21 16:30:35 +00:00
language: c # or other C/C++ variants
2018-08-31 19:42:06 +00:00
# https://docs.travis-ci.com/user/caching/
2018-08-21 20:12:23 +00:00
cache:
directories:
2018-08-31 19:42:06 +00:00
- rocksdb
2018-08-21 16:30:35 +00:00
2019-02-15 22:37:10 +00:00
git:
2019-02-15 23:56:13 +00:00
# when multiple CI builds are queued, the tested commit needs to be in the last X commits cloned with "--depth X"
depth: 10
2019-02-15 22:37:10 +00:00
2018-09-05 03:01:33 +00:00
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)
2018-08-21 19:13:35 +00:00
install:
2018-08-30 19:56:09 +00:00
# build our own rocksdb to test with a fixed version that we think works
2018-08-31 19:42:06 +00:00
- "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
2018-08-30 19:56:09 +00:00
- "[ -f util/build_version.cc ] || { make util/build_version.cc ; }" # use cached version if possible
- export NO_UPDATE_BUILD_VERSION=1
2019-02-15 22:37:10 +00:00
- make -j${NPROC} shared_lib && sudo make install-shared
2018-08-31 19:42:06 +00:00
- cd ../..
2018-08-21 19:13:35 +00:00
script:
2019-02-15 22:37:10 +00:00
- set -e # fail fast
- make -j${NPROC} V=0
- ./build/nimbus --help
- make -j${NPROC} V=0 NIMFLAGS="-d:release" test
- make -j${NPROC} V=0 test-reproducibility
- make -C vendor/nim-beacon-chain -j${NPROC} V=0 test
2019-02-15 22:37:10 +00:00