Repository: incubator-livy
Updated Branches:
  refs/heads/master 10373b6e2 -> 06cfa7bce


[MINOR] Fix travis builds

Each individual commit has a more detailed description of what's being changed 
and why.

At the moment, Travis builds don't work:

* https://travis-ci.org/mineo/incubator-livy/builds/359324523 - the `sudo pip3 
install --upgrade pip "setuptools < 36"` command fails with `sudo: pip3: 
command not found`.
* fixing that, the `failing the org.apache.rat:apache-rat-plugin:0.12:check` 
maven goal fails because it sees `.pytest_cache` folders that it doesn't know 
about (https://github.com/pytest-dev/pytest/issues/3286, failure in 
https://travis-ci.org/mineo/incubator-livy/jobs/359326261, check the raw log).

This pull request works around the pip3 failures by just using pip as a 
callable module (possible since Python 3.4) and adding `.pytest_cache` to 
raw-excludes, as well as showing the contents of `rat.txt` files in the 
`after_failure` step. I concede that the pip change is more of a workaround, 
but I don't know how else to fix it and unblock testing.

Running the tests on travis.

Please review https://livy.incubator.apache.org/community/ before opening a 
pull request.

Author: Wieland Hoffmann <whoff...@de.ibm.com>

Closes #84 from mineo/rat.


Project: http://git-wip-us.apache.org/repos/asf/incubator-livy/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-livy/commit/06cfa7bc
Tree: http://git-wip-us.apache.org/repos/asf/incubator-livy/tree/06cfa7bc
Diff: http://git-wip-us.apache.org/repos/asf/incubator-livy/diff/06cfa7bc

Branch: refs/heads/master
Commit: 06cfa7bce2cde205895be31fa83adc006e7d4ec2
Parents: 10373b6
Author: Wieland Hoffmann <whoff...@de.ibm.com>
Authored: Mon Apr 9 13:47:36 2018 +0800
Committer: jerryshao <ss...@hortonworks.com>
Committed: Mon Apr 9 13:48:18 2018 +0800

----------------------------------------------------------------------
 .rat-excludes | 1 +
 .travis.yml   | 6 +++---
 2 files changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-livy/blob/06cfa7bc/.rat-excludes
----------------------------------------------------------------------
diff --git a/.rat-excludes b/.rat-excludes
index 0829aaa..d0b3a9b 100644
--- a/.rat-excludes
+++ b/.rat-excludes
@@ -23,6 +23,7 @@ logs/*
 **/derby.log
 **/metastore_db/**
 **/.eggs/**
+**/.pytest_cache/**
 **/Gemfile.lock
 **/jquery-2.1.1.min.js
 docs/**/*.html

http://git-wip-us.apache.org/repos/asf/incubator-livy/blob/06cfa7bc/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
index f1247f1..e9ae42e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -62,9 +62,9 @@ before_install:
   - sudo apt-get -y install libkrb5-dev
   - sudo apt-get -y remove python-setuptools
   - sudo pip2 install --upgrade pip "setuptools < 36"
-  - sudo pip3 install --upgrade pip "setuptools < 36"
+  - sudo python3 -m pip install --upgrade pip "setuptools < 36"
   - sudo pip2 install codecov cloudpickle
-  - sudo pip3 install cloudpickle
+  - sudo python3 -m pip install cloudpickle
 
 install:
   - mvn $MVN_FLAG install -Dskip -DskipTests -DskipITs 
-Dmaven.javadoc.skip=true -B -V
@@ -80,4 +80,4 @@ after_success:
   - bash <(curl -s https://codecov.io/bash)
 
 after_failure:
-  - for log in `find * -name "*.log" -o -name "stderr" -o -name "stdout"`; do 
echo "=========$log========="; cat $log; done
+  - for log in `find * -name "*.log" -o -name "stderr" -o -name "stdout" -o 
-name "rat.txt"`; do echo "=========$log========="; cat $log; done

Reply via email to