Do not cache git repos on travis
Git logs stuff which causes cache invalidation.
This commit is contained in:
parent
1236a48a40
commit
a9050e0759
11
hererocks.py
11
hererocks.py
@ -175,7 +175,7 @@ class Program(object):
|
|||||||
def fetch_repo(self, ref):
|
def fetch_repo(self, ref):
|
||||||
message = "Cloning {} from {} @{}".format(self.title, self.repo, ref)
|
message = "Cloning {} from {} @{}".format(self.title, self.repo, ref)
|
||||||
|
|
||||||
if self.repo == self.default_repo:
|
if self.repo == self.default_repo and not opts.no_git_cache:
|
||||||
# Default repos are cached.
|
# Default repos are cached.
|
||||||
if not os.path.exists(opts.downloads):
|
if not os.path.exists(opts.downloads):
|
||||||
os.makedirs(opts.downloads)
|
os.makedirs(opts.downloads)
|
||||||
@ -618,12 +618,13 @@ def main():
|
|||||||
default=get_default_lua_target())
|
default=get_default_lua_target())
|
||||||
parser.add_argument("--downloads",
|
parser.add_argument("--downloads",
|
||||||
# help="Cache downloads in 'DOWNLOADS' directory.",
|
# help="Cache downloads in 'DOWNLOADS' directory.",
|
||||||
help=argparse.SUPPRESS,
|
help=argparse.SUPPRESS, default=get_default_cache())
|
||||||
default=get_default_cache())
|
parser.add_argument("--no-git-cache",
|
||||||
|
# help="Do not cache default git repos.",
|
||||||
|
help=argparse.SUPPRESS, action="store_true", default=False)
|
||||||
parser.add_argument("--builds",
|
parser.add_argument("--builds",
|
||||||
# help="Cache Lua and LuaJIT builds in 'BUILDS' directory.",
|
# help="Cache Lua and LuaJIT builds in 'BUILDS' directory.",
|
||||||
help=argparse.SUPPRESS,
|
help=argparse.SUPPRESS, default=None)
|
||||||
default=None)
|
|
||||||
parser.add_argument("--verbose", default=False, action="store_true",
|
parser.add_argument("--verbose", default=False, action="store_true",
|
||||||
help="Show executed commands and their output.")
|
help="Show executed commands and their output.")
|
||||||
parser.add_argument("-v", "--version", help="Show program's version number and exit.",
|
parser.add_argument("-v", "--version", help="Show program's version number and exit.",
|
||||||
|
|||||||
2
test.sh
2
test.sh
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -ev
|
set -ev
|
||||||
export PATH="$PWD/test/here/bin:$PATH"
|
export PATH="$PWD/test/here/bin:$PATH"
|
||||||
HEREROCKS="python hererocks.py test/here --downloads=test/cache"
|
HEREROCKS="python hererocks.py test/here --downloads=test/cache --no-git-cache"
|
||||||
|
|
||||||
rm test/here -rf
|
rm test/here -rf
|
||||||
$HEREROCKS -l^ -r^
|
$HEREROCKS -l^ -r^
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user