Add checks for R to Travis CI (#1505)

* Add R check to travis

* add install step for R

* only run testsrather than R CMD check

* Fix command

* add line for installing dependencies

* fix syntax error
This commit is contained in:
Ryan Nazareth 2020-06-10 22:35:00 +01:00 committed by GitHub
parent 30bcfed918
commit 9a27386ccc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,13 +1,15 @@
dist: xenial dist: xenial
language: python language: python
python:
- "3.7"
install: jobs:
include:
- language: python
python:
- "3.7"
install:
- pip install --upgrade pip - pip install --upgrade pip
- pip install -U -r python/requirements.txt dask[dataframe] distributed - pip install -U -r python/requirements.txt dask[dataframe] distributed
script:
script:
- cd python && python setup.py develop test - cd python && python setup.py develop test
- python setup.py clean - python setup.py clean
- rm -rf fbprophet/stan_model - rm -rf fbprophet/stan_model
@ -15,3 +17,15 @@ script:
- tar -xvf /tmp/cmdstan.tar.gz -C /tmp > /dev/null - tar -xvf /tmp/cmdstan.tar.gz -C /tmp > /dev/null
- make -C /tmp/cmdstan-2.22.1/ build > /dev/null - make -C /tmp/cmdstan-2.22.1/ build > /dev/null
- CMDSTAN=/tmp/cmdstan-2.22.1 STAN_BACKEND=CMDSTANPY python setup.py develop test - CMDSTAN=/tmp/cmdstan-2.22.1 STAN_BACKEND=CMDSTANPY python setup.py develop test
- language: r
r:
- devel
install:
- R -e 'install.packages("devtools")'
- R -e 'devtools::install_deps("R", dependencies = TRUE)'
- cd R
- R CMD build .
- R CMD INSTALL *tar.gz
script:
- R -e 'library(prophet); library(devtools); devtools::test()'