nimbus-eth2/.travis.yml

48 lines
1.3 KiB
YAML
Raw Normal View History

language: go
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-06-17 12:50:44 +00:00
- rocksdbCache
- jsonTestsCache
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
go:
- "1.12.x"
2019-01-14 12:33:09 +00:00
matrix:
include:
- os: linux
sudo: required
before_install:
2019-06-17 12:50:44 +00:00
- export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib"
2019-01-14 12:33:09 +00:00
- os: osx
before_install:
2019-06-17 12:50:44 +00:00
- launchctl setenv LIBRARY_PATH /usr/local/lib # for RocksDB
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
2019-06-17 12:50:44 +00:00
- env MAKE="make -j2" bash build_nim.sh Nim csources dist/nimble NimBinaries
2019-06-12 16:15:15 +00:00
- 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
2019-06-17 12:50:44 +00:00
- curl -O -L -s -S https://raw.githubusercontent.com/status-im/nimbus/devel/build_rocksdb.sh
- bash build_rocksdb.sh rocksdbCache
2019-01-14 12:33:09 +00:00
# LFS test fixtures
- scripts/process_lfs.sh jsonTestsCache
2018-09-05 02:33:39 +00:00
script:
- nimble install -y --depsOnly
2018-09-05 02:33:39 +00:00
- nimble test