mirror of
https://github.com/denoland/deno.git
synced 2024-11-22 04:51:22 +00:00
53 lines
1.4 KiB
YAML
53 lines
1.4 KiB
YAML
language: go
|
|
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
|
|
#- $GOPATH/src/github.com/ry/v8worker2/out
|
|
env:
|
|
global:
|
|
- USE_CCACHE=1
|
|
- PROTOBUF_ROOT=$HOME/protobuf
|
|
- V8WORKER2_OUT=$HOME/v8worker2_out
|
|
before_install: |
|
|
# ccache
|
|
unset CCACHE_DISABLE
|
|
mkdir -p $HOME/.ccache
|
|
export PATH=/usr/lib/ccache:$PATH
|
|
|
|
# protobuf
|
|
export PATH=$PROTOBUF_ROOT/bin:$PATH
|
|
if ! [ -x $PROTOBUF_ROOT/bin/protoc ]; then
|
|
rm -rf $PROTOBUF_ROOT
|
|
mkdir -p $PROTOBUF_ROOT
|
|
pushd $PROTOBUF_ROOT
|
|
wget https://github.com/google/protobuf/releases/download/v3.1.0/protoc-3.1.0-linux-x86_64.zip
|
|
unzip protoc-3.1.0-linux-x86_64.zip
|
|
popd
|
|
fi
|
|
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
|
|
- go get -u github.com/golang/protobuf/protoc-gen-go
|
|
- go get -u github.com/jteeuwen/go-bindata/...
|
|
- yarn
|
|
script:
|
|
- make lint
|
|
- make test
|