nextcloud/files_photospheres

Establish CI with Travis/Scrutinizer/CodeCov

R0Wi opened this issue · 14 comments

R0Wi commented

I would really like to establish a CI pipeline with automatic builds, testing and deployment. Unfortunately i can't add the repository to Travis/Scrutinizer/CodeCov because i'm not the owner. Let's say i would like to setup a similar pipeline like other apps (like https://github.com/nextcloud/files_pdfviewer) do.

@LukasReschke @MorrisJobke is there a way to accomplish this?

R0Wi commented

@skjnldsv any help would be appreciated please.

Hey :)
Travis is enabled for the whole company, you can just add a travis config file and it will trigger
We're also using our own drone servers, so you might want to consider using drone as well, as it offers more versatility with your tests :)

R0Wi commented

Thanks for your feedback. Is travis also enabled on branches so i can test it on a test branch? I'll take a look at drone , too :-)

yes, create a pull request and you'll get your github feedback :)

R0Wi commented

@skjnldsv thanks for you help. I did a setup for drone on #42 but it doesn't run automatically. The config from https://drone.nextcloud.com/nextcloud/files_photospheres/settings says "activate repository" but if i click the button i get "There was a problem enabling your repository. Not Found.". Am i missing something here?

Hey !
In the meantime we tried to move away from drone as much as we can, because it takes forver now :(
We have too much tests running on our servers ^^
You can see your github actions examples in the app-tutorial repostory though, this is blazing fast and awesomely simple! :D

https://github.com/nextcloud/app-tutorial/tree/master/.github/workflows

i click the button i get "There was a problem enabling your repository. Not Found.". Am i missing something here?

I guess you need the permissions to do so 🙈 Let me activate for you!

R0Wi commented

Thanks for your great support :-) I'll have a look at the github actions. By the way: is it possible to add me as "administrator" for this repository? Because i can't configure any merge-checks etc. which is quite annoying :-/

Done, sorry about that, good enough?

R0Wi commented

Perfect, thanks so much for your support :-D

You're very welcome! 🤗

R0Wi commented

@skjnldsv may i just annoy you one last time:
i did a setup with GitHub Actions (very nice by the way, thanks) and i would like store some secrets (app key) in the Secret tab of the repo-settings for automatic signing and deployment. Unfortunately i do only have the rights to see tabs Options and Interaction limits. Is it possible to activate the tabs Secrets, Branches and Webhooks, too please?

You're not annoying me :)
Should be good now?

R0Wi commented

Perfect, thanks a lot :-)