-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
72 lines (62 loc) · 1.66 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
63
64
65
66
67
68
69
70
71
72
language: c
python:
- "2.7"
sudo: false
env:
matrix:
- LUA="lua 5.1"
- LUA="lua 5.2"
- LUA="lua 5.3"
- LUA="lua 5.4"
- LUA="luajit 2.0"
- LUA="luajit 2.1"
cache:
directories:
- here
- libuv
- $HOME/.cache/pip
branches:
only:
- master
before_install:
- pip install --user hererocks
- hererocks here -r^ --$LUA
- export PATH=$PATH:$PWD/here/bin
- luarocks show lluv > /dev/null 2>&1 || bash .travis/setup_uv.sh
install:
- luarocks make rockspecs/lluv-scm-0.rockspec UV_DIR=$TRAVIS_BUILD_DIR/libuv
before_script:
- luarocks show lunitx > /dev/null 2>&1 || luarocks install lunitx
- luarocks show luafilesystem > /dev/null 2>&1 || luarocks install luafilesystem
- luarocks show lua-path > /dev/null 2>&1 || luarocks install lua-path
- luarocks show vararg-lua > /dev/null 2>&1 || luarocks install vararg-lua
- luarocks show luasocket > /dev/null 2>&1 || luarocks install luasocket
script:
- cd test
- lua test-close.lua
- lua test-active.lua
- lua test-multi-write.lua
- lua test-spawn.lua
- lua test-gc-basic.lua
- lua test-gc-timer.lua
- lua test-gc-tcp.lua
- lua test-data.lua
- lua test-udp-send-ctx.lua
- lua test-udp-connect.lua
- lua test-os-handle.lua
- lua test-os-socket.lua
- lua test-gettimeofday.lua
- lua test-env.lua
- lua test-error-handler.lua
- lua -e"require'lluv.utils'.self_test()"
- lunit.sh test-fs.lua
- lunit.sh test-defer-error.lua
- cd ./luasocket
- lua testsrvr.lua > /dev/null &
- lua corun.lua testclnt.lua
- lua ts.lua > /dev/null &
- lua defer_error.lua
notifications:
email:
on_success: change
on_failure: always