File tree Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -ev
4
+
5
+ PROTO_VERSION=" $1 "
6
+ PROTO_FOLDER=" /tmp/proto$PROTO_VERSION "
7
+
8
+ # Can't check for presence of directory as cache auto-creates it.
9
+ if [ ! -f " $PROTO_FOLDER /bin/protoc" ]; then
10
+ wget -O - " https://github.com/google/protobuf/archive/v${PROTO_VERSION} .tar.gz" | tar xz -C /tmp
11
+ cd " /tmp/protobuf-${PROTO_VERSION} "
12
+ ./autogen.sh
13
+ ./configure --prefix=" $PROTO_FOLDER " --disable-shared
14
+ make -j2
15
+ make install
16
+ fi
17
+ echo " protoc is available at $PROTO_FOLDER /bin/protoc"
Original file line number Diff line number Diff line change
1
+ sudo : false
2
+
1
3
language : java
4
+
5
+ notifications :
6
+ email : false
7
+
8
+ env :
9
+ global :
10
+ - PROTO_VERSION=2.4.1
11
+ - PATH="/tmp/proto$PROTO_VERSION/bin:$PATH"
12
+
2
13
jdk :
3
14
- oraclejdk8
4
15
- oraclejdk7
5
16
- openjdk7
6
17
- openjdk6
18
+
19
+ before_install :
20
+ - .buildscript/build-proto.sh $PROTO_VERSION
21
+
22
+ cache :
23
+ directories :
24
+ - /tmp/proto$PROTO_VERSION
You can’t perform that action at this time.
0 commit comments