145 Commits

Author SHA1 Message Date
mpeterv
ccbd07bf5d Use sys.exit instead of raise 2016-03-28 17:46:30 +03:00
mpeterv
097ce9a122 Rename/refactor command execution funcs 2016-03-28 17:44:33 +03:00
mpeterv
16f7945d7d Add appveyor badge [ci skip] 2016-03-28 15:37:04 +03:00
mpeterv
bae2f48940 Fix build on Windows 2016-03-28 15:30:16 +03:00
mpeterv
7200bebef8 Get rid of shell=True when running commands
Pass arguments as lists or nested lists.
2016-03-28 15:25:30 +03:00
mpeterv
8bf0633eab Print busted version on appveyor 2016-03-28 13:57:50 +03:00
mpeterv
8ddcb46f4e Install lua-term == 0.3
0.4 is broken on Windows.
2016-03-28 13:53:54 +03:00
mpeterv
d4733790e0 Install luarocks on travis 2016-03-28 13:41:58 +03:00
Peter Melnichenko
0283f075cb Merge pull request #16 from Lekensteyn/windows
Initial Windows port (mainly intended for easier Appveyor integration)
2016-03-28 14:24:46 +04:00
Peter Wu
b25cc45dbc pyflakes and pep8 fixes; python 2.7 compatibility
Yay... Python 2.7 does not support `def f(*args, shell=True)`.
Workaround by using **kwargs.
2016-03-27 13:20:41 +02:00
Peter Wu
7af7d9c7be Initial Windows port
Tested on Windows 7 x64 with MSVC12:

    "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x64
    hererocks.py C:\luatest -r^ --lua 5.3
    hererocks.py C:\luatest -r 2.2.2 --lua 5.2
    hererocks.py C:\luatest -r 2.0.10 --lua 5.1

Note:

 - LuaRocks <= 2.2.2 installs to $prefix\LuaRocks\2.2
 - LuaRocks >= 2.3 installs to $prefix\LuaRocks

TODO (for consistency with Linux): install to $prefix. Unfortunately
the Windows install.bat only offers the option to wipe $prefix before
installing, or aborting.
2016-03-26 16:14:43 +01:00
Peter Melnichenko
3552b040a1 Merge pull request #15 from Lekensteyn/fixes
Fix Python 3 compatibility on error
2016-03-26 16:29:44 +04:00
Peter Wu
21158d09a3 Fix Python 3 compatibility on error
This fixes a "TypeError: write() argument must eb str, not bytes" when
the compilation command fails.
2016-03-26 12:45:03 +01:00
mpeterv
528e8c2be7 0.6.2 release 0.6.2 2016-03-22 16:59:15 +03:00
mpeterv
79a577e72b 0.6.1 release 2016-03-22 16:53:53 +03:00
mpeterv
bad283179e Minor CLI doc fixes 2016-03-22 16:49:55 +03:00
mpeterv
75b6d57e4c Fix compatibility defines patching for Lua
Makefile is not used anymore, patches to luaconf.h for compatibility
defines should operate correctly with default defines not present
initially.
2016-03-22 16:47:53 +03:00
mpeterv
98f1426656 0.6.0 release 0.6.0 2016-03-20 23:34:26 +03:00
mpeterv
aaf90a918a Make tests verbose 2016-03-20 22:57:22 +03:00
mpeterv
52557f9e03 Attempt 3 to test on travis OS X 2016-03-20 22:45:34 +03:00
mpeterv
907e4cdd47 Attempt 2 to test on travis OS X 2016-03-20 22:37:29 +03:00
mpeterv
23d0adf4d9 Attempt to test on OS X on travis 2016-03-20 22:30:22 +03:00
mpeterv
fcea0f5140 Add --no-readline flag 2016-03-20 22:21:25 +03:00
mpeterv
fcc45f9b7a Support LuaJIT 2.1.0-beta1 and 2.1.0-beta2
`hererocks -j 2.1` now installs LuaJIT 2.1.0-beta2. To get old
behaviour use `-j @v2.1`.
2016-03-20 21:18:54 +03:00
mpeterv
d0ec9237e5 Use fixed tag when fetching LuaJIT 2.0.1 2016-03-20 21:07:09 +03:00
mpeterv
721b2c467b Replace distutils.spawn.find_executable
It's not always available on Windows apparently.
2016-03-20 20:30:17 +03:00
mpeterv
f4139453df Use HTTPS when fetching Lua 2016-03-20 20:15:38 +03:00
mpeterv
b9c050bb14 Add an option to turn checksum mismatches into warnings
Leaves an option to not break if something changes upstream.
2016-03-20 19:38:09 +03:00
mpeterv
ebd42a91a0 Tweak checksum verification
* Assume that all versions have checksums
* Don't print the checksum if it matched
2016-03-20 19:25:43 +03:00
mpeterv
e65c2c14e9 Don't warn about checksum when using cached git repos 2016-03-20 19:24:38 +03:00
mpeterv
d290832551 Add pep8 config: relax line length limit and ignore E203 2016-03-20 17:44:29 +03:00
Peter Melnichenko
f05451124c Merge pull request #13 from starius/verify-downloads
Verify downloads
2016-03-20 18:37:01 +04:00
Boris Nagaev
3452d6e4aa verify checksums of downloaded files if possible 2016-03-20 16:44:27 +03:00
Boris Nagaev
fe8c16bc7c rename cached files as distribution tarballs
Example: lua5.3.2 -> lua-5.3.2.tar.gz
2016-03-20 16:33:45 +03:00
mpeterv
13e45c9db0 Build LuaJIT with cl on appveyor 2016-03-02 19:08:31 +03:00
mpeterv
2a45fc7980 Don't attempt to install libluajit.so on Windows 2016-03-02 19:02:36 +03:00
mpeterv
87ddca66bd Autodetect mingw32-make 2016-03-02 18:58:35 +03:00
mpeterv
2019ef4f65 Autodetect cl target under Windows 2016-03-02 18:58:35 +03:00
mpeterv
9315a91b2e Don't show "5.1" as LuaJIT version when installing from local dir 2016-03-02 18:58:35 +03:00
Peter Melnichenko
d289eaf784 Merge pull request #12 from starius/add-luajit-h
luajit targets: install luajit.h
2016-02-28 15:03:03 +03:00
Boris Nagaev
184c2ca6b2 luajit targets: install luajit.h
fix #11
2016-02-28 14:08:00 +03:00
mpeterv
31c64145f4 Don't link lua.obj when building luac.exe 2016-02-27 20:12:25 +03:00
mpeterv
f5ebed80ae Fix cl build 2016-02-27 20:06:45 +03:00
mpeterv
9c0b3c64ac Test cl.exe RioLua build on Appveyor 2016-02-27 20:02:44 +03:00
mpeterv
8f8bbb6829 Support --target=cl for RioLua 2016-02-27 19:39:03 +03:00
mpeterv
875276d3f5 Another build bites the dust 2016-02-27 18:44:13 +03:00
mpeterv
20cd7081e7 Don't ar rcu poor lua.o 2016-02-27 18:38:44 +03:00
mpeterv
1c49031209 Fix MinGW RioLua build, again 2016-02-27 18:30:02 +03:00
mpeterv
95945c6c23 Fix duplicated LUA_BUILD_AS_DLL flag under MinGW 2016-02-27 18:27:36 +03:00
mpeterv
68e4d8ccee Test RioLua build on Appveyor 2016-02-27 18:23:26 +03:00