2018-08-21 16:30:35 +00:00
|
|
|
language: c # or other C/C++ variants
|
|
|
|
|
|
|
|
cache: ccache
|
|
|
|
|
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
|
2018-08-21 16:30:35 +00:00
|
|
|
cache: ccache
|
2018-04-11 13:27:56 +00:00
|
|
|
sudo: required
|
|
|
|
before_install:
|
2018-08-21 16:46:10 +00:00
|
|
|
- sudo apt-get install -y libssl-dev libgflags-dev libsnappy-dev
|
|
|
|
- git clone https://github.com/facebook/rocksdb.git
|
|
|
|
- cd rocksdb && make shared_lib && sudo make install && cd ..
|
2018-08-21 16:30:35 +00:00
|
|
|
- git clone https://github.com/status-im/nim.git
|
|
|
|
- cd nim
|
|
|
|
- sh build_all.sh
|
|
|
|
- cd ..
|
|
|
|
- export PATH=$PWD/nim/bin:$PATH
|
2018-04-11 13:27:56 +00:00
|
|
|
script:
|
2018-08-21 16:30:35 +00:00
|
|
|
- nimble install -dy && nimble test
|
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
|
|
|
|
|
2018-08-21 16:30:35 +00:00
|
|
|
- git clone https://github.com/status-im/nim.git
|
2018-04-11 13:27:56 +00:00
|
|
|
- cd nim
|
2018-08-21 16:30:35 +00:00
|
|
|
- sh build_all.sh
|
2018-04-11 13:27:56 +00:00
|
|
|
- cd ..
|
2018-08-21 16:30:35 +00:00
|
|
|
- export PATH=$PWD/nim/bin:$PATH
|
|
|
|
|
2018-04-11 13:27:56 +00:00
|
|
|
|
|
|
|
script:
|
|
|
|
- nimble install -dy && nimble test
|