.travis.yml 909 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. language: cpp
  2. compiler:
  3. - clang
  4. - gcc
  5. env:
  6. # Lua versions to test against
  7. - LUA_VERSION=5.3.2
  8. - LUA_VERSION=5.2.4
  9. - LUA_VERSION=5.1.5
  10. cache:
  11. directories:
  12. - lua-$LUA_VERSION
  13. install:
  14. # Select compiler
  15. - if [[ "$CXX" = "g++" ]]; then export CXX="g++-5"; fi
  16. - if [[ "$CXX" = "clang++" ]]; then export CXX="clang++-3.7"; fi
  17. # Build Lua
  18. - test -e "lua-$LUA_VERSION/src" || (wget "http://www.lua.org/ftp/lua-$LUA_VERSION.tar.gz" && tar xvfz "lua-$LUA_VERSION.tar.gz")
  19. - pushd "lua-$LUA_VERSION/src"
  20. - test -e liblua-custom.a || make LUA_A=liblua-custom.a linux
  21. - export "LUA_SOURCE_PATH=$(pwd)"
  22. - popd
  23. script:
  24. - make "LUA_LIBDIR=$LUA_SOURCE_PATH" "LUA_INCDIR=$LUA_SOURCE_PATH" LUA_LIBNAME=lua-custom all
  25. addons:
  26. apt:
  27. sources:
  28. - llvm-toolchain-precise-3.7
  29. - ubuntu-toolchain-r-test
  30. packages:
  31. - clang-3.7
  32. - g++-5
  33. - make
  34. - wget