diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2017-09-29 20:17:52 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-03-12 21:03:50 -0300 |
commit | 3422dd2ae3cf2c3676846e4300529a5cc9a36191 (patch) | |
tree | 12111c1e3da98e3996af4e7dfcd431b9f6bbae8d | |
parent | db78c190806b742b6380b340432600f010cde7ae (diff) | |
download | luarocks-3422dd2ae3cf2c3676846e4300529a5cc9a36191.tar.gz luarocks-3422dd2ae3cf2c3676846e4300529a5cc9a36191.tar.bz2 luarocks-3422dd2ae3cf2c3676846e4300529a5cc9a36191.zip |
Travis: add cache
-rw-r--r-- | .travis.yml | 27 | ||||
-rwxr-xr-x | makedist | 7 |
2 files changed, 27 insertions, 7 deletions
diff --git a/.travis.yml b/.travis.yml index 5ee0b740..18c8504f 100644 --- a/.travis.yml +++ b/.travis.yml | |||
@@ -1,5 +1,19 @@ | |||
1 | language: python | 1 | language: python |
2 | 2 | ||
3 | cache: | ||
4 | directories: | ||
5 | - lua_install | ||
6 | - test/testing_cache-5.1 | ||
7 | - test/testing_cache-5.2 | ||
8 | - test/testing_cache-5.3 | ||
9 | - test/testing_cache-2.0 | ||
10 | - test/testing_cache-2.1 | ||
11 | - test/testing_server-5.1 | ||
12 | - test/testing_server-5.2 | ||
13 | - test/testing_server-5.3 | ||
14 | - test/testing_server-2.0 | ||
15 | - test/testing_server-2.1 | ||
16 | |||
3 | matrix: | 17 | matrix: |
4 | include: | 18 | include: |
5 | - os: linux | 19 | - os: linux |
@@ -40,17 +54,18 @@ matrix: | |||
40 | 54 | ||
41 | 55 | ||
42 | before_install: | 56 | before_install: |
43 | - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update;fi | 57 | - if [ ! -f lua_install/bin/luarocks ]; then pip install hererocks; fi |
44 | - pip install hererocks | 58 | - if [ ! -f lua_install/bin/luarocks ]; then hererocks lua_install -r^ --$LUA; fi |
45 | - hererocks lua_install -r^ --$LUA | ||
46 | - export PATH=$PATH:$PWD/lua_install/bin # Add directory with all installed binaries to PATH | 59 | - export PATH=$PATH:$PWD/lua_install/bin # Add directory with all installed binaries to PATH |
47 | 60 | ||
48 | install: | 61 | install: |
49 | - luarocks install busted | 62 | - if [ ! -f lua_install/bin/busted ]; then luarocks install busted; fi |
50 | - luarocks install luacov | 63 | - if [ ! -f lua_install/bin/luacov ]; then luarocks install luacov; luarocks install luacov-coveralls; fi |
51 | - luarocks install luacov-coveralls | ||
52 | 64 | ||
53 | script: | 65 | script: |
66 | - lua -v | ||
67 | - ./configure --with-lua=lua_install | ||
68 | - ./makedist scm | ||
54 | - busted -o gtest --verbose -Xhelper travis | 69 | - busted -o gtest --verbose -Xhelper travis |
55 | - busted -o gtest --verbose -Xhelper travis,env=full | 70 | - busted -o gtest --verbose -Xhelper travis,env=full |
56 | 71 | ||
@@ -1,4 +1,4 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/bash -e |
2 | 2 | ||
3 | if ! [ "$1" ] | 3 | if ! [ "$1" ] |
4 | then | 4 | then |
@@ -14,6 +14,9 @@ fi | |||
14 | 14 | ||
15 | make clean || exit 1 | 15 | make clean || exit 1 |
16 | 16 | ||
17 | if [ "$1" != "scm" ] | ||
18 | then | ||
19 | |||
17 | grep -q "\"$1\"" rockspec || { | 20 | grep -q "\"$1\"" rockspec || { |
18 | echo | 21 | echo |
19 | echo "version in rockspec is incorrect. Please fix it." | 22 | echo "version in rockspec is incorrect. Please fix it." |
@@ -53,6 +56,8 @@ grep -q "vars.VERSION = \"$program_series\"" install.bat || { | |||
53 | exit 1 | 56 | exit 1 |
54 | } | 57 | } |
55 | 58 | ||
59 | fi | ||
60 | |||
56 | out="luarocks-$1" | 61 | out="luarocks-$1" |
57 | rm -rf "$out" | 62 | rm -rf "$out" |
58 | mkdir "$out" | 63 | mkdir "$out" |