2018-05-29 01:35:06 -04:00
|
|
|
language: c++
|
2018-05-29 03:09:49 -04:00
|
|
|
cache:
|
2018-05-29 05:08:11 -04:00
|
|
|
ccache: true
|
2018-05-29 03:09:49 -04:00
|
|
|
directories:
|
|
|
|
- .cache/
|
|
|
|
- node_modules/
|
2018-05-29 05:08:11 -04:00
|
|
|
- $V8WORKER2_OUT_PATH
|
2018-05-23 14:29:14 -04:00
|
|
|
env:
|
|
|
|
global:
|
2018-05-29 05:08:11 -04:00
|
|
|
- V8WORKER2_OUT_PATH=$HOME/v8worker2_out
|
2018-05-23 14:29:14 -04:00
|
|
|
- PROTOBUF_ROOT=$HOME/protobuf
|
|
|
|
before_install: |
|
2018-05-27 14:35:55 -04:00
|
|
|
# protobuf
|
2018-05-25 12:29:40 -04: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 14:29:14 -04:00
|
|
|
fi
|
2018-05-14 03:06:09 -04:00
|
|
|
install:
|
2018-05-29 12:13:13 -04:00
|
|
|
- mkdir -p $GOPATH/src/github.com/ry
|
|
|
|
- ln -s `pwd` $GOPATH/src/github.com/ry/deno
|
2018-05-27 16:54:54 -04:00
|
|
|
- env
|
|
|
|
- go get -d github.com/ry/v8worker2
|
2018-05-29 05:59:36 -04:00
|
|
|
- $GOPATH/src/github.com/ry/v8worker2/build.py --use_ccache --out_path $V8WORKER2_OUT_PATH
|
2018-05-27 16:54:54 -04:00
|
|
|
- go get -u github.com/golang/protobuf/proto
|
2018-05-27 14:35:55 -04:00
|
|
|
- go get -u github.com/spf13/afero
|
2018-05-27 12:52:17 -04:00
|
|
|
- go get -u github.com/golang/protobuf/protoc-gen-go
|
2018-05-22 11:39:37 -04:00
|
|
|
- go get -u github.com/jteeuwen/go-bindata/...
|
2018-05-25 12:29:40 -04:00
|
|
|
- yarn
|
2018-05-14 03:06:09 -04:00
|
|
|
script:
|
|
|
|
- make lint
|
2018-05-22 11:39:37 -04:00
|
|
|
- make test
|