forked from spotify/annoy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
37 lines (34 loc) · 1.05 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
[tox]
envlist=py{26,27,33,34,35,36}, go, lua
[testenv]
setenv =
TRAVIS = {env:TRAVIS:}
commands =
pip install numpy
pip install .
python setup.py nosetests
[testenv:go]
setenv =
GOPATH = {env:HOME:}/gopath
GOROOT = /usr/local/go
whitelist_externals=*
commands =
mkdir -p {env:GOPATH:}/src/annoyindex
wget https://storage.googleapis.com/golang/go1.5.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.5.linux-amd64.tar.gz
sudo add-apt-repository -y ppa:rosmo/swig3.0.7
sudo apt-get update -qq
sudo apt-get install -y swig3.0
swig3.0 -go -intgosize 64 -cgo -c++ src/annoygomodule.i
cp src/annoygomodule_wrap.cxx src/annoyindex.go src/annoygomodule.h src/annoylib.h src/kissrandom.h {env:GOPATH:}/src/annoyindex
{env:GOROOT}/bin/go build annoyindex
[testenv:lua]
setenv =
HOME = {env:HOME}
whitelist_externals=*
commands =
pip install hererocks
hererocks {toxworkdir}/here --{env:LUA:} --luarocks 2.2
{toxworkdir}/here/bin/luarocks make
{toxworkdir}/here/bin/luarocks install busted
{toxworkdir}/here/bin/busted test/annoy_test.lua