aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2017-09-29 20:17:52 -0300
committerHisham Muhammad <hisham@gobolinux.org>2018-03-12 21:03:50 -0300
commit3422dd2ae3cf2c3676846e4300529a5cc9a36191 (patch)
tree12111c1e3da98e3996af4e7dfcd431b9f6bbae8d
parentdb78c190806b742b6380b340432600f010cde7ae (diff)
downloadluarocks-3422dd2ae3cf2c3676846e4300529a5cc9a36191.tar.gz
luarocks-3422dd2ae3cf2c3676846e4300529a5cc9a36191.tar.bz2
luarocks-3422dd2ae3cf2c3676846e4300529a5cc9a36191.zip
Travis: add cache
-rw-r--r--.travis.yml27
-rwxr-xr-xmakedist7
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 @@
1language: python 1language: python
2 2
3cache:
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
3matrix: 17matrix:
4 include: 18 include:
5 - os: linux 19 - os: linux
@@ -40,17 +54,18 @@ matrix:
40 54
41 55
42before_install: 56before_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
48install: 61install:
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
53script: 65script:
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
diff --git a/makedist b/makedist
index fb41b981..1a16a115 100755
--- a/makedist
+++ b/makedist
@@ -1,4 +1,4 @@
1#!/bin/sh 1#!/bin/bash -e
2 2
3if ! [ "$1" ] 3if ! [ "$1" ]
4then 4then
@@ -14,6 +14,9 @@ fi
14 14
15make clean || exit 1 15make clean || exit 1
16 16
17if [ "$1" != "scm" ]
18then
19
17grep -q "\"$1\"" rockspec || { 20grep -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
59fi
60
56out="luarocks-$1" 61out="luarocks-$1"
57rm -rf "$out" 62rm -rf "$out"
58mkdir "$out" 63mkdir "$out"