From d3d2515c56cb674b910bce216e9e6517f96b390a Mon Sep 17 00:00:00 2001 From: mpeterv Date: Thu, 26 Nov 2015 15:19:37 +0300 Subject: [PATCH] Modify .travis.yml Test on different Python versions, also run pep8 and pyflakes. --- .travis.yml | 35 +++++++++++++++++++++-------------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8076f01..e3a64b4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,26 +1,33 @@ -language: c +language: python sudo: false cache: directories: cache -matrix: - include: - - compiler: ": Lua 5.1" - env: LUA="lua 5.1" - - compiler: ": Lua 5.2" - env: LUA="lua 5.2" - - compiler: ": Lua 5.3" - env: LUA="lua 5.3" - - compiler: ": LuaJIT 2.0" - env: LUA="luajit 2.0" - - compiler: ": LuaJIT 2.1" - env: LUA="luajit 2.1" +python: + - "2.6" + - "2.7" + - "3.0" + - "3.5" + +before_install: + - pip install pyflakes + - pip install pep8 + +before_script: + - pyflakes . + - pep8 . --max-line-length 99 --ignore E302 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 - lua -v - luarocks --version - luarocks make - 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