mirror of
https://github.com/logos-storage/nim-leveldb.git
synced 2026-01-05 15:13:11 +00:00
commit
9537076a49
36
.travis.yml
Normal file
36
.travis.yml
Normal 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
|
||||
@ -13,7 +13,7 @@ const
|
||||
levelDbTrue = uint8(1)
|
||||
levelDbFalse = uint8(0)
|
||||
|
||||
version = "0.3.0"
|
||||
version* = "0.3.0"
|
||||
|
||||
proc free(p: pointer) {.importc.}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user