Skip to content

Commit

Permalink
trying travis
Browse files Browse the repository at this point in the history
  • Loading branch information
awalterschulze committed Sep 10, 2015
1 parent d672106 commit 6b24a07
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
env:
- PROTOBUF_VERSION=3.0.0-alpha-3

before_install:
- ./install-protobuf.sh
- PATH=/home/travis/bin:$PATH protoc --version
- go get -u github.com/gogo/protobuf/protoc-gen-gogo/descriptor
- go get -u github.com/gogo/protobuf/proto

script:
- PATH=/home/travis/bin:$PATH make all

language: go

go:
- 1.5
27 changes: 27 additions & 0 deletions install-protobuf.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/usr/bin/env bash

set -ex

die() {
echo "$@" >&2
exit 1
}

case "$PROTOBUF_VERSION" in
2*)
basename=protobuf-$PROTOBUF_VERSION
;;
3*)
basename=protobuf-cpp-$PROTOBUF_VERSION
;;
*)
die "unknown protobuf version: $PROTOBUF_VERSION"
;;
esac

wget https://github.com/google/protobuf/releases/download/v$PROTOBUF_VERSION/$basename.tar.gz
tar xzf $basename.tar.gz

cd protobuf-$PROTOBUF_VERSION

./configure --prefix=/home/travis && make -j2 && make install

0 comments on commit 6b24a07

Please sign in to comment.