This is an automated email from the ASF dual-hosted git repository. vanzin pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-livy.git
The following commit(s) were added to refs/heads/master by this push: new 2240c71 [LIVY-557] Make Travis-CI logs less verbose 2240c71 is described below commit 2240c715d38b9d4a9498e4252283430a343ae728 Author: Fathi Salmi, Meisam(mfathisalmi) <mfathisa...@paypal.com> AuthorDate: Fri Feb 15 15:16:45 2019 -0800 [LIVY-557] Make Travis-CI logs less verbose ## What changes were proposed in this pull request? - Set the base travis image to ubuntu Xenial. - Set the Scala version to `2.11.12` to match the version in pom.xml. - Install `r-base` directly from xenial repos (no need to add r-packages). - Combine the two `mvn` builds into one (`script` and `install` sections in `.travis.yml`). - Make apt-get and pip are quiet. - ~Set the SLF4J log level to warn for maven.~ ## How was this patch tested? Tested on Travis: - Before this change, travis logs were about 6K+ lines long. - After this change, the logs are less than 4K for unit tests and less than 3K for integration tests. - I also verified that - Travis uses scala 2.11.12. - r-base is installed. - mvn runs without a problem after combining the two mvn builds. - Warn level messages and outputs of builds/tests are still available in the logs. - apt-get and pip run in quiet mode. ## Sample Travis outputs **A build log that is big to fit into Travis UI (size 4MB)**: https://travis-ci.org/apache/incubator-livy/jobs/487096239 **A build log BEFORE this change (size 643KB)**: https://travis-ci.org/apache/incubator-livy/jobs/487164276 **A build log AFTER this change (size 327KB)**: https://travis-ci.org/apache/incubator-livy/jobs/492011690 **~A build log with mvn log level set to warn (323 KB)**: ~https://travis-ci.org/apache/incubator-livy/jobs/490937880~ This change is reverted because it was silencing useful information in mvn. Task-url: https://issues.apache.org/jira/browse/LIVY-557 Author: Fathi Salmi, Meisam(mfathisalmi) <mfathisa...@paypal.com> Author: Fathi Salmi, Meisam <meisam.fa...@gmail.com> Author: Meisam Fathi <meisam.fa...@gmail.com> Closes #144 from meisam/LIVY-557. --- .travis.yml | 36 +++++++++++++----------------------- 1 file changed, 13 insertions(+), 23 deletions(-) diff --git a/.travis.yml b/.travis.yml index d05e6dc..bc26f82 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,8 +16,9 @@ # sudo: required -dist: trusty +dist: xenial language: scala + - 2.11.12 matrix: include: @@ -37,36 +38,25 @@ matrix: jdk: - oraclejdk8 -addons: - apt: - sources: - r-packages-trusty - packages: - r-base - cache: pip: true directories: - $HOME/.m2 -before_install: - - sudo apt-get -y install python3-pip python-dev - - sudo apt-get -y install libkrb5-dev - - sudo apt-get -y remove python-setuptools - - sudo pip2 install --upgrade "pip < 10.0.0" "setuptools < 36" - - sudo python3 -m pip install --upgrade "pip < 10.0.0" "setuptools < 36" - - sudo pip2 install codecov cloudpickle - - sudo python3 -m pip install cloudpickle - install: - - mvn $MVN_FLAG install -Dskip -DskipTests -DskipITs -Dmaven.javadoc.skip=true -B -V - -before_script: - - sudo pip2 install "requests >= 2.10.0" pytest flaky flake8 requests-kerberos - - sudo pip3 install "requests >= 2.10.0" pytest flaky requests-kerberos + - sudo apt-get -qq install r-base + - sudo apt-get -qq install python3-pip python-dev + - sudo apt-get -qq install libkrb5-dev + - sudo apt-get -qq remove python-setuptools + - sudo pip2 -q install --upgrade "pip < 10.0.0" "setuptools < 36" + - sudo python3 -m pip -q install --upgrade "pip < 10.0.0" "setuptools < 36" + - sudo pip2 -q install codecov cloudpickle + - sudo python3 -m pip -q install cloudpickle + - sudo pip2 -q install "requests >= 2.10.0" pytest flaky flake8 requests-kerberos + - sudo pip3 -q install "requests >= 2.10.0" pytest flaky requests-kerberos script: - - mvn $MVN_FLAG verify -e + - mvn $MVN_FLAG -Dmaven.javadoc.skip=true -B -V -e verify after_success: - bash <(curl -s https://codecov.io/bash)