Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
dist: trusty

language: java

jdk:
- oraclejdk8

install:
- pip3 install protobuf
- pip3 install tensorflow
before_install:
- sudo apt-get update
- sudo apt-get install python3-pip
- sudo pip3 install protobuf
- sudo pip3 install tensorflow

script:
- mvn clean compile test
- mvn package -Dcheckstyle.skip=true -DskipTests=true -Dmaven.javadoc.skip=true
- release/protoc_install.sh
- release/install.sh
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,7 @@
<failOnViolation>true</failOnViolation>
<includeResources>false</includeResources>
<includeTestSourceDirectory>true</includeTestSourceDirectory>
<skip>true</skip>
</configuration>
<executions>
<!--
Expand Down
4 changes: 3 additions & 1 deletion release/install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash
set -ev

DIR=`dirname "$0"`
DIR="$( cd "$(dirname "$0")" ; pwd -P )"

Expand All @@ -9,8 +11,8 @@ elif [ -f $OUTDIR ]; then
rm -f $OUTDIR
fi

cd $DIR
# Protocol buffer compilation
cd $DIR
mkdir generated
protoc -I=$DIR --python_out=$OUTDIR $DIR/template_release_info.proto $DIR/template_ui_metadata.proto $DIR/templates.proto

Expand Down
10 changes: 10 additions & 0 deletions release/protoc_install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
set -ev

PROTOBUF_VERSION=3.6.0
PROTOC_FILENAME=protoc-${PROTOBUF_VERSION}-linux-x86_64.zip
pushd /home/travis
wget https://github.com/google/protobuf/releases/download/v${PROTOBUF_VERSION}/${PROTOC_FILENAME}
unzip ${PROTOC_FILENAME}
bin/protoc --version
popd