Repository: zeppelin
Updated Branches:
  refs/heads/master a9788ff58 -> 1c7d8fb0f


[HOTFIX] CAN'T install cran packages using apt in Travis CI

### What is this PR for?

[CRAN repository](https://cran.rstudio.com/bin/linux/ubuntu/precise/) for 
precise doens't have `r-cran-evaluate`, `r-cran-base64enc`. This cause the 
whole build failure. (even in the [ubuntu precise 
repo](http://packages.ubuntu.com/search?section=all&arch=any&keywords=r-cran-base64enc&searchon=names))

```
E: Unable to locate package r-cran-evaluate
E: Unable to locate package r-cran-base64enc
apt-get.diagnostics
apt-get install failed
```

You can see those errors in

- (master:HEAD) https://travis-ci.org/apache/zeppelin/builds/184428876
- (master:HEAD~1) https://travis-ci.org/apache/zeppelin/builds/184428084
- (recent 1773 PR) https://travis-ci.org/apache/zeppelin/builds/184435284

### What type of PR is it?
[Hot Fix]

### Todos
* [X] - NOTHING

### What is the Jira issue?

NO. This is hotfix

### How should this be tested?

I tested this in my own travis CI.

- https://travis-ci.org/1ambda/zeppelin/builds/184455104

### Screenshots (if appropriate)

### Questions:
* Does the licenses files need update? - NO
* Is there breaking changes for older versions? - NO
* Does this needs documentation? - NO

Author: 1ambda <[email protected]>

Closes #1774 from 1ambda/hotfix/update-package-list and squashes the following 
commits:

7e997b1 [1ambda] fix: Install evaluate, base64enc in a script


Project: http://git-wip-us.apache.org/repos/asf/zeppelin/repo
Commit: http://git-wip-us.apache.org/repos/asf/zeppelin/commit/1c7d8fb0
Tree: http://git-wip-us.apache.org/repos/asf/zeppelin/tree/1c7d8fb0
Diff: http://git-wip-us.apache.org/repos/asf/zeppelin/diff/1c7d8fb0

Branch: refs/heads/master
Commit: 1c7d8fb0f7f8dd3cb6ce4837053c11c6453b5f18
Parents: a9788ff
Author: 1ambda <[email protected]>
Authored: Fri Dec 16 14:46:04 2016 +0900
Committer: Alexander Bezzubov <[email protected]>
Committed: Fri Dec 16 16:50:49 2016 +0900

----------------------------------------------------------------------
 .travis.yml                              | 2 --
 testing/install_external_dependencies.sh | 2 ++
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/zeppelin/blob/1c7d8fb0/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
index ab70628..acad5c9 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -33,8 +33,6 @@ addons:
     - r-packages-precise
     packages:
     - r-base-dev
-    - r-cran-evaluate
-    - r-cran-base64enc
 
 matrix:
   include:

http://git-wip-us.apache.org/repos/asf/zeppelin/blob/1c7d8fb0/testing/install_external_dependencies.sh
----------------------------------------------------------------------
diff --git a/testing/install_external_dependencies.sh 
b/testing/install_external_dependencies.sh
index d2cef07..ebf7d0f 100755
--- a/testing/install_external_dependencies.sh
+++ b/testing/install_external_dependencies.sh
@@ -27,6 +27,8 @@ if [[ ${PROFILE/"-Pr "} != $PROFILE ]] || [[ 
${PROFILE/"-Psparkr "} != $PROFILE
   source ~/.environ
   if [[ ! -d "$HOME/R/knitr" ]] ; then
     mkdir -p ~/R
+    R -e "install.packages('evaluate', repos = 'http://cran.us.r-project.org', 
lib='~/R')"  > /dev/null 2>&1
+    R -e "install.packages('base64enc', repos = 
'http://cran.us.r-project.org', lib='~/R')"  > /dev/null 2>&1
     R -e "install.packages('knitr', repos = 'http://cran.us.r-project.org', 
lib='~/R')"  > /dev/null 2>&1
   fi
 fi

Reply via email to