diff options
-rw-r--r-- | .travis.yml | 24 | ||||
-rw-r--r-- | appveyor.yml | 4 | ||||
-rwxr-xr-x | configure | 2 | ||||
-rw-r--r-- | install.bat | 2 | ||||
-rw-r--r-- | luarocks-dev-1.rockspec (renamed from luarocks-3.1.2-1.rockspec) | 3 | ||||
-rwxr-xr-x | makedist | 4 | ||||
-rwxr-xr-x | smoke_test.sh | 55 | ||||
-rw-r--r-- | src/luarocks/core/cfg.lua | 4 |
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 | ||
16 | smoke_script: &smoke_script | ||
17 | - ./makedist 3.1.1 | ||
18 | - ./smoke_test.sh luarocks-3.1.1.tar.gz | ||
19 | |||
20 | unit_script: &unit_script | 16 | unit_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 | ||
32 | jobs: | 28 | jobs: |
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 e03c8bae..2117694c 100644 --- a/appveyor.yml +++ b/appveyor.yml | |||
@@ -1,4 +1,4 @@ | |||
1 | version: 3.1.2.{build}-test | 1 | version: 3.0.0.{build}-test |
2 | 2 | ||
3 | shallow_clone: true | 3 | shallow_clone: true |
4 | 4 | ||
@@ -6,7 +6,7 @@ matrix: | |||
6 | fast_finish: true | 6 | fast_finish: true |
7 | 7 | ||
8 | environment: | 8 | environment: |
9 | LUAROCKS_VER: 3.1.2 | 9 | LUAROCKS_VER: 3.0.0 |
10 | 10 | ||
11 | matrix: | 11 | matrix: |
12 | # Lua 5.1 tests | 12 | # Lua 5.1 tests |
@@ -318,7 +318,7 @@ do | |||
318 | done | 318 | done |
319 | 319 | ||
320 | echo | 320 | echo |
321 | BLUE "Configuring LuaRocks version 3.1.2..." | 321 | BLUE "Configuring LuaRocks version dev..." |
322 | echo | 322 | echo |
323 | echo | 323 | echo |
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 | ||
8 | vars.PREFIX = nil | 8 | vars.PREFIX = nil |
9 | vars.VERSION = "3.1" | 9 | vars.VERSION = "3.0" |
10 | vars.SYSCONFDIR = nil | 10 | vars.SYSCONFDIR = nil |
11 | vars.SYSCONFFORCE = nil | 11 | vars.SYSCONFFORCE = nil |
12 | vars.CONFBACKUPDIR = nil | 12 | vars.CONFBACKUPDIR = nil |
diff --git a/luarocks-3.1.2-1.rockspec b/luarocks-dev-1.rockspec index 4a1b98cf..a1f30ef4 100644 --- a/luarocks-3.1.2-1.rockspec +++ b/luarocks-dev-1.rockspec | |||
@@ -1,9 +1,8 @@ | |||
1 | rockspec_format = "3.0" | 1 | rockspec_format = "3.0" |
2 | package = "luarocks" | 2 | package = "luarocks" |
3 | version = "3.1.2-1" | 3 | version = "dev-1" |
4 | source = { | 4 | source = { |
5 | url = "git+https://github.com/luarocks/luarocks", | 5 | url = "git+https://github.com/luarocks/luarocks", |
6 | tag = "v3.1.2", | ||
7 | } | 6 | } |
8 | description = { | 7 | description = { |
9 | summary = "A package manager for Lua modules.", | 8 | summary = "A package manager for Lua modules.", |
@@ -95,7 +95,7 @@ mkdir "release-windows" | |||
95 | mv "$out" "release-windows/$out-win32" | 95 | mv "$out" "release-windows/$out-win32" |
96 | 96 | ||
97 | cd "release-unix/$out" | 97 | cd "release-unix/$out" |
98 | rm -rf makedist smoke_test.sh install.bat win32 .travis.yml .gitignore appveyor* .appveyor | 98 | rm -rf makedist install.bat win32 .travis.yml .gitignore appveyor* .appveyor |
99 | cd .. | 99 | cd .. |
100 | tar czvpf ../"$out.tar.gz" "$out" | 100 | tar czvpf ../"$out.tar.gz" "$out" |
101 | rm -f ../"$out.tar.gz.asc" | 101 | rm -f ../"$out.tar.gz.asc" |
@@ -103,7 +103,7 @@ cd .. | |||
103 | rm -rf "release-unix" | 103 | rm -rf "release-unix" |
104 | 104 | ||
105 | cd "release-windows/$out-win32" | 105 | cd "release-windows/$out-win32" |
106 | rm -rf makedist smoke_test.sh Makefile GNUmakefile configure .travis.yml .gitignore test appveyor* .appveyor | 106 | rm -rf makedist Makefile GNUmakefile configure .travis.yml .gitignore test appveyor* .appveyor |
107 | cd .. | 107 | cd .. |
108 | zip -r ../"$out-win32.zip" "$out-win32" | 108 | zip -r ../"$out-win32.zip" "$out-win32" |
109 | rm -f ../"$out-win32.zip.asc" | 109 | rm -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 | |||
3 | tarball="$1" | ||
4 | |||
5 | rm -rf smoketestdir | ||
6 | mkdir smoketestdir | ||
7 | cp "$tarball" smoketestdir | ||
8 | cd smoketestdir | ||
9 | |||
10 | tar zxvpf "$(basename "$tarball")" | ||
11 | cd "$(basename "$tarball" .tar.gz)" | ||
12 | ./configure --prefix=foobar | ||
13 | make | ||
14 | ./luarocks --verbose | ||
15 | ./luarocks --verbose install inspect | ||
16 | ./luarocks --verbose show inspect | ||
17 | ./lua -e 'print(assert(require("inspect")(_G)))' | ||
18 | make install | ||
19 | cd foobar | ||
20 | bin/luarocks --verbose | ||
21 | bin/luarocks --verbose install inspect | ||
22 | bin/luarocks --verbose show inspect | ||
23 | ( | ||
24 | eval $(bin/luarocks path) | ||
25 | lua -e 'print(assert(require("inspect")(_G)))' | ||
26 | ) | ||
27 | cd .. | ||
28 | rm -rf foobar | ||
29 | |||
30 | if [ "$2" = "binary" ] | ||
31 | then | ||
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 | ||
44 | fi | ||
45 | |||
46 | if [ "$3" = "windows" ] | ||
47 | then | ||
48 | make windows-binary | ||
49 | fi | ||
50 | |||
51 | cd .. | ||
52 | rm -rf smoketestdir | ||
53 | echo | ||
54 | echo "Full test ran and nothing caught fire!" | ||
55 | echo | ||
diff --git a/src/luarocks/core/cfg.lua b/src/luarocks/core/cfg.lua index 24e02222..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 | ||
22 | local program_version = "3.1.2" | 22 | local program_version = "dev" |
23 | local program_series = "3.1" | 23 | local program_series = "3.0" |
24 | local major_version = (program_version:match("([^.]%.[^.])")) or program_series | 24 | local major_version = (program_version:match("([^.]%.[^.])")) or program_series |
25 | 25 | ||
26 | local is_windows = package.config:sub(1,1) == "\\" | 26 | local is_windows = package.config:sub(1,1) == "\\" |