auto test

This commit is contained in:
Xie Yanbo 2019-11-16 21:16:14 +08:00
parent 1f9726293b
commit dc9821c0b8
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.}