Skip to content
This repository has been archived by the owner on May 10, 2022. It is now read-only.

setup Travis to update daily #1

Open
bbest opened this issue May 25, 2017 · 4 comments
Open

setup Travis to update daily #1

bbest opened this issue May 25, 2017 · 4 comments

Comments

@bbest
Copy link
Collaborator

bbest commented May 25, 2017

Hi @jasdumas,

Here are some notes from my last review of setting up Travis Continuous integration...

This is just a little note for future development, since now Travis supports virtual machines with R already installed. By not having to download and install R, this presents a big time savings for calculating OHI scores and results. Since only 1 hour is allotted for the use of these free virtual machines, use of the R virtual machine could make the difference in being able to finish or not, resulting in a pass or failure.

You'll notice that the first line in our existing .travis.yml (eg for gye) has:

language: c

The new one would have:

language: r

And the old directives using the travis-tool.sh:

before_install:
- curl -OL http://raw.github.com/craigcitro/r-travis/master/scripts/travis-tool.sh
- curl -OL http://raw.github.com/OHI-Science/ohi-webapps/master/ohi-travis-functions.R
- chmod 755 ./travis-tool.sh
- ./travis-tool.sh bootstrap
- sudo apt-get install pandoc

install:
- ./travis-tool.sh install_r zoo
- ./travis-tool.sh install_r psych
- ./travis-tool.sh install_r tidyr
- ./travis-tool.sh install_r brew
- ./travis-tool.sh install_r rmarkdown
- ./travis-tool.sh install_r httr
- ./travis-tool.sh install_r git2r
- ./travis-tool.sh install_github ohi-science/rCharts
- ./travis-tool.sh install_github ohi-science/ohicore@dev

would get replaced with:

before_install:
- curl -OL http://raw.github.com/OHI-Science/ohi-webapps/master/ohi-travis-functions.R

apt_packages:
- pandoc

r_packages:
- zoo
- psych
- tidyr
- brew
- rmarkdown
- httr
- git2r

r_github_packages:
- ohi-science/rCharts
- ohi-science/ohicore@dev

The big time savings will be from skipping:

- ./travis-tool.sh bootstrap

You can read more here:

@jasdumas
Copy link

@bbest
Copy link
Collaborator Author

bbest commented May 25, 2017

And here's the Cron Jobs - Travis CI

@bbest
Copy link
Collaborator Author

bbest commented May 26, 2017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants