mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-02 09:46:26 +00:00
Merge branch 'rocksdb'
This commit is contained in:
commit
7293c6a420
19
.travis.yml
19
.travis.yml
@ -4,7 +4,7 @@ language: c
|
|||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- NimBinaries
|
- NimBinaries
|
||||||
- rocksdb
|
- rocksdbCache
|
||||||
|
|
||||||
git:
|
git:
|
||||||
# when multiple CI builds are queued, the tested commit needs to be in the last X commits cloned with "--depth X"
|
# when multiple CI builds are queued, the tested commit needs to be in the last X commits cloned with "--depth X"
|
||||||
@ -17,29 +17,22 @@ matrix:
|
|||||||
- os: linux
|
- os: linux
|
||||||
sudo: required
|
sudo: required
|
||||||
before_install:
|
before_install:
|
||||||
- export INSTALL_PATH=/usr
|
- export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib"
|
||||||
- export NPROC=$(nproc)
|
|
||||||
- os: osx
|
- os: osx
|
||||||
before_install:
|
before_install:
|
||||||
- export INSTALL_PATH=$HOME # included in DYLD_FALLBACK_LIBRARY_PATH
|
- launchctl setenv LIBRARY_PATH /usr/local/lib # for RocksDB
|
||||||
- export NPROC=$(sysctl -n hw.ncpu)
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
# build nim from our own branch - this to avoid the day-to-day churn and
|
# 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
|
# regressions of the fast-paced Nim development while maintaining the
|
||||||
# flexibility to apply patches
|
# flexibility to apply patches
|
||||||
- curl -O -L -s -S https://raw.githubusercontent.com/status-im/nimbus/devel/build_nim.sh
|
- 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
|
- env MAKE="make -j2" bash build_nim.sh Nim csources dist/nimble NimBinaries
|
||||||
- export PATH=$PWD/Nim/bin:$PATH
|
- export PATH=$PWD/Nim/bin:$PATH
|
||||||
|
|
||||||
# build our own rocksdb to test with a fixed version that we think works
|
# build our own rocksdb to test with a fixed version that we think works
|
||||||
- "export ROCKSDBVER=5.14.2"
|
- curl -O -L -s -S https://raw.githubusercontent.com/status-im/nimbus/devel/build_rocksdb.sh
|
||||||
- "[ -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 ..; }"
|
- bash build_rocksdb.sh rocksdbCache
|
||||||
- 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 ../..
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- nimble install -y
|
- nimble install -y
|
||||||
|
Loading…
x
Reference in New Issue
Block a user