Skip to content

Commit

Permalink
Travis: speed up build
Browse files Browse the repository at this point in the history
  • Loading branch information
hishamhm committed Sep 30, 2017
1 parent a029672 commit e237af3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -53,9 +54,9 @@ matrix:


before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update;fi
- pip install hererocks
- hererocks lua_install --luarocks @luarocks-3 --$LUA
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update;fi
- [ ! -d lua_install ] && pip install hererocks
- [ ! -d lua_install ] && hererocks lua_install -r^ --$LUA
- export PATH=$PATH:$PWD/lua_install/bin # Add directory with all installed binaries to PATH

install:
Expand Down
3 changes: 2 additions & 1 deletion src/bin/luarocks
Original file line number Diff line number Diff line change
@@ -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")
Expand Down
3 changes: 2 additions & 1 deletion src/bin/luarocks-admin
Original file line number Diff line number Diff line change
@@ -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")
Expand Down

0 comments on commit e237af3

Please sign in to comment.