forked from rOpenGov/eurostat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
executable file
·187 lines (167 loc) · 4.74 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
language: r
sudo: required
cache: packages
dist: trusty
warnings_are_errors: false
notifications:
email:
- leo.lahti@iki.fi
r_packages:
- backports
- broom
- Cairo
- classInt
- countrycode
- curl
- devtools
- ggplot2
- httr
- httpuv
- jsonlite
- knitr
- lubridate
- gdalUtils
- geojson
- geojsonio
- geojsonlint
- jqr
- mapview
- mapproj
- plotrix
- protolite
- rgdal
- RColorBrewer
- readr
- RefManageR
- rmarkdown
- rmapshaper
- roxygen2
- rsdmx
- rvest
- sf
- shiny
- sp
- tmap
- tmaptools
- testthat
- V8
r_github_packages:
- jimhester/covr
- r-dbi/DBI
- r-dbi/RPostgres
- romainfrancois/bibtex
addons:
postgresql: "9.6"
apt:
sources:
- sourceline: 'ppa:opencpu/jq'
- sourceline: 'ppa:ubuntugis/ubuntugis-unstable'
- sourceline: 'deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main'
key_url: 'https://www.postgresql.org/media/keys/ACCC4CF8.asc'
packages:
- libprotobuf-dev
- protobuf-compiler
- libv8-3.14-dev
- libjq-dev
- libudunits2-dev
- libproj-dev
- libgeos-dev
- libspatialite-dev
- libgdal-dev
- libjson-c-dev
- postgresql-server-dev-9.6
env:
global:
- WARNINGS_ARE_ERRORS=1
- GITHUB_REPO: ropengov/eurostat
r_build_args: "--no-resave-data --no-build-vignettes"
r_check_args: "--as-cran --no-build-vignettes"
apt_packages:
- libudunits2-dev
- udunits2
- libv8-dev
- libprotobuf-dev
- libprotoc-dev
- libcairo2-dev
- protobuf-compiler
- valgrind
- libgdal20
- libspatialite-dev
- libproj-dev
- libgeos-dev
- libgdal1-dev
- libgdal-dev
- libgeos-c1v5
- libjq-dev
- netcdf-bin
before_install:
- pip install --user codecov
- sudo apt-get -qq update
- sudo apt-get install -y libxml2-dev
- sudo apt-get install -y libprotobuf-dev protobuf-compiler
- sudo apt-get install libssl-dev
- sudo apt-get install libcairo2-dev
- sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable --yes
- sudo add-apt-repository -y ppa:opencpu/jq
- sudo apt-get --yes --force-yes update -qq
- sudo apt-get --yes install npm
# For RefManageR
- sudo apt-get install -qq qpdf ghostscript poppler-utils
- echo which pdfinfo
# install postgis from source:
- wget http://download.osgeo.org/postgis/source/postgis-2.3.2.tar.gz
- (mv postgis* /tmp; cd /tmp; tar xzf postgis-2.3.2.tar.gz)
- (cd /tmp/postgis-2.3.2 ; ./configure; make; sudo make install)
# activate liblwgeom by:
- sudo ldconfig
# create postgis databases:
- sudo service postgresql restart
- createdb postgis
- psql -d postgis -c "CREATE EXTENSION postgis;"
- psql -d postgis -c "GRANT CREATE ON DATABASE postgis TO travis"
- psql -d postgis -c "GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO travis"
- createdb empty
- psql -d empty -c "CREATE EXTENSION postgis;"
# - R -q -e 'install.packages("devtools"); devtools::install_github("ropenscilabs/tic"); tic::prepare_all_stages()'
- Rscript -e 'install.packages("broom",repos="http://cran.us.r-project.org")'
- Rscript -e 'install.packages("backports")'
- Rscript -e 'install.packages("classInt")'
- Rscript -e 'install.packages("jsonlite")'
- Rscript -e 'install.packages("curl")'
- Rscript -e 'install.packages("countrycode")'
- Rscript -e 'install.packages("httr")'
- Rscript -e 'install.packages("RColorBrewer")'
- Rscript -e 'install.packages("sp")'
- Rscript -e 'install.packages("readr")'
- Rscript -e 'install.packages("Cairo")'
- Rscript -e 'install.packages("ggplot2")'
- Rscript -e 'install.packages("lubridate")'
- Rscript -e 'install.packages("mapproj")'
- Rscript -e 'install.packages("plotrix")'
- Rscript -e 'install.packages("rmarkdown")'
- Rscript -e 'install.packages("RefManageR")'
- Rscript -e 'install.packages("usethis")'
- Rscript -e 'install.packages("roxygen2")'
- Rscript -e 'install.packages("rsdmx")'
- Rscript -e 'install.packages("rvest")'
- Rscript -e 'install.packages("testthat")'
- Rscript -e 'install.packages("shiny")'
- Rscript -e 'install.packages("knitr")'
- Rscript -e 'install.packages("tmap", repos="http://cran.us.r-project.org")'
- Rscript -e 'install.packages("sf", repos="http://cran.us.r-project.org")'
install:
- . $HOME/.nvm/nvm.sh
- nvm install stable
- nvm use stable
- npm install -g mapshaper
- npm install -g geojson
r:
- release
- devel
after_success:
#- Rscript -e 'covr::codecov()'
- dropdb postgis
- createdb postgis
- psql -d postgis -c "CREATE EXTENSION postgis;"
- psql -d postgis -c "GRANT CREATE ON DATABASE postgis TO travis"
- R -q -e 'covr::codecov(quiet = FALSE)'