mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-11-18 08:53:42 +00:00
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:
parent
30bcfed918
commit
9a27386ccc
1 changed files with 27 additions and 13 deletions
40
.travis.yml
40
.travis.yml
|
|
@ -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()'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue