Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.

Commit 781ff16

Browse files
committed
Add cache to the travis build
Attempt to cache v8's git repo in order to shorten the build time.
1 parent 176f81f commit 781ff16

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ deploy:
4444
on:
4545
tags: true
4646
condition: $TRAVIS_OS_NAME = osx
47+
cache:
48+
bundler: true
49+
directories:
50+
- vendor/v8/.git
4751
notifications:
4852
recipients:
4953
- cowboyd@thefrontside.net

ext/libv8/builder.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def setup_build_deps!
107107
end
108108
Dir.chdir('v8') do
109109
system "git checkout Makefile" # Work around a weird bug on FreeBSD
110-
unless system "git checkout #{source_version}"
110+
unless system "git checkout #{source_version} -- ."
111111
fail "unable to checkout source for v8 #{source_version}"
112112
end
113113
system "gclient sync" or fail "could not sync v8 build dependencies"

0 commit comments

Comments
 (0)