-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
49 lines (44 loc) · 1.24 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
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r
language: R
cache: packages
warnings_are_errors: true
matrix:
include:
- r: devel
- r: release
before_deploy: Rscript -e 'remotes::install_cran("pkgdown")'
deploy:
provider: script
script: Rscript -e 'pkgdown::deploy_site_github()'
skip_cleanup: true
- r: oldrel
dist: xenial
addons:
apt:
packages:
- libnode-dev # for V8
# managing node in a project for another language
# https://austinpray.com/ops/2015/09/20/change-travis-node-version.html
#
# doing this becuase Vega-Lite needs node 8 and the R Travis container uses node 6
# (there has to be a cleaner way to do this)
before_install:
- echo "***node***"
- node --version
- rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install 8
- npm install
- echo "***node***"
- node --version
# yarn
- export CURRENTDIR=`pwd`
- cd src-ext/TypeScript/ggschema
- yarn install
- yarn build
- cd $CURRENTDIR
- cd src-ext/TypeScript/ggvega
- yarn install
- yarn build
- cd $CURRENTDIR
# clean up from yarn
- rm package-lock.json
- pwd