Add .drone.yml file for CI #138

Merged
6543 merged 2 commits from markkrj/homebrew-gitea:add-ci-file into master 2021-07-07 08:32:52 +00:00
Contributor

@zeripath asked if there was a way to validate the homebrew formulas, so I came up with this. Is it acceptable? You could configure your Drone instance to test it.
Tested locally with drone exec

@zeripath asked if there was a way to validate the homebrew formulas, so I came up with this. Is it acceptable? You could configure your Drone instance to test it. Tested locally with `drone exec`
markkrj added 1 commit 2021-07-05 16:51:46 +00:00
Owner

standard_init_linux.go:211: exec user process caused "exec format error"

-> https://drone.gitea.com/6543/homebrew-gitea/2/2/2

`standard_init_linux.go:211: exec user process caused "exec format error"` -> https://drone.gitea.com/6543/homebrew-gitea/2/2/2
Author
Contributor

standard_init_linux.go:211: exec user process caused "exec format error"

-> https://drone.gitea.com/6543/homebrew-gitea/2/2/2

My bad, forgot to check if homebrew had arm64 images on Docker hub.
So, if we wanna test arm64, we have this options:

  1. Build and push an arm64 homebrew image to gitea repository on Docker Hub
  2. Use an Ubuntu image and install homebrew on each test (slower)

Installing homebrew will add ~3 minutes per step, and also consume bandwidth and CPU from CI. Imo, 1 is the better option.

> `standard_init_linux.go:211: exec user process caused "exec format error"` > > -> https://drone.gitea.com/6543/homebrew-gitea/2/2/2 My bad, forgot to check if homebrew had arm64 images on Docker hub. So, if we wanna test arm64, we have this options: 1. Build and push an arm64 [homebrew image](https://raw.githubusercontent.com/Homebrew/brew/master/Dockerfile) to gitea repository on Docker Hub 2. Use an Ubuntu image and install homebrew on each test (slower) Installing homebrew will add ~3 minutes per step, and also consume bandwidth and CPU from CI. Imo, `1` is the better option.

I've lazily attempted to build the brew docker image on arm64 (on my trusty pinebook pro), however a simple docker build yields:

#10 7.817 Error: No Homebrew ruby 2.6.3_2 available for aarch64 processors!
#10 7.823 Error: Failed to install Homebrew Portable Ruby and cannot find another Ruby 2.6.3!
#10 7.823 If there's no Homebrew Portable Ruby available for your processor:
#10 7.823 - install Ruby 2.6.3 with your system package manager (or rbenv/ruby-build)
#10 7.823 - make it first in your PATH
#10 7.823 - try again

I've spent zero time looking into this error though, and may continue, but hopefully by posting this here in case I don't continue I've hopefully saved someone else some time.

I've lazily attempted to build the brew docker image on arm64 (on my trusty pinebook pro), however a simple docker build yields: ``` #10 7.817 Error: No Homebrew ruby 2.6.3_2 available for aarch64 processors! #10 7.823 Error: Failed to install Homebrew Portable Ruby and cannot find another Ruby 2.6.3! #10 7.823 If there's no Homebrew Portable Ruby available for your processor: #10 7.823 - install Ruby 2.6.3 with your system package manager (or rbenv/ruby-build) #10 7.823 - make it first in your PATH #10 7.823 - try again ``` I've spent zero time looking into this error though, and may continue, but hopefully by posting this here in case I don't continue I've hopefully saved someone else some time.
lunny approved these changes 2021-07-06 05:23:00 +00:00
Author
Contributor

I managed to create an arm64 image of homebrew. I'm just doing some adjustments, then I'll push it to docker hub and update this PR.

I managed to create an arm64 image of homebrew. I'm just doing some adjustments, then I'll push it to docker hub and update this PR.
markkrj added 1 commit 2021-07-07 05:06:17 +00:00
Change arm64 image and disable brew auto-update
auto-update was disable because we do not use any core package, so it
just slows down CI
All checks were successful
continuous-integration/drone/pr Build is passing
49193d5bf9
6543 approved these changes 2021-07-07 08:32:00 +00:00
6543 merged commit 13f289d974 into master 2021-07-07 08:32:52 +00:00
Sign in to join this conversation.
No description provided.