ropensci / roregistry

ropensci registry
13 stars 5 forks source link

Installable #17

Closed maelle closed 3 years ago

maelle commented 6 years ago

@sckott there's currently an "Installable" field which we discussed in #10

Now with codemetar latest version in conIntegration one gets links to Travis/Appveyor/CircleCI pages of packages (if they have the corresponding badge in their README).

Would it make sense for me to write code to get the build status and add them to the registry? It'd be a layer we add after codemeta.json creation since CodeMeta doesn't have a term for build status.

maelle commented 6 years ago

Cf https://docs.travis-ci.com/user/developer/

and https://www.appveyor.com/docs/api/projects-builds/

sckott commented 6 years ago

Would it make sense for me to write code to get the build status and add them to the registry?

i think so

maelle commented 6 years ago

I am actually surprisedthat there is no travis nor appveyor R package 🤔

sckott commented 6 years ago

i think there is somewhere but i never had the need - probably better to not bring in dependencies for those though anyway?

maelle commented 6 years ago

True!

I was wonndering whether we want a yes/no answer from each service or a nested answer if there is a matrix of builds 🤔 but i shall see when i see how the output looks like

maelle commented 6 years ago

There are dedicated packages actually, which might make the integration easier? And these packages might be used elsewhere?

Travis

https://github.com/cloudyr/travisci

After authentication (uses GITHUB_TOKEN)

travisci::get_repo(repo = "ropensci/EML")
#> Repo (1033607): ropensci/EML
#> Active: TRUE
#> Description:  Ecological Metadata Language interface for R: synthesis and integration of heterogenous data
#> Language: 
#> Last Build (362709830) Status: passed
#> Last Build Finished: 2018-04-05T17:00:17Z

Created on 2018-05-07 by the reprex package (v0.2.0).

Appveyor

https://github.com/cloudyr/appveyor doesn't do much, it only returns the XML document corresponding to a query (so it'd need to be parsed).

maelle commented 6 years ago

Btw webhooks to CI services should be monitored because they sometimes get errors.

maelle commented 6 years ago

mmmh there's https://github.com/ropenscilabs/travis 🤦‍♀️