-
Notifications
You must be signed in to change notification settings - Fork 137
/
.travis.yml
47 lines (38 loc) · 1.04 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
language: c
sudo: false
os: linux
env:
matrix:
- LUA=lua5.1 LUANUMBER=double
- LUA=lua5.1 LUANUMBER=float
- LUA=lua5.2 LUANUMBER=double
- LUA=lua5.2 LUANUMBER=float
- LUA=lua5.3 LUANUMBER=double
- LUA=lua5.3 LUANUMBER=float
- LUA=lua5.4 LUANUMBER=double
- LUA=luajit2.0
- LUA=luajit2.1
matrix:
# test Mac OS X, but limit it to a single build
include:
- os: osx
env: LUA=lua5.1 LUANUMBER=double
allow_failures:
- os: osx
env: LUA=lua5.1 LUANUMBER=double
before_install:
- source .travis/setup_lua.sh
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y libxml2-utils; fi
cache:
directories:
- $TRAVIS_BUILD_DIR/install
script:
- lua -v -lluacov run_unit_tests.lua --shuffle
- lua run_functional_tests.lua --coverage
- luacheck example_with_luaunit.lua luaunit.lua run_unit_tests.lua run_functional_tests.lua test/
after_success:
- luacov-coveralls -v --include %./luaunit.lua
notifications:
email:
on_success: change
on_failure: always