/
.travis.yml
46 lines (38 loc) · 986 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
45
46
language: c
sudo: false
matrix:
include:
- env: LUA="lua 5.1"
os: osx
- env: LUA="lua 5.1"
os: linux
- env: LUA="lua 5.2"
os: linux
- env: LUA="lua 5.3"
os: linux
- env: LUA="lua 5.4"
os: linux
- env: LUA="luajit 2.0"
os: linux
- env: LUA="luajit 2.1"
os: linux
cache:
directories:
- here
- $HOME/.cache/pip
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PATH=$PATH:~/Library/Python/2.7/bin/; fi
- pip install --user hererocks
- hererocks here -r^ --$LUA
- source here/bin/activate
install:
- luarocks make lua-http-parser-2.7-1.rockspec
before_script:
- luarocks show luacov-coveralls > /dev/null 2>&1 || luarocks install luacov-coveralls
- luarocks show luasocket > /dev/null 2>&1 || luarocks install luasocket
script:
- lua test.lua
- lua bench.lua
before_cache:
- luarocks remove lua-http-parser
- rm -f /home/travis/.cache/pip/log/debug.log