This is a solution for continuous integration for R projects on Windows, using AppVeyor -- a CI testing service similar to Travis-CI. Under the hood, r-travis is used to perform the testing; this works even on Windows thanks to MinGW and MSYS.
-
Sign up to AppVeyor.
-
Enable testing for your project.
-
Save a copy of
sample.appveyor.ymlasappveyor.ymlto the root of your project. -
(Optional) Adapt
appveyor.ymlto your needs according to the documentation. -
Add the following line to
.Rbuildignoreof your project:^appveyor\.yml$ -
Be sure to supply a
.gitattributesfile that takes care of fixing CRLF conversion settings that are relevant on Windows. The one in this repo can be used for starters. -
Push to your repo to start building.
-
(Optional) Add a badge as described in the "Badges" section of your project's "SETTINGS" to your
README.md. -
Enjoy!
In contrast to Travis-CI, AppVeyor offers facilities for hosting artifacts. This can be configured by adding a section to the appveyor.yml. The sample file is configured to deploy logs, and source and binary versions of the built package. Check the "ARTIFACTS" section for your project at AppVeyor.
This wouldn't have been as easy without r-travis and the experience gained there. Thanks!
(
master-fail branch, failure expected)
(
master-nocopy branch, probably will fail until an issue with R is resolved)