-
Notifications
You must be signed in to change notification settings - Fork 38
/
.travis.yml
44 lines (36 loc) · 939 Bytes
/
.travis.yml
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
38
39
40
41
42
43
44
language: c
sudo: required
env:
global:
- LUAROCKS=2.2.2
matrix:
- LUA=lua5.1
- LUA=lua5.2
- LUA=lua5.3
- LUA=luajit # latest stable version (2.0.4)
- LUA=luajit2.0 # current head of 2.0 branch
# - LUA=luajit2.1 # current head of 2.1 branch
before_install:
- sudo apt-get update && sudo apt-get install wget -y
- .travis/install_es.sh
- source .travis/setenv_lua.sh
- luarocks install lunitx
- luarocks install luacov
- luarocks install luacov-coveralls
install:
- luarocks make rockspecs/elasticsearch-1.0.1-1.rockspec
before_script:
- echo 'elasticsearch version ' && curl http://localhost:9200/
script:
- cd tests
- ./dataset/download-dataset.sh
- lua -lluacov run-tests.lua
after_success:
- mv luacov.stats.out ../
- cd ../
- luacov-coveralls -c tests/.luacov
- tests/run-stress-test.sh
notifications:
email:
on_success: change
on_failure: always