nimbus-eth2/.travis.yml

47 lines
1.6 KiB
YAML
Raw Normal View History

2019-06-12 16:15:15 +00:00
language: c
2018-07-20 13:46:03 +00:00
2018-09-05 02:33:39 +00:00
# https://docs.travis-ci.com/user/caching/
cache:
directories:
2019-06-12 16:15:15 +00:00
- NimBinaries
2019-01-14 12:33:09 +00:00
- rocksdb
2018-07-20 13:46:03 +00:00
2019-06-12 16:15:15 +00:00
git:
# when multiple CI builds are queued, the tested commit needs to be in the last X commits cloned with "--depth X"
depth: 10
# disable LFS file downloading during regular cloning
lfs_skip_smudge: true
2019-01-14 12:33:09 +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-07-20 13:46:03 +00:00
2018-09-05 02:33:39 +00:00
install:
# build nim from our own branch - this to avoid the day-to-day churn and
# regressions of the fast-paced Nim development while maintaining the
# flexibility to apply patches
2019-06-12 16:15:15 +00:00
- curl -O -L -s -S https://raw.githubusercontent.com/status-im/nimbus/devel/build_nim.sh
- env MAKE="make -j$NPROC" bash build_nim.sh Nim csources dist/nimble NimBinaries
- export PATH=$PWD/Nim/bin:$PATH
2018-09-05 02:33:39 +00:00
2019-01-14 12:33:09 +00:00
# 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 shared_lib -j$NPROC && sudo make install-shared
- cd ../..
2018-09-05 02:33:39 +00:00
script:
- nimble install -y
- nimble test