2018-08-21 16:30:35 +00:00
|
|
|
language: c # or other C/C++ variants
|
|
|
|
|
2018-08-21 19:13:35 +00:00
|
|
|
# https://docs.travis-ci.com/user/caching/#ccache-cache
|
2018-08-21 20:12:23 +00:00
|
|
|
cache:
|
|
|
|
ccache: true
|
|
|
|
directories:
|
|
|
|
- rocksdb-5.14.2
|
2018-08-26 15:22:29 +00:00
|
|
|
- nim
|
2018-08-21 16:30:35 +00:00
|
|
|
|
2018-08-21 19:13:35 +00:00
|
|
|
install:
|
2018-08-26 20:56:52 +00:00
|
|
|
- export NIMVER=$(git ls-remote https://github.com/status-im/nim.git HEAD | cut -f 1)
|
2018-08-27 03:51:23 +00:00
|
|
|
- "{ [ -f nim/$NIMVER/bin/nim ] && [ -f nim/$NIMVER/bin/nimble ] ; } || { rm -rf nim ; mkdir -p nim; git clone https://github.com/status-im/nim.git nim/$NIMVER; cd nim/$NIMVER; sh build_all.sh; cd ../.. ; }"
|
2018-08-26 15:22:29 +00:00
|
|
|
- export PATH=$PWD/nim/$NIMVER/bin:$PATH
|
2018-08-21 19:13:35 +00:00
|
|
|
|
|
|
|
script:
|
|
|
|
- nimble install -dy && nimble test
|
|
|
|
|
2018-04-11 13:27:56 +00:00
|
|
|
matrix:
|
2018-04-12 10:34:20 +00:00
|
|
|
# allow_failures:
|
|
|
|
# - os: osx
|
2018-04-11 13:27:56 +00:00
|
|
|
|
|
|
|
include:
|
|
|
|
- os: linux
|
|
|
|
sudo: required
|
|
|
|
before_install:
|
2018-08-21 16:46:10 +00:00
|
|
|
- sudo apt-get install -y libssl-dev libgflags-dev libsnappy-dev
|
2018-08-21 20:15:26 +00:00
|
|
|
- "[ -f rocksdb-5.14.2/Makefile ] || { wget https://github.com/facebook/rocksdb/archive/v5.14.2.tar.gz && tar xvf v5.14.2.tar.gz; }"
|
2018-08-21 17:54:42 +00:00
|
|
|
# rocksdb not present on trusty - on a newer ubuntu you can apt-get install -y librocksdb-dev
|
2018-08-21 19:35:40 +00:00
|
|
|
- cd rocksdb-5.14.2 && make shared_lib -j$(nproc) && sudo make INSTALL_PATH=/usr install-shared && cd ..
|
2018-04-11 13:27:56 +00:00
|
|
|
|
|
|
|
- os: osx
|
|
|
|
before_install:
|
2018-06-24 14:34:32 +00:00
|
|
|
- brew update
|
2018-08-21 16:30:35 +00:00
|
|
|
- brew install rocksdb ccache
|
|
|
|
- export PATH="/usr/local/opt/ccache/libexec:$PATH"
|
2018-04-11 14:56:24 +00:00
|
|
|
# - brew install gcc
|