.travis.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. language: erlang
  2. env:
  3. global:
  4. - LUAROCKS_BASE=luarocks-2.1.0
  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. before_install:
  10. - if [ $LUA = "luajit" ]; then
  11. sudo add-apt-repository ppa:mwild1/ppa -y && sudo apt-get update -y;
  12. fi
  13. - sudo apt-get install $LUA
  14. - sudo apt-get install $LUA_DEV
  15. - lua$LUA_SFX -v
  16. # Install a recent luarocks release
  17. - wget http://luarocks.org/releases/$LUAROCKS_BASE.tar.gz
  18. - tar zxvpf $LUAROCKS_BASE.tar.gz
  19. - cd $LUAROCKS_BASE
  20. - ./configure
  21. --lua-version=$LUA_VER --lua-suffix=$LUA_SFX --with-lua-include="$LUA_INCDIR"
  22. - sudo make
  23. - sudo make install
  24. - cd $TRAVIS_BUILD_DIR
  25. install:
  26. - sudo -E luarocks install lua_cliargs 2.3-3
  27. - sudo -E luarocks install busted 1.11.1-1
  28. script:
  29. - sudo -E busted -v
  30. notifications:
  31. email:
  32. on_success: change
  33. on_failure: always