Skip to content

Commit 82cffbe

Browse files
authored
Upgrade Travis to Xenial (#73)
1 parent 17d8fe6 commit 82cffbe

File tree

1 file changed

+13
-57
lines changed

1 file changed

+13
-57
lines changed

.travis.yml

+13-57
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
sudo: required
2-
dist: trusty
2+
dist: xenial
3+
4+
services:
5+
- mysql
36

47
language: php
58

69
php:
7-
- 5.5
810
- 5.6
911
- 7.0
1012
- 7.1
@@ -18,21 +20,20 @@ env:
1820
- R=3.5
1921
global:
2022
- PHPUNIT=3.7.33
23+
R=3.2.3
2124

2225
matrix:
23-
include:
24-
- php: 5.5
2526

26-
- php: 5.5
27+
include:
28+
- php: 7.0
2729
env:
2830
- COVERALLS=1
2931
- R=3.0.2
3032

31-
- php: 5.5
33+
- php: 7.0
3234
env:
3335
- LINTR=1
34-
- LINTR_COMMENT_BOT=false
35-
- R=3.4
36+
LINTR_COMMENT_BOT=false
3637

3738
- php: 7.0
3839
env:
@@ -102,59 +103,14 @@ before_script:
102103
- sudo sh -c "if [ '$R' != '3.5' ]; then apt-get install -y --force-yes r-cran-rserve; fi"
103104
- sudo sh -c "if [ '$R' = '3.5' ]; then wget \"https://www.rforge.net/Rserve/snapshot/Rserve_1.8-6.tar.gz\"; fi"
104105
- sudo sh -c "if [ '$R' = '3.5' ]; then R CMD INSTALL Rserve_1.8-6.tar.gz; fi"
105-
- sudo apt-get install -y --force-yes libcurl4-gnutls-dev
106-
- sudo apt-get install -y --force-yes libxml2-dev
106+
- sudo sh -c "if [ '$LINTR' = '1' ]; then sudo apt-get install --yes r-base-dev; fi"
107107
- sudo mkdir -p ~/R/Library
108108
- sudo echo 'R_LIBS=~/R/Library' > ~/.Renviron
109109
- sudo echo 'options(repos = "https://cran.rstudio.com")' > ~/.Rprofile
110-
- sh -c "if [ '$R' = '3.0.2' ]; then wget \"https://cran.r-project.org/src/contrib/Archive/gtools/gtools_3.4.1.tar.gz\" -O \"gtools_3.4.1.tar.gz\"; fi"
111-
- sudo sh -c "if [ '$R' = '3.0.2' ]; then Rscript -e 'if(!\"gtools\" %in% rownames(installed.packages())) { install.packages(\"gtools_3.4.1.tar.gz\", repo = NULL, type=\"source\") }'; fi"
112-
- sh -c "if [ '$R' = '3.0.2' ]; then wget \"https://cran.r-project.org/src/contrib/Archive/gdata/gdata_2.13.3.tar.gz\" -O \"gdata_2.13.3.tar.gz\"; fi"
113-
- sudo sh -c "if [ '$R' = '3.0.2' ]; then Rscript -e 'if(!\"gdata\" %in% rownames(installed.packages())) { install.packages(\"gdata_2.13.3.tar.gz\", repo = NULL, type=\"source\") }'; fi"
114-
- sh -c "if [ '$R' = '3.0.2' ]; then wget \"https://cran.r-project.org/src/contrib/bitops_1.0-6.tar.gz\" -O \"bitops_1.0-6.tar.gz\"; fi"
115-
- sudo sh -c "if [ '$R' = '3.0.2' ]; then Rscript -e 'if(!\"bitops\" %in% rownames(installed.packages())) { install.packages(\"bitops_1.0-6.tar.gz\", repo = NULL, type=\"source\") }'; fi"
116-
- sh -c "if [ '$R' = '3.0.2' ]; then wget \"https://cran.r-project.org/src/contrib/Archive/caTools/caTools_1.17.tar.gz\" -O \"caTools_1.17.tar.gz\"; fi"
117-
- sudo sh -c "if [ '$R' = '3.0.2' ]; then Rscript -e 'if(!\"caTools\" %in% rownames(installed.packages())) { install.packages(\"caTools_1.17.tar.gz\", repo = NULL, type=\"source\") }'; fi"
118-
- sh -c "if [ '$R' = '3.0.2' ]; then wget \"https://cran.r-project.org/src/contrib/Archive/gplots/gplots_2.14.1.tar.gz\" -O \"gplots_2.14.1.tar.gz\"; fi"
119-
- sudo sh -c "if [ '$R' = '3.0.2' ]; then Rscript -e 'if(!\"gplots\" %in% rownames(installed.packages())) { install.packages(\"gplots_2.14.1.tar.gz\", repo = NULL, type=\"source\") }'; fi"
120-
- sh -c "if [ '$R' = '3.0.2' ]; then wget \"https://cran.r-project.org/src/contrib/Archive/Rcpp/Rcpp_0.11.2.tar.gz\" -O \"Rcpp_0.11.2.tar.gz\"; fi"
121-
- sudo sh -c "if [ '$R' = '3.0.2' ]; then Rscript -e 'if(!\"Rcpp\" %in% rownames(installed.packages())) { install.packages(\"Rcpp_0.11.2.tar.gz\", repo = NULL, type=\"source\") }'; fi"
122-
- sh -c "if [ '$R' = '3.0.2' ]; then wget \"https://cran.r-project.org/src/contrib/Archive/plyr/plyr_1.8.1.tar.gz\" -O \"plyr_1.8.1.tar.gz\"; fi"
123-
- sudo sh -c "if [ '$R' = '3.0.2' ]; then Rscript -e 'if(!\"plyr\" %in% rownames(installed.packages())) { install.packages(\"plyr_1.8.1.tar.gz\", repo = NULL, type=\"source\") }'; fi"
124-
- sh -c "if [ '$R' = '3.0.2' ]; then wget \"https://cran.r-project.org/src/contrib/Archive/digest/digest_0.6.4.tar.gz\" -O \"digest_0.6.4.tar.gz\"; fi"
125-
- sudo sh -c "if [ '$R' = '3.0.2' ]; then Rscript -e 'if(!\"digest\" %in% rownames(installed.packages())) { install.packages(\"digest_0.6.4.tar.gz\", repo = NULL, type=\"source\") }'; fi"
126-
- sh -c "if [ '$R' = '3.0.2' ]; then wget \"https://cran.r-project.org/src/contrib/Archive/gtable/gtable_0.1.2.tar.gz\" -O \"gtable_0.1.2.tar.gz\"; fi"
127-
- sudo sh -c "if [ '$R' = '3.0.2' ]; then Rscript -e 'if(!\"gtable\" %in% rownames(installed.packages())) { install.packages(\"gtable_0.1.2.tar.gz\", repo = NULL, type=\"source\") }'; fi"
128-
- sh -c "if [ '$R' = '3.0.2' ]; then wget \"https://cran.r-project.org/src/contrib/Archive/stringr/stringr_0.6.2.tar.gz\" -O \"stringr_0.6.2.tar.gz\"; fi"
129-
- sudo sh -c "if [ '$R' = '3.0.2' ]; then Rscript -e 'if(!\"stringr\" %in% rownames(installed.packages())) { install.packages(\"stringr_0.6.2.tar.gz\", repo = NULL, type=\"source\") }'; fi"
130-
- sh -c "if [ '$R' = '3.0.2' ]; then wget \"https://cran.r-project.org/src/contrib/Archive/reshape2/reshape2_1.4.tar.gz\" -O \"reshape2_1.4.tar.gz\"; fi"
131-
- sudo sh -c "if [ '$R' = '3.0.2' ]; then Rscript -e 'if(!\"reshape2\" %in% rownames(installed.packages())) { install.packages(\"reshape2_1.4.tar.gz\", repo = NULL, type=\"source\") }'; fi"
132-
- sh -c "if [ '$R' = '3.0.2' ]; then wget \"https://cran.r-project.org/src/contrib/Archive/RColorBrewer/RColorBrewer_1.0-5.tar.gz\" -O \"RColorBrewer_1.0-5.tar.gz\"; fi"
133-
- sudo sh -c "if [ '$R' = '3.0.2' ]; then Rscript -e 'if(!\"RColorBrewer\" %in% rownames(installed.packages())) { install.packages(\"RColorBrewer_1.0-5.tar.gz\", repo = NULL, type=\"source\") }'; fi"
134-
- sh -c "if [ '$R' = '3.0.2' ]; then wget \"https://cran.r-project.org/src/contrib/dichromat_2.0-0.tar.gz\" -O \"dichromat_2.0-0.tar.gz\"; fi"
135-
- sudo sh -c "if [ '$R' = '3.0.2' ]; then Rscript -e 'if(!\"dichromat\" %in% rownames(installed.packages())) { install.packages(\"dichromat_2.0-0.tar.gz\", repo = NULL, type=\"source\") }'; fi"
136-
- sh -c "if [ '$R' = '3.0.2' ]; then wget \"https://cran.r-project.org/src/contrib/Archive/colorspace/colorspace_1.2-4.tar.gz\" -O \"colorspace_1.2-4.tar.gz\"; fi"
137-
- sudo sh -c "if [ '$R' = '3.0.2' ]; then Rscript -e 'if(!\"colorspace\" %in% rownames(installed.packages())) { install.packages(\"colorspace_1.2-4.tar.gz\", repo = NULL, type=\"source\") }'; fi"
138-
- sh -c "if [ '$R' = '3.0.2' ]; then wget \"https://cran.r-project.org/src/contrib/Archive/munsell/munsell_0.4.2.tar.gz\" -O \"munsell_0.4.2.tar.gz\"; fi"
139-
- sudo sh -c "if [ '$R' = '3.0.2' ]; then Rscript -e 'if(!\"munsell\" %in% rownames(installed.packages())) { install.packages(\"munsell_0.4.2.tar.gz\", repo = NULL, type=\"source\") }'; fi"
140-
- sh -c "if [ '$R' = '3.0.2' ]; then wget \"https://cran.r-project.org/src/contrib/Archive/labeling/labeling_0.2.tar.gz\" -O \"labeling_0.2.tar.gz\"; fi"
141-
- sudo sh -c "if [ '$R' = '3.0.2' ]; then Rscript -e 'if(!\"labeling\" %in% rownames(installed.packages())) { install.packages(\"labeling_0.2.tar.gz\", repo = NULL, type=\"source\") }'; fi"
142-
- sh -c "if [ '$R' = '3.0.2' ]; then wget \"https://cran.r-project.org/src/contrib/Archive/scales/scales_0.2.4.tar.gz\" -O \"scales_0.2.4.tar.gz\"; fi"
143-
- sudo sh -c "if [ '$R' = '3.0.2' ]; then Rscript -e 'if(!\"scales\" %in% rownames(installed.packages())) { install.packages(\"scales_0.2.4.tar.gz\", repo = NULL, type=\"source\") }'; fi"
144-
- sh -c "if [ '$R' = '3.0.2' ]; then wget \"https://cran.r-project.org/src/contrib/Archive/proto/proto_0.3-10.tar.gz\" -O \"proto_0.3-10.tar.gz\"; fi"
145-
- sudo sh -c "if [ '$R' = '3.0.2' ]; then Rscript -e 'if(!\"proto\" %in% rownames(installed.packages())) { install.packages(\"proto_0.3-10.tar.gz\", repo = NULL, type=\"source\") }'; fi"
146-
- sh -c "if [ '$R' = '3.0.2' ]; then wget \"https://cran.r-project.org/src/contrib/Archive/ggplot2/ggplot2_1.0.0.tar.gz\" -O \"ggplot2_1.0.0.tar.gz\"; fi"
147-
- sudo sh -c "if [ '$R' = '3.0.2' ]; then Rscript -e 'if(!\"ggplot2\" %in% rownames(installed.packages())) { install.packages(\"ggplot2_1.0.0.tar.gz\", repo = NULL, type=\"source\") }'; fi"
148-
- sh -c "if [ '$R' = '3.0.2' ]; then wget \"https://cran.r-project.org/src/contrib/psy_1.1.tar.gz\" -O \"psy_1.1.tar.gz\"; fi"
149-
- sudo sh -c "if [ '$R' = '3.0.2' ]; then Rscript -e 'if(!\"psy\" %in% rownames(installed.packages())) { install.packages(\"psy_1.1.tar.gz\", repo = NULL, type=\"source\") }'; fi"
150-
- sudo sh -c "if [ '$R' != '3.0.2' ]; then Rscript -e 'if(!\"psy\" %in% rownames(installed.packages())) { install.packages(\"psy\", dependencies = TRUE) }'; fi"
151-
- sudo sh -c "if [ '$R' != '3.0.2' ]; then Rscript -e 'if(!\"gplots\" %in% rownames(installed.packages())) { install.packages(\"gplots\", dependencies = TRUE) }'; fi"
152-
- sudo sh -c "if [ '$R' != '3.0.2' ]; then Rscript -e 'if(!\"ggplot2\" %in% rownames(installed.packages())) { install.packages(\"ggplot2\", dependencies = TRUE) }'; fi"
110+
- sudo sh -c "Rscript -e 'if(!\"psy\" %in% rownames(installed.packages())) { install.packages(\"psy\", dependencies = TRUE) }';"
111+
- sudo sh -c "Rscript -e 'if(!\"gplots\" %in% rownames(installed.packages())) { install.packages(\"gplots\", dependencies = TRUE) }'"
112+
- sudo sh -c "Rscript -e 'if(!\"ggplot2\" %in% rownames(installed.packages())) { install.packages(\"ggplot2\", dependencies = TRUE) }'"
153113
- sudo sh -c "if [ '$LINTR' = '1' ]; then Rscript -e 'if(!\"lintr\" %in% rownames(installed.packages())) { install.packages(\"lintr\", dependencies = TRUE) }'; fi"
154-
- sudo sh -c "if [ '$R' != '3.5' ]; then rm /usr/lib/R/bin/Rserve; fi"
155-
- sudo sh -c "if [ '$R' != '3.5' ]; then rm /usr/lib/R/bin/Rserve.dbg; fi"
156-
- sudo sh -c "if [ '$R' != '3.5' ]; then ln -s /usr/lib/R/site-library/Rserve/libs/Rserve /usr/lib/R/bin/Rserve; fi"
157-
- sudo sh -c "if [ '$R' != '3.5' ]; then ln -s /usr/lib/R/site-library/Rserve/libs/Rserve.dbg /usr/lib/R/bin/Rserve.dbg; fi"
158114
- sudo R CMD Rserve
159115
- sh -c "mysql -e 'CREATE DATABASE qdnatool_test;'"
160116
- chmod -R 777 ./app/tmp

0 commit comments

Comments
 (0)