Skip to content

Conversation

appleboy
Copy link
Member

@appleboy appleboy commented Apr 13, 2019

remove git clone steps and execute the following command to change the format:

$ drone convert --save

fix #6463

@lunny lunny added the topic/build PR changes how Gitea is built, i.e. regarding Docker or the Makefile label Apr 13, 2019
@codecov-io
Copy link

codecov-io commented Apr 13, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@0dca17b). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #6602   +/-   ##
=========================================
  Coverage          ?   41.23%           
=========================================
  Files             ?      466           
  Lines             ?    63153           
  Branches          ?        0           
=========================================
  Hits              ?    26044           
  Misses            ?    33705           
  Partials          ?     3404

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0dca17b...36ae8b7. Read the comment docs.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Apr 13, 2019
.drone.yml Outdated
ignore_branch: true
project_identifier: gitea
environment:
CROWDIN_KEY:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should convert this kind of environment variables into settings.

.drone.yml Outdated
- npm install
- make stylesheets-check
when:
event:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe just drop the events entirely?

.drone.yml Outdated
pull: true
environment:
TAGS: bindata sqlite sqlite_unlock_notify
when:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These conditions won't work anymore as far as I know. You should use ref

.drone.yml Outdated
project_identifier: gitea
ignore_branch: true
steps:
- name: download_translations
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you split out translation steps into a different pipeline?

@kolaente
Copy link
Member

kolaente commented May 2, 2019

@appleboy How's the status here?

@appleboy
Copy link
Member Author

appleboy commented May 3, 2019

@kolaente I will update asap

@kolaente
Copy link
Member

kolaente commented Jun 6, 2019

@appleboy anything we can help you with?

@kolaente
Copy link
Member

@appleboy If it's ok for you, I'm going to take over this pr since we need it.

kolaente added 3 commits June 30, 2019 15:33
Signed-off-by: konrad <konrad@kola-entertainments.de>
Signed-off-by: konrad <konrad@kola-entertainments.de>
Signed-off-by: konrad <konrad@kola-entertainments.de>
kolaente added 6 commits June 30, 2019 16:21
Signed-off-by: konrad <konrad@kola-entertainments.de>
Signed-off-by: konrad <konrad@kola-entertainments.de>
Signed-off-by: konrad <konrad@kola-entertainments.de>
Signed-off-by: konrad <konrad@kola-entertainments.de>
Signed-off-by: konrad <konrad@kola-entertainments.de>
Signed-off-by: konrad <konrad@kola-entertainments.de>
@appleboy
Copy link
Member Author

@kolaente OK, Thank you.

Signed-off-by: konrad <konrad@kola-entertainments.de>
@appleboy
Copy link
Member Author

@kolaente maybe you can update this PR not create new PR.

kolaente added 3 commits June 30, 2019 17:11
Signed-off-by: konrad <konrad@kola-entertainments.de>
Signed-off-by: konrad <konrad@kola-entertainments.de>
Signed-off-by: konrad <konrad@kola-entertainments.de>
Signed-off-by: konrad <konrad@kola-entertainments.de>
@kolaente
Copy link
Member

Things I've changed:

I've refactored the drone file to use the new syntax of drone 1, which brings several advanteges:

  • multiple pipelines
  • dependencies of steps -> paralle execution of tests

Multiple pipelines:

  • testing: Runs all linters, unit and integration tests
  • translations: Downloads the newest translations from crowdin and also pushes them back to the repo
  • release: cross-compiles releases with xgo and publishes them
  • docs: publishes the docs
  • docker: builds and publishes the docker images
  • notify: triggers the discord notify hook

From the parallelization the whole pipeline now takes ~15min instead of 35min for a pr! 🎉

kolaente added 6 commits June 30, 2019 18:20
Signed-off-by: konrad <konrad@kola-entertainments.de>
Signed-off-by: konrad <konrad@kola-entertainments.de>
Signed-off-by: konrad <konrad@kola-entertainments.de>
Signed-off-by: konrad <konrad@kola-entertainments.de>
Signed-off-by: konrad <konrad@kola-entertainments.de>
Signed-off-by: konrad <konrad@kola-entertainments.de>
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Jun 30, 2019
@kolaente
Copy link
Member

@tboerger @lunny @lafriks @appleboy please review.

Signed-off-by: konrad <konrad@kola-entertainments.de>
@appleboy
Copy link
Member Author

@kolaente LGTM

@zeripath zeripath requested a review from tboerger June 30, 2019 17:43
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Jun 30, 2019
@techknowlogick techknowlogick merged commit e5a4d78 into go-gitea:master Jun 30, 2019
@techknowlogick techknowlogick added this to the 1.9.0 milestone Jun 30, 2019
jeffliu27 pushed a commit to jeffliu27/gitea that referenced this pull request Jul 18, 2019
* chore: update drone format to 1.0

* Converted old drone config

Signed-off-by: konrad <konrad@kola-entertainments.de>

* Moved translations to seperate pipeline

Signed-off-by: konrad <konrad@kola-entertainments.de>

* Split the steps in multiple pipelines and add dependencies

Signed-off-by: konrad <konrad@kola-entertainments.de>

* format

Signed-off-by: konrad <konrad@kola-entertainments.de>

* Fixed step depenednecies

Signed-off-by: konrad <konrad@kola-entertainments.de>

* Fixed discord notify

Signed-off-by: konrad <konrad@kola-entertainments.de>

* Exclude translations and docs pipelines from prs

Signed-off-by: konrad <konrad@kola-entertainments.de>

* Fixed exclude prs

Signed-off-by: konrad <konrad@kola-entertainments.de>

* Fixed exclude prs

Signed-off-by: konrad <konrad@kola-entertainments.de>

* Moved releases to seperate pipeline

Signed-off-by: konrad <konrad@kola-entertainments.de>

* Re-trigger drone

Signed-off-by: konrad <konrad@kola-entertainments.de>

* Disable release step

Signed-off-by: konrad <konrad@kola-entertainments.de>

* Fixed depending step

Signed-off-by: konrad <konrad@kola-entertainments.de>

* Adopted dependencies

Signed-off-by: konrad <konrad@kola-entertainments.de>

* Changed pipeline conditions

Signed-off-by: konrad <konrad@kola-entertainments.de>

* Replaced pipeline conditions with triggers

Signed-off-by: konrad <konrad@kola-entertainments.de>

* Fixed coverage step

Signed-off-by: konrad <konrad@kola-entertainments.de>

* Import changes from go-gitea#7331

Signed-off-by: konrad <konrad@kola-entertainments.de>

* Add comment for lowest go version

Signed-off-by: konrad <konrad@kola-entertainments.de>

* Exclude fetch-tags from prs

Signed-off-by: konrad <konrad@kola-entertainments.de>

* Re-added comment about no tags

Signed-off-by: konrad <konrad@kola-entertainments.de>

* Removed unneeded conditions

Signed-off-by: konrad <konrad@kola-entertainments.de>

* Moved release version and release latest to different pipelines

Signed-off-by: konrad <konrad@kola-entertainments.de>

* Fixed depending pipeline

Signed-off-by: konrad <konrad@kola-entertainments.de>

* Removed the conditions for all services

Signed-off-by: konrad <konrad@kola-entertainments.de>
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. topic/build PR changes how Gitea is built, i.e. regarding Docker or the Makefile
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Drone 1.0.0 yaml
8 participants