I am currently trying to update an old .travis.yml to work with the native support for building R packages on Travis. This package (the R interface for igraph) first needs to prepare some files before the R package can be build. This is done by simply running make before building the R package. I thought it would be best to call make during before_script, but for some reason that yields the error:
No DESCRIPTION file found, user must supply their own install and script steps
Alternatively, I tried to use before_install, but that results in the error that some of the requested packages are not installed (in particular roxygen2 and devtools). Using install instead yields the same error. The devtools package is not specifically requested, so perhaps that simply needs to be added. However, the roxygen2 package is explicitly listed under r_packages, so that should be installed.
All in all, the before_script seems the most logical choice. I would expect roxygen2 to be installed when before_script gets executed, but that does not seem to be the case from the log files. In fact, make as listed under before_script even does not get executed, which I don’t fully understand. Perhaps that before_install gets executed before the r_packages section gets executed, but that is not 100% clear to me. I can imagine that having a custom install section prevents sections such as r_packages from being executed. So, the failure of the latter two options could perhaps be explained, but I don’t fully understand the failure when using before_script.
Any help would be greatly appreciated, pinging @jeroen and @jimhester here as requested. Thank you for any response!