2018-02-04 01:05:35 +01:00
|
|
|
language: c
|
|
|
|
|
2019-06-18 17:27:18 +02:00
|
|
|
# https://docs.travis-ci.com/user/caching/
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- NimBinaries
|
|
|
|
- rocksdbCache
|
|
|
|
|
|
|
|
git:
|
|
|
|
# when multiple CI builds are queued, the tested commit needs to be in the last X commits cloned with "--depth X"
|
|
|
|
depth: 10
|
2018-02-04 01:05:35 +01:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
# Build and test using both gcc and clang
|
|
|
|
# For faster testing we don't test clang on linux, only on macOS
|
|
|
|
- os: linux
|
|
|
|
compiler: gcc
|
2018-02-04 02:10:08 +01:00
|
|
|
sudo: required
|
|
|
|
before_install:
|
2019-06-18 17:27:18 +02:00
|
|
|
- export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib"
|
2019-01-19 23:21:54 +01:00
|
|
|
- os: osx
|
|
|
|
compiler: clang
|
2019-06-18 17:27:18 +02:00
|
|
|
before_install:
|
|
|
|
- launchctl setenv LIBRARY_PATH /usr/local/lib # for RocksDB
|
2018-02-04 01:05:35 +01:00
|
|
|
|
|
|
|
install:
|
2019-06-18 17:27:18 +02:00
|
|
|
# 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-08-24 05:01:23 +02:00
|
|
|
- curl -O -L -s -S https://raw.githubusercontent.com/status-im/nimbus-build-system/master/scripts/build_nim.sh
|
2019-06-18 17:27:18 +02:00
|
|
|
- env MAKE="make -j2" bash build_nim.sh Nim csources dist/nimble NimBinaries
|
|
|
|
- export PATH=$PWD/Nim/bin:$PATH
|
2018-02-04 01:05:35 +01:00
|
|
|
|
2019-06-18 17:27:18 +02:00
|
|
|
# build our own rocksdb to test with a fixed version that we think works
|
2019-08-24 05:01:23 +02:00
|
|
|
- curl -O -L -s -S https://raw.githubusercontent.com/status-im/nimbus-build-system/master/scripts/build_rocksdb.sh
|
2019-06-18 17:27:18 +02:00
|
|
|
- bash build_rocksdb.sh rocksdbCache
|
2018-02-05 22:19:33 +01:00
|
|
|
|
2019-06-18 17:27:18 +02:00
|
|
|
script:
|
|
|
|
- nimble install -y
|
|
|
|
- nimble test
|
2018-02-04 01:05:35 +01:00
|
|
|
|
|
|
|
branches:
|
|
|
|
except:
|
|
|
|
- gh-pages
|