.travis.yml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. language: erlang
  2. env:
  3. global:
  4. - LUAROCKS_BASE=luarocks-2.0.13
  5. matrix:
  6. - LUA=lua5.1 LUA_DEV=liblua5.1-dev LUA_VER=5.1 LUA_SFX=5.1 LUA_INCDIR=/usr/include/lua5.1
  7. - LUA=lua5.2 LUA_DEV=liblua5.2-dev LUA_VER=5.2 LUA_SFX=5.2 LUA_INCDIR=/usr/include/lua5.2
  8. - LUA=luajit LUA_DEV=libluajit-5.1-dev LUA_VER=5.1 LUA_SFX=jit LUA_INCDIR=/usr/include/luajit-2.0
  9. branches:
  10. only:
  11. - master
  12. before_install:
  13. - if [ $LUA = "luajit" ]; then
  14. sudo add-apt-repository ppa:mwild1/ppa -y && sudo apt-get update -y;
  15. fi
  16. - sudo apt-get install $LUA
  17. - sudo apt-get install $LUA_DEV
  18. - lua$LUA_SFX -v
  19. # Install a recent luarocks release
  20. - wget http://luarocks.org/releases/$LUAROCKS_BASE.tar.gz
  21. - tar zxvpf $LUAROCKS_BASE.tar.gz
  22. - cd $LUAROCKS_BASE
  23. - ./configure
  24. --lua-version=$LUA_VER --lua-suffix=$LUA_SFX --with-lua-include="$LUA_INCDIR"
  25. - sudo make
  26. - sudo make install
  27. - cd $TRAVIS_BUILD_DIR
  28. install:
  29. - export DEBUG=DEBUG
  30. - sudo -E luarocks make luasocket-scm-0.rockspec
  31. script:
  32. - cd test
  33. - lua$LUA_SFX hello.lua
  34. - lua$LUA_SFX testsrvr.lua > /dev/null &
  35. - lua$LUA_SFX testclnt.lua
  36. - lua$LUA_SFX stufftest.lua
  37. - lua$LUA_SFX excepttest.lua
  38. - lua$LUA_SFX test_bind.lua
  39. - lua$LUA_SFX test_getaddrinfo.lua
  40. - lua$LUA_SFX ltn12test.lua
  41. - lua$LUA_SFX mimetest.lua
  42. - lua$LUA_SFX urltest.lua
  43. - lua$LUA_SFX test_socket_error.lua
  44. notifications:
  45. email:
  46. on_success: change
  47. on_failure: always