Modify .travis.yml

Test on different Python versions, also run pep8 and pyflakes.
This commit is contained in:
mpeterv 2015-11-26 15:19:37 +03:00
parent 3d8a8b50bd
commit d3d2515c56

View File

@ -1,26 +1,33 @@
language: c language: python
sudo: false sudo: false
cache: cache:
directories: cache directories: cache
matrix: python:
include: - "2.6"
- compiler: ": Lua 5.1" - "2.7"
env: LUA="lua 5.1" - "3.0"
- compiler: ": Lua 5.2" - "3.5"
env: LUA="lua 5.2"
- compiler: ": Lua 5.3" before_install:
env: LUA="lua 5.3" - pip install pyflakes
- compiler: ": LuaJIT 2.0" - pip install pep8
env: LUA="luajit 2.0"
- compiler: ": LuaJIT 2.1" before_script:
env: LUA="luajit 2.1" - pyflakes .
- pep8 . --max-line-length 99 --ignore E302
script: script:
- python hererocks.py here --$LUA -r^ --downloads cache --builds cache - python hererocks.py here -l 5.3 -r^ --downloads cache --builds cache
- export PATH=$PATH:$PWD/here/bin - export PATH=$PATH:$PWD/here/bin
- lua -v - lua -v
- luarocks --version - luarocks --version
- luarocks make - luarocks make
- hererocks-test - hererocks-test
- rm here -r
- python hererocks.py here -j 2.1 -r^ --downloads cache --builds cache
- lua -v
- luarocks --version
- luarocks make
- hererocks-test