Skip to content

Commit

Permalink
Try to fix travis
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed May 25, 2018
1 parent 08e005d commit 8eeeded
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,22 @@ env:
- USE_CCACHE=1
- PROTOBUF_ROOT=$HOME/protobuf
before_install: |
if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
# protoc
if [ -d $PROTOBUF_ROOT ]; then
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
export PATH=$PROTOBUF_ROOT/bin:$PATH
fi
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:
- mkdir -p $HOME/.ccache
- export PATH=/usr/lib/ccache:$PATH
- go get -u github.com/jteeuwen/go-bindata/...
- go get -d github.com/ry/v8worker2
- (cd $GOPATH/src/github.com/ry/v8worker2 && ./tools/build.py)
- yarn
script:
- yarn lint-version
- make lint
Expand Down

0 comments on commit 8eeeded

Please sign in to comment.