99
1010matrix :
1111 include :
12- - compiler : " : Lua51-osx"
13- env : LUA="lua 5.1"
12+ - env : LUA="lua 5.1"
1413 os : osx
15- - compiler : " : Lua51"
16- env : LUA="lua 5.1"
14+ - env : LUA="lua 5.1"
1715 os : linux
18- - compiler : " : Lua52"
19- env : LUA="lua 5.2"
16+ - env : LUA="lua 5.2"
2017 os : linux
21- - compiler : " : Lua53"
22- env : LUA="lua 5.3"
18+ - env : LUA="lua 5.3"
2319 os : linux
24- - compiler : " : LuaJIT20"
25- env : LUA="luajit 2.0"
20+ - env : LUA="luajit 2.0"
2621 os : linux
27- - compiler : " : LuaJIT21"
28- env : LUA="luajit 2.1"
22+ - env : LUA="luajit 2.1"
2923 os : linux
3024
3125cache :
@@ -36,25 +30,35 @@ cache:
3630branches :
3731 only :
3832 - master
33+ - curl_mime
3934
4035before_install :
41- - export CC=gcc
42- - gcc --version
4336 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PATH=$PATH:~/Library/Python/2.7/bin/; fi
4437 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export LCURL_LD_FLAGS="-bundle -undefined dynamic_lookup -all_load --coverage"; fi
45- - pip install --user cpp-coveralls
46- - pip install --user hererocks
38+ - pip2 install --user cpp-coveralls
39+ - pip2 install --user hererocks
4740 - hererocks here -r^ --$LUA
4841 - source here/bin/activate
42+ - luarocks show lluv > /dev/null 2>&1 || bash .travis/setup_uv.sh
4943
5044install :
5145 - luarocks make rockspecs/lua-curl-scm-0.rockspec CFLAGS="$LCURL_CC_FLAGS" LIBFLAG="$LCURL_LD_FLAGS"
5246
5347before_script :
5448 - luarocks show luacov-coveralls > /dev/null 2>&1 || luarocks install luacov-coveralls
55- - luarocks show lunitx > /dev/null 2>&1 || luarocks install lunitx
56- - luarocks show luafilesystem > /dev/null 2>&1 || luarocks install luafilesystem
57- - luarocks show dkjson > /dev/null 2>&1 || luarocks install dkjson --deps-mode=none
49+ - luarocks show lunitx > /dev/null 2>&1 || luarocks install lunitx
50+ - luarocks show luafilesystem > /dev/null 2>&1 || luarocks install luafilesystem
51+ - luarocks show dkjson > /dev/null 2>&1 || luarocks install dkjson --deps-mode=none
52+ - luarocks show pegasus > /dev/null 2>&1 || luarocks install pegasus http.parser
53+ --server=http://luarocks.org/manifests/moteus
54+ - luarocks show pegasus-router > /dev/null 2>&1 || luarocks install pegasus-router
55+ --server=http://luarocks.org/dev
56+ - luarocks show lluv > /dev/null 2>&1 || luarocks install lluv UV_DIR=$TRAVIS_BUILD_DIR/libuv
57+ --server=http://luarocks.org/dev
58+ - luarocks show lluv-pegasus > /dev/null 2>&1 || luarocks install lluv-pegasus
59+ --server=http://luarocks.org/dev --deps-mode=none
60+ - lua test/server.lua &
61+ - curl -s http://127.0.0.1:7090/get
5862
5963script :
6064 - cd test
@@ -63,14 +67,12 @@ script:
6367 - lua test_pause02.c.lua
6468 - lua test_multi_callback.lua
6569 - lua test_multi_nested_callback.lua
66- # - lunit.sh test_easy.lua
67- # - lunit.sh test_safe.lua
68- # - lunit.sh test_form.lua
69- # - lunit.sh test_curl.lua
7070
71- after_success :
71+ before_cache :
7272 - coveralls -b .. -r .. --dump c.report.json
7373 - luacov-coveralls -j c.report.json -v
74+ - luarocks remove lua-curl
75+ - rm -f /home/travis/.cache/pip/log/debug.log
7476
7577notifications :
7678 email :
0 commit comments