-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
60 lines (49 loc) · 1.28 KB
/
.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
language: c
python:
- "2.7"
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="luajit 2.0"
os: linux
- env: LUA="luajit 2.1"
os: linux
cache:
directories:
- here
- $HOME/.cache/pip
branches:
only:
- master
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 optional deps
- luarocks show lpeg > /dev/null 2>&1 || luarocks install lpeg
install:
- luarocks make rockspecs/lua-websockets-extensions-scm-0.rockspec
before_script:
- luarocks show luacheck > /dev/null 2>&1 || luarocks install luacheck
- luarocks show lunitx > /dev/null 2>&1 || luarocks install lunitx
- luarocks show lua-curl > /dev/null 2>&1 || luarocks install lua-curl
- luarocks show luacov-coveralls > /dev/null 2>&1 || luarocks install luacov-coveralls
script:
- cd test
- lunit.sh test_extensions.lua
- luacheck ../src
after_success:
- luacov-coveralls -v
notifications:
email:
on_success: change
on_failure: always