aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml24
-rw-r--r--appveyor.yml4
-rwxr-xr-xconfigure2
-rw-r--r--install.bat2
-rw-r--r--luarocks-dev-1.rockspec (renamed from luarocks-3.1.1-1.rockspec)3
-rwxr-xr-xmakedist4
-rwxr-xr-xsmoke_test.sh55
-rw-r--r--src/luarocks/core/cfg.lua4
8 files changed, 13 insertions, 85 deletions
diff --git a/.travis.yml b/.travis.yml
index d359c83a..aca8460a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -13,10 +13,6 @@ cache:
13 - testrun/testing_server-2.1 13 - testrun/testing_server-2.1
14 - testrun/binary-samples 14 - testrun/binary-samples
15 15
16smoke_script: &smoke_script
17 - ./makedist 3.1.1
18 - ./smoke_test.sh luarocks-3.1.1.tar.gz
19
20unit_script: &unit_script 16unit_script: &unit_script
21 - busted -o gtest --exclude-tags=git,integration --verbose -Xhelper "lua_dir=$PWD/lua_install,travis" 17 - busted -o gtest --exclude-tags=git,integration --verbose -Xhelper "lua_dir=$PWD/lua_install,travis"
22 - busted -o gtest --exclude-tags=git,integration --verbose -Xhelper "lua_dir=$PWD/lua_install,travis,env=full" 18 - busted -o gtest --exclude-tags=git,integration --verbose -Xhelper "lua_dir=$PWD/lua_install,travis,env=full"
@@ -25,24 +21,12 @@ integration_script: &integration_script
25 - lua -v 21 - lua -v
26 - if [ "$TRAVIS_OS_NAME" = "linux" ]; then shellcheck ./configure; fi 22 - if [ "$TRAVIS_OS_NAME" = "linux" ]; then shellcheck ./configure; fi
27 - ./configure --with-lua=lua_install 23 - ./configure --with-lua=lua_install
28 - ./makedist 3.1.1 24 - ./makedist dev
29 - busted -o gtest --exclude-tags=git,unit --verbose -Xhelper "lua_dir=$PWD/lua_install,travis" 25 - busted -o gtest --exclude-tags=gpg,git,unit --verbose -Xhelper "lua_dir=$PWD/lua_install,travis"
30 - busted -o gtest --exclude-tags=git,unit --verbose -Xhelper "lua_dir=$PWD/lua_install,travis,env=full" 26 - busted -o gtest --exclude-tags=gpg,git,unit --verbose -Xhelper "lua_dir=$PWD/lua_install,travis,env=full"
31 27
32jobs: 28jobs:
33 include: 29 include:
34 # Smoke tests
35 - stage: smoke
36 script: *smoke_script
37 os: linux
38 env:
39 - LUA="lua=5.3"
40 - stage: smoke
41 script: *smoke_script
42 os: osx
43 language: generic
44 env:
45 - LUA="luajit=2.1"
46 # Unit tests for linux 30 # Unit tests for linux
47 - stage: Unit on Linux 31 - stage: Unit on Linux
48 script: *unit_script 32 script: *unit_script
diff --git a/appveyor.yml b/appveyor.yml
index 174b64f7..2117694c 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -1,4 +1,4 @@
1version: 3.1.1.{build}-test 1version: 3.0.0.{build}-test
2 2
3shallow_clone: true 3shallow_clone: true
4 4
@@ -6,7 +6,7 @@ matrix:
6 fast_finish: true 6 fast_finish: true
7 7
8environment: 8environment:
9 LUAROCKS_VER: 3.1.1 9 LUAROCKS_VER: 3.0.0
10 10
11 matrix: 11 matrix:
12 # Lua 5.1 tests 12 # Lua 5.1 tests
diff --git a/configure b/configure
index 316537a5..e64eac28 100755
--- a/configure
+++ b/configure
@@ -318,7 +318,7 @@ do
318done 318done
319 319
320echo 320echo
321BLUE "Configuring LuaRocks version 3.1.1..." 321BLUE "Configuring LuaRocks version dev..."
322echo 322echo
323echo 323echo
324 324
diff --git a/install.bat b/install.bat
index 4d390785..43b18e1d 100644
--- a/install.bat
+++ b/install.bat
@@ -6,7 +6,7 @@ local vars = {}
6 6
7 7
8vars.PREFIX = nil 8vars.PREFIX = nil
9vars.VERSION = "3.1" 9vars.VERSION = "3.0"
10vars.SYSCONFDIR = nil 10vars.SYSCONFDIR = nil
11vars.SYSCONFFORCE = nil 11vars.SYSCONFFORCE = nil
12vars.CONFBACKUPDIR = nil 12vars.CONFBACKUPDIR = nil
diff --git a/luarocks-3.1.1-1.rockspec b/luarocks-dev-1.rockspec
index e92a2d1c..a1f30ef4 100644
--- a/luarocks-3.1.1-1.rockspec
+++ b/luarocks-dev-1.rockspec
@@ -1,9 +1,8 @@
1rockspec_format = "3.0" 1rockspec_format = "3.0"
2package = "luarocks" 2package = "luarocks"
3version = "3.1.1-1" 3version = "dev-1"
4source = { 4source = {
5 url = "git+https://github.com/luarocks/luarocks", 5 url = "git+https://github.com/luarocks/luarocks",
6 tag = "v3.1.1",
7} 6}
8description = { 7description = {
9 summary = "A package manager for Lua modules.", 8 summary = "A package manager for Lua modules.",
diff --git a/makedist b/makedist
index a66fe9bb..9675f7cd 100755
--- a/makedist
+++ b/makedist
@@ -95,7 +95,7 @@ mkdir "release-windows"
95mv "$out" "release-windows/$out-win32" 95mv "$out" "release-windows/$out-win32"
96 96
97cd "release-unix/$out" 97cd "release-unix/$out"
98rm -rf makedist smoke_test.sh install.bat win32 .travis.yml .gitignore appveyor* .appveyor 98rm -rf makedist install.bat win32 .travis.yml .gitignore appveyor* .appveyor
99cd .. 99cd ..
100tar czvpf ../"$out.tar.gz" "$out" 100tar czvpf ../"$out.tar.gz" "$out"
101rm -f ../"$out.tar.gz.asc" 101rm -f ../"$out.tar.gz.asc"
@@ -103,7 +103,7 @@ cd ..
103rm -rf "release-unix" 103rm -rf "release-unix"
104 104
105cd "release-windows/$out-win32" 105cd "release-windows/$out-win32"
106rm -rf makedist smoke_test.sh Makefile GNUmakefile configure .travis.yml .gitignore test appveyor* .appveyor 106rm -rf makedist Makefile GNUmakefile configure .travis.yml .gitignore test appveyor* .appveyor
107cd .. 107cd ..
108zip -r ../"$out-win32.zip" "$out-win32" 108zip -r ../"$out-win32.zip" "$out-win32"
109rm -f ../"$out-win32.zip.asc" 109rm -f ../"$out-win32.zip.asc"
diff --git a/smoke_test.sh b/smoke_test.sh
deleted file mode 100755
index e57a8d02..00000000
--- a/smoke_test.sh
+++ /dev/null
@@ -1,55 +0,0 @@
1#!/bin/sh -e
2
3tarball="$1"
4
5rm -rf smoketestdir
6mkdir smoketestdir
7cp "$tarball" smoketestdir
8cd smoketestdir
9
10tar zxvpf "$(basename "$tarball")"
11cd "$(basename "$tarball" .tar.gz)"
12./configure --prefix=foobar
13make
14./luarocks --verbose
15./luarocks --verbose install inspect
16./luarocks --verbose show inspect
17./lua -e 'print(assert(require("inspect")(_G)))'
18make install
19cd foobar
20bin/luarocks --verbose
21bin/luarocks --verbose install inspect
22bin/luarocks --verbose show inspect
23(
24 eval $(bin/luarocks path)
25 lua -e 'print(assert(require("inspect")(_G)))'
26)
27cd ..
28rm -rf foobar
29
30if [ "$2" = "binary" ]
31then
32 make binary
33 make install-binary
34 cd foobar
35 bin/luarocks
36 bin/luarocks install inspect
37 bin/luarocks show inspect
38 (
39 eval $(bin/luarocks path)
40 lua -e 'print(assert(require("inspect")(_G)))'
41 )
42 cd ..
43 rm -rf foobar
44fi
45
46if [ "$3" = "windows" ]
47then
48 make windows-binary
49fi
50
51cd ..
52rm -rf smoketestdir
53echo
54echo "Full test ran and nothing caught fire!"
55echo
diff --git a/src/luarocks/core/cfg.lua b/src/luarocks/core/cfg.lua
index d6732350..02fb564b 100644
--- a/src/luarocks/core/cfg.lua
+++ b/src/luarocks/core/cfg.lua
@@ -19,8 +19,8 @@ local sysdetect = require("luarocks.core.sysdetect")
19 19
20-------------------------------------------------------------------------------- 20--------------------------------------------------------------------------------
21 21
22local program_version = "3.1.1" 22local program_version = "dev"
23local program_series = "3.1" 23local program_series = "3.0"
24local major_version = (program_version:match("([^.]%.[^.])")) or program_series 24local major_version = (program_version:match("([^.]%.[^.])")) or program_series
25 25
26local is_windows = package.config:sub(1,1) == "\\" 26local is_windows = package.config:sub(1,1) == "\\"