From 047760470db0874bbf3250f565a6c1d12dcafdee Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Fri, 29 Sep 2017 21:19:00 -0300 Subject: Travis: speed up build --- .travis.yml | 6 +++--- src/bin/luarocks | 3 ++- src/bin/luarocks-admin | 3 ++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8f265fb1..7ea8b487 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,7 @@ language: python cache: directories: + - lua_install - test/testing_cache-5.1 - test/testing_cache-5.2 - test/testing_cache-5.3 @@ -53,9 +54,8 @@ matrix: before_install: - - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update;fi - - pip install hererocks - - hererocks lua_install --luarocks @luarocks-3 --$LUA + - if [ ! -d lua_install ]; then pip install hererocks; fi + - if [ ! -d lua_install ]; then hererocks lua_install -r^ --$LUA; fi - export PATH=$PATH:$PWD/lua_install/bin # Add directory with all installed binaries to PATH install: diff --git a/src/bin/luarocks b/src/bin/luarocks index 88a1d1ca..ee7edf19 100755 --- a/src/bin/luarocks +++ b/src/bin/luarocks @@ -1,4 +1,5 @@ -#!/usr/bin/env lua +#!/Programs/Lua/5.3.3/bin/lua-5.3 +package.path = [[/Users/hisham/projects/luarocks/src/?.lua;]]..package.path -- this should be loaded first. local cfg = require("luarocks.core.cfg") diff --git a/src/bin/luarocks-admin b/src/bin/luarocks-admin index 5db24640..7af77fc2 100755 --- a/src/bin/luarocks-admin +++ b/src/bin/luarocks-admin @@ -1,4 +1,5 @@ -#!/usr/bin/env lua +#!/Programs/Lua/5.3.3/bin/lua-5.3 +package.path = [[/Users/hisham/projects/luarocks/src/?.lua;]]..package.path -- this should be loaded first. local cfg = require("luarocks.core.cfg") -- cgit v1.2.3-55-g6feb