forked from sailorproject/sailor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
62 lines (52 loc) · 1.81 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
61
62
language: c
sudo: false
addons:
apt:
packages:
- libmysqlclient-dev
- libpq-dev
services:
- mysql
- postgresql
env:
global:
- LUAROCKS=2.2.2
matrix:
# Lua 5.1 on different DBs
- LUA=lua5.1 DB_DRIVER=mysql DB_USER=travis DB_NAME=sailor_test
- LUA=lua5.1 DB_DRIVER=postgres DB_USER=postgres DB_NAME=sailor_test
- LUA=lua5.1 DB_DRIVER=sqlite3 DB_USER="" DB_NAME=$TRAVIS_BUILD_DIR/sailor_test
# Lua 5.2 on different DBs
- LUA=lua5.2 DB_DRIVER=mysql DB_USER=travis DB_NAME=sailor_test
- LUA=lua5.2 DB_DRIVER=postgres DB_USER=postgres DB_NAME=sailor_test
- LUA=lua5.2 DB_DRIVER=sqlite3 DB_USER="" DB_NAME=$TRAVIS_BUILD_DIR/sailor_test
# LuaJIT latest stable version (2.0.4) on different DBs
- LUA=luajit DB_DRIVER=mysql DB_USER=travis DB_NAME=sailor_test
- LUA=luajit DB_DRIVER=postgres DB_USER=postgres DB_NAME=sailor_test
- LUA=luajit DB_DRIVER=sqlite3 DB_USER="" DB_NAME=$TRAVIS_BUILD_DIR/sailor_test
# Openresty + LuaJIT + mysql
- LUA=luajit SERVER=openresty DB_DRIVER=mysql DB_USER=travis DB_NAME=sailor_test
# - LUA=luajit2.0 # current head of 2.0 branch
# - LUA=luajit2.1 # current head of 2.1 branch
# Not supported
# - LUA=lua5.2
before_install:
- source .travis/setenv_lua.sh
install:
- luarocks install luacov
- luarocks install luacov-coveralls
- luarocks make rockspecs/sailor-current-1.rockspec
before_script:
- source .travis/setdatabases.sh
script:
- cd test/dev-app
- if [ "$SERVER" != "openresty" ]; then sailor test -- --verbose --coverage; fi
- if [ "$SERVER" == "openresty" ]; then sailor test --resty; fi
after_success:
- mv luacov.stats.out ../..
- cd ../..
- luacov-coveralls -c test/dev-app/.luacov
notifications:
email:
on_success: change
on_failure: always