deno/.travis.yml

53 lines
1.4 KiB
YAML
Raw Normal View History

2018-05-14 07:06:09 +00:00
language: go
go:
- 1.9.2
2018-05-22 19:25:16 +00:00
before_cache:
- ccache -s
2018-05-28 15:25:14 +00:00
- mv $GOPATH/src/github.com/ry/v8worker2/out $V8WORKER2_OUT
2018-05-23 17:38:43 +00:00
cache:
directories:
- $HOME/.ccache
2018-05-23 18:29:14 +00:00
- $PROTOBUF_ROOT
2018-05-28 15:25:14 +00:00
- $V8WORKER2_OUT
2018-05-27 19:01:07 +00:00
# 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
2018-05-23 18:29:14 +00:00
env:
global:
- USE_CCACHE=1
- PROTOBUF_ROOT=$HOME/protobuf
2018-05-28 15:25:14 +00:00
- V8WORKER2_OUT=$HOME/v8worker2_out
2018-05-23 18:29:14 +00:00
before_install: |
2018-05-27 18:35:55 +00:00
# ccache
unset CCACHE_DISABLE
mkdir -p $HOME/.ccache
export PATH=/usr/lib/ccache:$PATH
# protobuf
2018-05-25 16:29:40 +00:00
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
2018-05-23 18:29:14 +00:00
fi
2018-05-14 07:06:09 +00:00
install:
2018-05-27 20:54:54 +00:00
- env
- go get -d github.com/ry/v8worker2
2018-05-28 15:25:14 +00:00
- |
if [ -d $V8WORKER2_OUT ]; then
mv $V8WORKER2_OUT $GOPATH/src/github.com/ry/v8worker2/out
fi
2018-05-27 20:54:54 +00:00
- (cd $GOPATH/src/github.com/ry/v8worker2 && ./tools/build.py)
- go get -u github.com/golang/protobuf/proto
2018-05-27 18:35:55 +00:00
- go get -u github.com/spf13/afero
2018-05-27 16:52:17 +00:00
- go get -u github.com/golang/protobuf/protoc-gen-go
2018-05-22 15:39:37 +00:00
- go get -u github.com/jteeuwen/go-bindata/...
2018-05-25 16:29:40 +00:00
- yarn
2018-05-14 07:06:09 +00:00
script:
- make lint
2018-05-22 15:39:37 +00:00
- make test