vdiravka commented on a change in pull request #1636: DRILL-7031: Add Travis job that runs protobuf generation command and checks if all protobufs are up-to-date URL: https://github.com/apache/drill/pull/1636#discussion_r254626102
########## File path: .travis.yml ########## @@ -13,13 +13,43 @@ # See the License for the specific language governing permissions and # limitations under the License. -before_install: git fetch --unshallow +matrix: + fast_finish: true + include: + - env: PHASE=tests + - env: PHASE=protobuf sudo: required language: java jdk: - openjdk8 cache: directories: - "$HOME/.m2" -install: MAVEN_OPTS="-Xms1G -Xmx1G" mvn install --batch-mode -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -DskipTests=true -Dmaven.javadoc.skip=true -Dmaven.source.skip=true -script: mvn install -Drat.skip=false -Dlicense.skip=false -DexcludedGroups="org.apache.drill.categories.SlowTest,org.apache.drill.categories.UnlikelyTest,org.apache.drill.categories.SecurityTest" -DforkCount=1 -DmemoryMb=2560 -DdirectMemoryMb=4608 -Ptravis +before_install: + - git fetch --unshallow + # Install libraries required for protobuf generation + - | + if [ $PHASE = "protobuf" ]; then \ + sudo apt-get install -y libboost-all-dev libzookeeper-mt-dev libsasl2-dev cmake libcppunit-dev && \ + pushd .. && wget https://github.com/google/protobuf/releases/download/v2.5.0/protobuf-2.5.0.tar.gz && \ + tar -xzvf protobuf-2.5.0.tar.gz && \ + pushd protobuf-2.5.0 && ./configure --prefix=/usr && make && sudo make install && popd && popd; \ + fi +install: + # For tests phase runs unit tests + # For protobuf phase, builds and checks Drill for license and checkstyle, regenerates java and c++ protobufs Review comment: ```suggestion # For protobuf phase: builds Drill project, performs license checkstyle goal and regenerates Java and C++ Protobuf files ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
