mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-02-09 10:44:48 +00:00
travis: simplify script
This commit is contained in:
parent
5de3fc761c
commit
fcbd10e6f7
29
.travis.yml
29
.travis.yml
@ -1,27 +1,30 @@
|
|||||||
language: c # or other C/C++ variants
|
language: c # or other C/C++ variants
|
||||||
|
|
||||||
|
# https://docs.travis-ci.com/user/caching/#ccache-cache
|
||||||
cache: ccache
|
cache: ccache
|
||||||
|
|
||||||
|
install:
|
||||||
|
- git clone https://github.com/status-im/nim.git
|
||||||
|
- cd nim
|
||||||
|
- sh build_all.sh
|
||||||
|
- cd ..
|
||||||
|
- export PATH=$PWD/nim/bin:$PATH
|
||||||
|
|
||||||
|
script:
|
||||||
|
- nimble install -dy && nimble test
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
# allow_failures:
|
# allow_failures:
|
||||||
# - os: osx
|
# - os: osx
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- os: linux
|
- os: linux
|
||||||
cache: ccache
|
|
||||||
sudo: required
|
sudo: required
|
||||||
before_install:
|
before_install:
|
||||||
- sudo apt-get install -y libssl-dev libgflags-dev libsnappy-dev
|
- sudo apt-get install -y libssl-dev libgflags-dev libsnappy-dev
|
||||||
- git clone https://github.com/facebook/rocksdb.git
|
- git clone https://github.com/facebook/rocksdb.git
|
||||||
# rocksdb not present on trusty - on a newer ubuntu you can apt-get install -y librocksdb-dev
|
# rocksdb not present on trusty - on a newer ubuntu you can apt-get install -y librocksdb-dev
|
||||||
- cd rocksdb && git checkout v5.14.2 && make shared_lib -j$(nproc) && sudo make INSTALL_PATH=/usr install-shared && cd ..
|
- cd rocksdb && git checkout v5.14.2 && make shared_lib -j$(nproc) && sudo make INSTALL_PATH=/usr install-shared && cd ..
|
||||||
- git clone https://github.com/status-im/nim.git
|
|
||||||
- cd nim
|
|
||||||
- sh build_all.sh
|
|
||||||
- cd ..
|
|
||||||
- export PATH=$PWD/nim/bin:$PATH
|
|
||||||
script:
|
|
||||||
- nimble install -dy && nimble test
|
|
||||||
|
|
||||||
- os: osx
|
- os: osx
|
||||||
before_install:
|
before_install:
|
||||||
@ -29,13 +32,3 @@ matrix:
|
|||||||
- brew install rocksdb ccache
|
- brew install rocksdb ccache
|
||||||
- export PATH="/usr/local/opt/ccache/libexec:$PATH"
|
- export PATH="/usr/local/opt/ccache/libexec:$PATH"
|
||||||
# - brew install gcc
|
# - brew install gcc
|
||||||
|
|
||||||
- git clone https://github.com/status-im/nim.git
|
|
||||||
- cd nim
|
|
||||||
- sh build_all.sh
|
|
||||||
- cd ..
|
|
||||||
- export PATH=$PWD/nim/bin:$PATH
|
|
||||||
|
|
||||||
|
|
||||||
script:
|
|
||||||
- nimble install -dy && nimble test
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user