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,17 +1,31 @@
dist: xenial dist: xenial
language: python language: python
python:
- "3.7"
install: jobs:
- pip install --upgrade pip include:
- pip install -U -r python/requirements.txt dask[dataframe] distributed - language: python
python:
- "3.7"
install:
- pip install --upgrade pip
- pip install -U -r python/requirements.txt dask[dataframe] distributed
script:
- cd python && python setup.py develop test
- python setup.py clean
- rm -rf fbprophet/stan_model
- wget https://github.com/stan-dev/cmdstan/releases/download/v2.22.1/cmdstan-2.22.1.tar.gz -O /tmp/cmdstan.tar.gz > /dev/null
- tar -xvf /tmp/cmdstan.tar.gz -C /tmp > /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
script: - language: r
- cd python && python setup.py develop test r:
- python setup.py clean - devel
- rm -rf fbprophet/stan_model install:
- wget https://github.com/stan-dev/cmdstan/releases/download/v2.22.1/cmdstan-2.22.1.tar.gz -O /tmp/cmdstan.tar.gz > /dev/null - R -e 'install.packages("devtools")'
- tar -xvf /tmp/cmdstan.tar.gz -C /tmp > /dev/null - R -e 'devtools::install_deps("R", dependencies = TRUE)'
- make -C /tmp/cmdstan-2.22.1/ build > /dev/null - cd R
- CMDSTAN=/tmp/cmdstan-2.22.1 STAN_BACKEND=CMDSTANPY python setup.py develop test - R CMD build .
- R CMD INSTALL *tar.gz
script:
- R -e 'library(prophet); library(devtools); devtools::test()'