Merge pull request #8 from xyb/ci

auto test
This commit is contained in:
Michał Zieliński 2019-11-17 11:15:23 +01:00 committed by GitHub
commit 9537076a49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 37 additions and 1 deletions

36
.travis.yml Normal file
View File

@ -0,0 +1,36 @@
dist: bionic
sudo: false
language: c
cache:
directories:
- "$HOME/.nimble"
- "$HOME/.choosenim"
addons:
apt:
packages:
- libsnappy1v5
matrix:
fast_finish: true
include:
- os: linux
env: CHANNEL=stable
install:
- |
wget http://ftp.us.debian.org/debian/pool/main/l/leveldb/libleveldb1d_1.22-3_amd64.deb
wget http://ftp.us.debian.org/debian/pool/main/l/leveldb/libleveldb-dev_1.22-3_amd64.deb
sudo dpkg -i *.deb
- |
curl https://nim-lang.org/choosenim/init.sh -sSf > init.sh
sh init.sh -y
- export CHOOSENIM_NO_ANALYTICS=1
- export PATH=$HOME/.nimble/bin:$PATH
- echo "export PATH=~/.nimble/bin:$PATH" >> ~/.profile
- yes | choosenim $CHANNEL
script:
- nimble test

View File

@ -13,7 +13,7 @@ const
levelDbTrue = uint8(1)
levelDbFalse = uint8(0)
version = "0.3.0"
version* = "0.3.0"
proc free(p: pointer) {.importc.}