summaryrefslogtreecommitdiffstats
path: root/.drone.yml
Commit message (Collapse)AuthorAgeFilesLines
* Bump `postgres` and `mysql` versions (#15710)Patrick Schratz2021-05-211-2/+2
| | | | | | | | * bump postgres and mysql DB versions * posgres test against v10 Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Use node 16 on release tasks too (#15936)silverwind2021-05-201-2/+2
| | | Forgot these in https://github.com/go-gitea/gitea/pull/15804.
* Update JS dependencies, use Node 16 (#15804)silverwind2021-05-131-5/+5
| | | | | | | | - Update all JS dependencies to latest version - Use Node 16 on CI - Add new lint rules - Add some gitignore entries for debug files Co-authored-by: Lauris BH <lauris@nix.lv>
* change s3 bucket name (#15847)techknowlogick2021-05-121-3/+3
|
* point appleboy/drone-git-push to use updated primary branchtechknowlogick2021-05-101-0/+2
|
* update branch in CI and docs (#15631)techknowlogick2021-05-041-13/+13
|
* Stop packaging node_modules in release tarballs (#15273)silverwind2021-04-091-2/+2
| | | | | | | | | | | | | | | | | - Don't package node_modules in tarballs, they are not cross-platform anymore and npm cache should not be messed with directly. Instead, require an internet connection to rebuild the UI, which is not necessary in the general use case because prebuilt UI files are shipped in the public directory. - Simplify the fomantic build and make the target phony. We don't need anything more for something that is rarely ran. - Use regular tar again to build tarballs and add variable for excludes - Disable annoying npm update notifications Fixes: https://github.com/go-gitea/gitea/pull/14578 Fixes: https://github.com/go-gitea/gitea/pull/15256 Fixes: https://github.com/go-gitea/gitea/pull/15262 Co-authored-by: 6543 <6543@obermui.de>
* Add frontend testing, require node 12 (#15315)silverwind2021-04-081-1/+7
| | | | | | | | | | - Add basic frontend unit testing infrastructure using jest in ESM mode - Rename 'make test' to 'make test-backend' - Introduce 'make test-frontend' and 'make test' that runs both - Bump Node.js requirement to v12. v10 will be EOL in less than a month. - Convert all build-related JS files to ESM. I opted to run frontend tests run as part of the compliance pipeline because they complete fast and are not platform-specific like the golang tests.
* Introduce esbuild on webpack (#14578)Lunny Xiao2021-04-021-2/+2
| | | | | | | | | | | | | | | * Vendor node mods as cache; fix esbuild/fomantic offline build * Fix --exclude; use bsdtar for consistent globbing * Fall back to GNU tar; forward-compatible for APT 2.0 * Avoid having extd. attrs with bsdtar * Dependency and misc. optimizations * Remove extra code after esbuild-loader update Co-authored-by: Mike L <cl.jeremy@qq.com>
* chore: bump minio to RELEASE.2021-03-12T00-00-47Z (#15006)wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf2021-03-171-1/+1
| | | | | | | | | * chore: bump minio to RELEASE.2021-03-12T00-00-47Z - image: minio/minio:RELEASE.2021-01-16T02-19-44Z + image: minio/minio:RELEASE.2021-03-12T00-00-47Z Signed-off-by: wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf <a_mirre@utb.cz>
* CI: pre install git last verson and git lfs in test (#14681)a10121127962021-03-121-18/+8
| | | | | | | | link: https://hub.docker.com/r/gitea/test_env Source: https://gitea.com/gitea/test_env/src/branch/master/Dockerfile Signed-off-by: a1012112796 <1012112796@qq.com>
* drone workspace pathtechknowlogick2021-02-281-4/+4
|
* drone workspace basetechknowlogick2021-02-281-0/+2
|
* use gomod support w/ xgo (#14836)techknowlogick2021-03-011-0/+6
|
* go1.16 (#14783)techknowlogick2021-02-281-62/+22
|
* Exclude running docker build on cron tasks (#14778)techknowlogick2021-02-231-0/+10
|
* CI: translation update as cron task (#14774)65432021-02-231-4/+4
|
* Use caddy's certmagic library for extensible/robust ACME handling (#14177)techknowlogick2021-01-251-2/+2
| | | | | | | | | | * use certmagic for more extensible/robust ACME cert handling * accept TOS based on config option Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv>
* chore: bump minio to RELEASE.2021-01-16T02-19-44Z (#14445)wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf2021-01-241-1/+1
| | | | - image: minio/minio:RELEASE.2020-10-09T22-55-05Z + image: minio/minio:RELEASE.2021-01-16T02-19-44Z
* CI: skip build steps for cron update works (#14443)a10121127962021-01-241-0/+24
| | | Signed-off-by: a1012112796 <1012112796@qq.com>
* CI: Update license & gitignore by cron (#14419)a10121127962021-01-231-0/+39
| | | | | | | do generate-license & generate-gitignore by cron close #12684 Signed-off-by: a1012112796 <1012112796@qq.com>
* upgrade to alpine 3.13 (#14343)techknowlogick2021-01-201-1/+1
|
* Add compliance check for windows to ensure cross platform build (#14260)techknowlogick2021-01-051-0/+12
| | | | | | | | | * Add compliance check for windows to ensure cross platform build * no race condition * woops. meant to change windows, not arm64 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Fix windows build error (#14263)Lunny Xiao2021-01-061-0/+12
| | | | | | | | | | | * fix build * take flash error message back and fix more windows lint error * performance optimization * own step to check lint for windows Co-authored-by: 6543 <6543@obermui.de>
* Use native git variants by default with go-git variants as build tag (#13673)zeripath2020-12-171-3/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Move last commit cache back into modules/git Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove go-git from the interface for last commit cache Signed-off-by: Andrew Thornton <art27@cantab.net> * move cacheref to last_commit_cache Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove go-git from routers/private/hook Signed-off-by: Andrew Thornton <art27@cantab.net> * Move FindLFSFiles to pipeline Signed-off-by: Andrew Thornton <art27@cantab.net> * Make no-go-git variants Signed-off-by: Andrew Thornton <art27@cantab.net> * Submodule RefID Signed-off-by: Andrew Thornton <art27@cantab.net> * fix issue with GetCommitsInfo Signed-off-by: Andrew Thornton <art27@cantab.net> * fix GetLastCommitForPaths Signed-off-by: Andrew Thornton <art27@cantab.net> * Improve efficiency Signed-off-by: Andrew Thornton <art27@cantab.net> * More efficiency Signed-off-by: Andrew Thornton <art27@cantab.net> * even faster Signed-off-by: Andrew Thornton <art27@cantab.net> * Reduce duplication * As per @lunny Signed-off-by: Andrew Thornton <art27@cantab.net> * attempt to fix drone Signed-off-by: Andrew Thornton <art27@cantab.net> * fix test-tags Signed-off-by: Andrew Thornton <art27@cantab.net> * default to use no-go-git variants and add gogit build tag Signed-off-by: Andrew Thornton <art27@cantab.net> * placate lint Signed-off-by: Andrew Thornton <art27@cantab.net> * as per @6543 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Reduce number of docker pulls on ci (#13739)silverwind2020-11-281-26/+0
| | | | | | Should reduce errors like https://drone.gitea.io/go-gitea/gitea/32989/7/2 by only pulling each distinct image once per pipeline. Co-authored-by: zeripath <art27@cantab.net>
* use registry mirror for docker-in-docker (#13438)techknowlogick2020-11-061-0/+12
| | | Co-authored-by: Lauris BH <lauris@nix.lv>
* fix docker rootless manifest (#13386)Antoine GIRARD2020-11-021-1/+1
|
* Set auto-tag to false on rootless manifest (#13383)techknowlogick2020-11-011-5/+6
| | | Current overrides rootful container
* docker: rootless image (#10154)Antoine GIRARD2020-10-311-0/+49
| | | | | | | | | * docker: rootless image * improve docs + remove check for write perm on custom * add more info on ssh passtrough * Add comment for internal ssh server in container config
* Clean up mysql service in drone (#13145)techknowlogick2020-10-141-12/+0
|
* chore: update minio image version (#13109)wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf2020-10-121-1/+1
| | | * 2020-05-16 --> 2020-10-09
* Bump min required golang to 1.13 (#12717)techknowlogick2020-09-041-1/+1
| | | | | | | | | | | | | * Bump min required golang to 1.13 * Update config.yaml * Update Makefile * per silverwind feedback * per silverwind Co-authored-by: zeripath <art27@cantab.net>
* Support elastic search for code search (#10273)Lunny Xiao2020-08-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | * Support elastic search for code search * Finished elastic search implementation and add some tests * Enable test on drone and added docs * Add new fields to elastic search * Fix bug * remove unused changes * Use indexer alias to keep the gitea indexer version * Improve codes * Some code improvements * The real indexer name changed to xxx.v1 Co-authored-by: zeripath <art27@cantab.net>
* go1.15 on windows (#12589)techknowlogick2020-08-241-15/+4
| | | | | * go1.15 on windows * update xgo to use node14
* Use Node 14 on CI (#12512)silverwind2020-08-201-4/+4
| | | | | | | | | | | * Use Node 14 on CI Node 14 is sufficiently stable now, use it on CI. * also run build on node 14 Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: zeripath <art27@cantab.net>
* Add a storage layer for attachments (#11387)Lunny Xiao2020-08-181-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add a storage layer for attachments * Fix some bug * fix test * Fix copyright head and lint * Fix bug * Add setting for minio and flags for migrate-storage * Add documents * fix lint * Add test for minio store type on attachments * fix test * fix test * Apply suggestions from code review Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com> * Add warning when storage migrated successfully * Fix drone * fix test * rebase * Fix test * display the error on console * Move minio test to amd64 since minio docker don't support arm64 * refactor the codes * add trace * Fix test * remove log on xorm * Fi download bug * Add a storage layer for attachments * Add setting for minio and flags for migrate-storage * fix lint * Add test for minio store type on attachments * Apply suggestions from code review Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com> * Fix drone * fix test * Fix test * display the error on console * Move minio test to amd64 since minio docker don't support arm64 * refactor the codes * add trace * Fix test * Add URL function to serve attachments directly from S3/Minio * Add ability to enable/disable redirection in attachment configuration * Fix typo * Add a storage layer for attachments * Add setting for minio and flags for migrate-storage * fix lint * Add test for minio store type on attachments * Apply suggestions from code review Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com> * Fix drone * fix test * Fix test * display the error on console * Move minio test to amd64 since minio docker don't support arm64 * don't change unrelated files * Fix lint * Fix build * update go.mod and go.sum * Use github.com/minio/minio-go/v6 * Remove unused function * Upgrade minio to v7 and some other improvements * fix lint * Fix go mod Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: Tyler <tystuyfzand@gmail.com>
* Add 'checks' Make and CI tasks (#12352)silverwind2020-08-161-3/+17
| | | | | | | | | | | * Add 'checks' Make and CI tasks Introduce new "checks" targets that perform tasks that we've been piling onto the linting tasks. This will make the linter tasks faster and hopefully encourage some users to use them locally. * add checks to --help Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Build windows using golang 1.14 (#12489)techknowlogick2020-08-131-3/+12
|
* go1.15 (#12475)techknowlogick2020-08-131-14/+14
| | | | | | | | | | | | | * go1.15 * update makefile xgo version * fix vet issue * update docs to version of go in use * add TODO for asyncpreemptoff Co-authored-by: Lauris BH <lauris@nix.lv>
* use community codecov drone plugin (#12468)techknowlogick2020-08-101-4/+3
|
* Alpine 3.12 (#11720)techknowlogick2020-06-031-2/+2
| | | | | * increase alpine to 3.12 * Update .drone.yml
* Skip frontend build where unnecessary (#11159)silverwind2020-04-201-7/+4
| | | | The testing pipelines and build-backend steps do not depend on frontend files, skip their build for them.
* Add support for migrating from Gitlab (#9084)Jordan2020-04-191-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * First stab at a Gitlab migrations interface. * Modify JS to show migration for Gitlab * Properly strip out #gitlab tag from repo name * Working Gitlab migrations! Still need to figure out how to hide tokens/etc from showing up in opts.CloneAddr * Try #2 at trying to hide credentials. CloneAddr was being used as OriginalURL. Now passing OriginalURL through from the form and saving it. * Add go-gitlab dependency * Vendor go-gitlab * Use gitlab.BasicAuthClient Correct CloneURL. This should be functioning! Previous commits fixed "Migrated from" from including the migration credentials. * Replaced repoPath with repoID globally. RepoID is grabbed in NewGitlabDownloader * Logging touchup * Properly set private repo status. Properly set milestone deadline time. Consistently use Gitlab username for 'Name'. * Add go-gitlab vendor cache * Fix PR migrations: - Count of issues is kept to set a non-conflicting PR.ID - Bool is used to tell whether to fetch Issue or PR comments * Ensure merged PRs are closed and set with the proper time * Remove copyright and some commented code * Rip out '#gitlab' based self-hosted Gitlab support * Hide given credentials for migrated repos. CloneAddr was being saved as OriginalURL. Now passing OriginalURL through from the form and saving it in it's place * Use asset.URL directly, no point in parsing. Opened PRs should fall through to false. * Fix importing Milestones. Allow importing using Personal Tokens or anonymous access. * Fix Gitlab Milestone migration if DueDate isn't set * Empty Milestone due dates properly return nil, not zero time * Add GITLAB_READ_TOKEN to drone unit-test step * Add working gitlab_test.go. A Personal Access Token, given in env variable GITLAB_READ_TOKEN is required to run the test. * Fix linting issues * Add modified JS files * Remove pre-build JS files * Only merged PRs are marged as merged/closed * Test topics * Skip test if gitlab is inaccessible * Grab personal token from username, not password. Matches Github migration implementation * Add SetContext() to GitlabDownloader. * Checking Updated field in Issues. * Actually fetch Issue Updated time from Gitlab * Add Gitlab migration GetReviews() stub * Fix Patch and Clone URLs * check Updated too * fix mod * make vendor with go1.14 Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Use /tmp for test repositories (#11126)guillep2k2020-04-191-0/+5
| | | | | | | | | | * Add option to use /tmp for test repositories * Fix exit status * Add feedback about using tmp repos Co-authored-by: Guillermo Prandi <guillep2k@users.noreply.github.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Turn off go modules for xgo and gxz (#10963)John Olheiser2020-04-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Turn off go modules for xgo and gxz Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add test release for PR Signed-off-by: jolheiser <john.olheiser@gmail.com> * Try with go modules off Signed-off-by: jolheiser <john.olheiser@gmail.com> * Revert Makefile, force a release test Signed-off-by: jolheiser <john.olheiser@gmail.com> * Turn on GOPROXY for release Signed-off-by: jolheiser <john.olheiser@gmail.com> * CI Signed-off-by: jolheiser <john.olheiser@gmail.com> * CI Signed-off-by: jolheiser <john.olheiser@gmail.com> * Final commit Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix cross compile (#10952)Lunny Xiao2020-04-051-0/+15
| | | | | | | | | | | | | * Fix cross compile * Add test for cross compile * Fix drone * Fix drone * Also prevent CC environment not to generate Co-authored-by: zeripath <art27@cantab.net>
* Rename scripts to build and add revive command as a new build tool command ↵Lunny Xiao2020-04-031-1/+1
| | | | | (#10942) Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Add 'make lint', restructure 'compliance' pipeline (#10861)silverwind2020-03-291-16/+39
| | | | | | | | | | - Added 'lint', 'lint-frontend', 'lint-backend' targets - Added 'lint-frontend', 'lint-backend' ci steps and restructure the 'compliance' pipeline to have a clear separation between frontend and backend and use parallelism where possible. Also, the main build pipelines now depend on 'compliance' so they will skip if it fails. - Added dependencies on ci steps so they skip when 'compliance' fails - Moved JS linters to devDependencies - Removed deprecated 'js' and 'css' targets
* go 1.14 (#10467)techknowlogick2020-03-201-14/+14
|