mirror of
https://github.com/status-im/nim-rocksdb.git
synced 2025-02-20 02:49:01 +00:00
Add Travis CI
This commit is contained in:
parent
01077e71a0
commit
130cc07f84
53
.travis.yml
Normal file
53
.travis.yml
Normal file
@ -0,0 +1,53 @@
|
||||
language: c
|
||||
|
||||
cache: ccache
|
||||
|
||||
matrix:
|
||||
include:
|
||||
# Build and test against the master (stable) and devel branches of Nim
|
||||
# Build and test using both gcc and clang
|
||||
# For faster testing we don't test clang on linux, only on macOS
|
||||
- os: linux
|
||||
env: CHANNEL=stable
|
||||
compiler: gcc
|
||||
|
||||
- os: linux
|
||||
env: CHANNEL=devel
|
||||
compiler: gcc
|
||||
|
||||
- os: osx
|
||||
env: CHANNEL=stable
|
||||
compiler: clang
|
||||
|
||||
allow_failures:
|
||||
# Ignore failures when building against the devel Nim branch
|
||||
# Also ignore OSX, due to very long build time for Travis
|
||||
- env: CHANNEL=devel
|
||||
- os: osx
|
||||
fast_finish: true
|
||||
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- librocksdb-dev
|
||||
|
||||
before_install:
|
||||
# MacOS only
|
||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
|
||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install homebrew/rocksdb; fi
|
||||
|
||||
install:
|
||||
- export CHOOSENIM_NO_ANALYTICS=1
|
||||
- curl https://nim-lang.org/choosenim/init.sh -sSf > init.sh
|
||||
- sh init.sh -y
|
||||
- export PATH=~/.nimble/bin:$PATH
|
||||
- echo "export PATH=~/.nimble/bin:$PATH" >> ~/.profile
|
||||
- choosenim $CHANNEL
|
||||
|
||||
script:
|
||||
- nimble refresh
|
||||
- nimble test_c
|
||||
|
||||
branches:
|
||||
except:
|
||||
- gh-pages
|
Loading…
x
Reference in New Issue
Block a user