.travis.yml 1007 B

123456789101112131415161718192021222324252627282930313233343536
  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. 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 busted
  27. script:
  28. - sudo -E busted -v
  29. notifications:
  30. email: false