From 8ded9d5717fdebcc39101fec0ad163628a065ec6 Mon Sep 17 00:00:00 2001 From: Jon Lee Date: Fri, 1 Mar 2019 14:05:31 -0800 Subject: [PATCH 1/2] Add changes for CI builds and publishing artifacts to bintray. Travis will kick off a build and publish artifacts to bintray upon creating a tag in the "x.y.z.w" format. --- .travis.yml | 44 +++++++++++++++++++++++--------------------- 1 file changed, 23 insertions(+), 21 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8a22c9bc4cd4a..fb0792458b340 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,40 +15,42 @@ dist: trusty language: java env: - - _DUCKTAPE_OPTIONS="--subset 0 --subsets 15" - - _DUCKTAPE_OPTIONS="--subset 1 --subsets 15" - - _DUCKTAPE_OPTIONS="--subset 2 --subsets 15" - - _DUCKTAPE_OPTIONS="--subset 3 --subsets 15" - - _DUCKTAPE_OPTIONS="--subset 4 --subsets 15" - - _DUCKTAPE_OPTIONS="--subset 5 --subsets 15" - - _DUCKTAPE_OPTIONS="--subset 6 --subsets 15" - - _DUCKTAPE_OPTIONS="--subset 7 --subsets 15" - - _DUCKTAPE_OPTIONS="--subset 8 --subsets 15" - - _DUCKTAPE_OPTIONS="--subset 9 --subsets 15" - - _DUCKTAPE_OPTIONS="--subset 10 --subsets 15" - - _DUCKTAPE_OPTIONS="--subset 11 --subsets 15" - - _DUCKTAPE_OPTIONS="--subset 12 --subsets 15" - - _DUCKTAPE_OPTIONS="--subset 13 --subsets 15" - - _DUCKTAPE_OPTIONS="--subset 14 --subsets 15" + global: + # These secure values are encrypted for linkedin/kafka. For use in forked repos, set env vars in your own build - they should win over these (as these won't be decodable in forked builds). + - secure: PF5bwSD7RX+mouOZDTW65AB7AAtB3gr7bMrtA1I2Gas1Qd3EtySvOrFraSjJX9m7CVJOvIVeUEtSlsuINprvi0Z9w3qcPHGEIgGI7BWp1t28pfAvL7Uk/9MXkYDdzc/fb7mH3aW2nk4OgIvP0w0CSAfcVwC2/SFBZ6Dv1n3wKIbjd7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1X9svYxGps6+dy4ITK3QK/bo25Thti2KLceluaAEzoVW2Y+mImu0zTuXPlHoAbJ8/M9UtNpB5M7vcMYrgi2Y6EMakU5mjhdzRTbcC6gmLLdbJuxcbkBtwM/NXE4BLo= jdk: - oraclejdk8 - + before_install: - gradle wrapper -script: - - ./gradlew rat - - ./gradlew systemTestLibs && /bin/bash ./tests/docker/run_tests.sh +# By default, the install step will run ./gradlew assemble, which actually builds. Skip this step and do the actual +# build during the build step. +install: true -services: - - docker +# Excluded integration tests for now because Travis will hit build timeout (50 minutes) when including them. +# Also excluded streams unitTest because they often fail with "pure virtual method called" error (KAFKA-3502). +script: + - ./gradlew clean compileJava compileScala compileTestJava compileTestScala checkstyleMain checkstyleTest findbugsMain unitTest -x :streams:unitTest rat --no-daemon -PxmlFindBugsReport=true -PtestLoggingEvents=started,passed,skipped,failed before_cache: - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock - rm -fr $HOME/.gradle/caches/*/plugin-resolution/ + cache: directories: - "$HOME/.m2/repository" - "$HOME/.gradle/caches/" - "$HOME/.gradle/wrapper/" + +# This will triger publishing artifacts to bintray upon the creation of a new tag in the "x.y.z.w" format. +deploy: + provider: script + script: ./gradlew -Pversion=$TRAVIS_TAG uploadArchivesAll + skip_cleanup: true + on: + tags: true + all_branches: true + condition: $TRAVIS_TAG =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ From 0e342b2600d9974200872f3acf7b64b0c376a148 Mon Sep 17 00:00:00 2001 From: Jon Lee Date: Fri, 8 Mar 2019 10:42:20 -0800 Subject: [PATCH 2/2] Addressed a comment --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index fb0792458b340..c2d9f71a236c4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,6 +32,7 @@ install: true # Excluded integration tests for now because Travis will hit build timeout (50 minutes) when including them. # Also excluded streams unitTest because they often fail with "pure virtual method called" error (KAFKA-3502). +# TODO: re-enable these tests when the mentioned issues are resolved. script: - ./gradlew clean compileJava compileScala compileTestJava compileTestScala checkstyleMain checkstyleTest findbugsMain unitTest -x :streams:unitTest rat --no-daemon -PxmlFindBugsReport=true -PtestLoggingEvents=started,passed,skipped,failed