summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-05-28 11:25:14 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-05-28 11:25:14 -0400
commit71c4f5e5bb5600229efb29d014af8c3a84356682 (patch)
tree9c0129e6eec0abb63fd9ab251ef8bc02ec230185
parent6a489daa0206abecdae240d5e2ac4739a5682896 (diff)
Attempt to fix v8worker2 caching.
-rw-r--r--.travis.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index dd6eb80ac..d3e6c20fc 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -3,10 +3,12 @@ go:
- 1.9.2
before_cache:
- ccache -s
+ - mv $GOPATH/src/github.com/ry/v8worker2/out $V8WORKER2_OUT
cache:
directories:
- $HOME/.ccache
- $PROTOBUF_ROOT
+ - $V8WORKER2_OUT
# Adding the following makes it fail with:
# $ go get ./...
# dispatch.go:5:2: no Go files in /home/travis/gopath/src/github.com/ry/v8worker2
@@ -15,6 +17,7 @@ env:
global:
- USE_CCACHE=1
- PROTOBUF_ROOT=$HOME/protobuf
+ - V8WORKER2_OUT=$HOME/v8worker2_out
before_install: |
# ccache
unset CCACHE_DISABLE
@@ -34,6 +37,10 @@ before_install: |
install:
- env
- go get -d github.com/ry/v8worker2
+ - |
+ if [ -d $V8WORKER2_OUT ]; then
+ mv $V8WORKER2_OUT $GOPATH/src/github.com/ry/v8worker2/out
+ fi
- (cd $GOPATH/src/github.com/ry/v8worker2 && ./tools/build.py)
- go get -u github.com/golang/protobuf/proto
- go get -u github.com/spf13/afero