diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2017-09-29 21:19:00 -0300 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2017-09-29 21:55:10 -0300 |
| commit | 047760470db0874bbf3250f565a6c1d12dcafdee (patch) | |
| tree | 243e85ff569d4f43924bebf3584a49f292f746ee | |
| parent | a0296722a17ff28668d27fe44de434d937ef8ee5 (diff) | |
| download | luarocks-047760470db0874bbf3250f565a6c1d12dcafdee.tar.gz luarocks-047760470db0874bbf3250f565a6c1d12dcafdee.tar.bz2 luarocks-047760470db0874bbf3250f565a6c1d12dcafdee.zip | |
Travis: speed up build
| -rw-r--r-- | .travis.yml | 6 | ||||
| -rwxr-xr-x | src/bin/luarocks | 3 | ||||
| -rwxr-xr-x | 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 | |||
| 2 | 2 | ||
| 3 | cache: | 3 | cache: |
| 4 | directories: | 4 | directories: |
| 5 | - lua_install | ||
| 5 | - test/testing_cache-5.1 | 6 | - test/testing_cache-5.1 |
| 6 | - test/testing_cache-5.2 | 7 | - test/testing_cache-5.2 |
| 7 | - test/testing_cache-5.3 | 8 | - test/testing_cache-5.3 |
| @@ -53,9 +54,8 @@ matrix: | |||
| 53 | 54 | ||
| 54 | 55 | ||
| 55 | before_install: | 56 | before_install: |
| 56 | - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update;fi | 57 | - if [ ! -d lua_install ]; then pip install hererocks; fi |
| 57 | - pip install hererocks | 58 | - if [ ! -d lua_install ]; then hererocks lua_install -r^ --$LUA; fi |
| 58 | - hererocks lua_install --luarocks @luarocks-3 --$LUA | ||
| 59 | - 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 |
| 60 | 60 | ||
| 61 | install: | 61 | 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 @@ | |||
| 1 | #!/usr/bin/env lua | 1 | #!/Programs/Lua/5.3.3/bin/lua-5.3 |
| 2 | package.path = [[/Users/hisham/projects/luarocks/src/?.lua;]]..package.path | ||
| 2 | 3 | ||
| 3 | -- this should be loaded first. | 4 | -- this should be loaded first. |
| 4 | local cfg = require("luarocks.core.cfg") | 5 | 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 @@ | |||
| 1 | #!/usr/bin/env lua | 1 | #!/Programs/Lua/5.3.3/bin/lua-5.3 |
| 2 | package.path = [[/Users/hisham/projects/luarocks/src/?.lua;]]..package.path | ||
| 2 | 3 | ||
| 3 | -- this should be loaded first. | 4 | -- this should be loaded first. |
| 4 | local cfg = require("luarocks.core.cfg") | 5 | local cfg = require("luarocks.core.cfg") |
