Fork of Gitea with patches to allow easier interoperation with other Lavender services
 
 
 
 
 
 
Go to file
Mura Li 848293671b Add basic integration test infrastructure (and new endpoint `/api/v1/version` for testing it) (#741)
* Implement '/api/v1/version'

* Cleanup and various fixes

* Enhance run.sh

* Add install_test.go

* Add parameter utils.Config for testing handlers

* Re-organize TestVersion.go

* Rename functions

* handling process cleanup properly

* Fix missing function renaming

* Cleanup the 'retry' logic

* Cleanup

* Remove unneeded logging code

* Logging messages tweaking

* Logging message tweaking

* Fix logging messages

* Use 'const' instead of hardwired numbers

* We don't really need retries anymore

* Move constant ServerHttpPort to install_test.go

* Restore mistakenly removed constant

* Add required comments to make the linter happy.

* Fix comments and naming to address linter's complaints

* Detect Gitea executale version automatically

* Remove tests/run.sh, `go test` suffices.

* Make `make build` a prerequisite of `make test`

* Do not sleep before trying

* Speedup the server pinging loop

* Use defined const instead of hardwired numbers

* Remove redundant error handling

* Use a dedicated target for running code.gitea.io/tests

* Do not make 'test' depend on 'build' target

* Rectify the excluded package list

* Remove redundant 'exit 1'

* Change the API to allow passing test.T to test handlers

* Make testing.T an embedded field

* Use assert.Equal to comparing results

* Add copyright info

* Parametrized logging output

* Use tmpdir instead

* Eliminate redundant casting

* Remove unneeded variable

* Fix last commit

* Add missing copyright info

* Replace fmt.Fprintf with fmt.Fprint

* rename the xtest to integration-test

* Use Symlink instead of hard-link for cross-device linking

* Turn debugging logs on

* Follow the existing framework for APIs

* Output logs only if test.v is true

* Re-order import statements

* Enhance the error message

* Fix comment which breaks the linter's rule

* Rename 'integration-test' to 'e2e-test' for saving keystrokes

* Add comment to avoid possible confusion

* Rename tests -> integration-tests

Also change back the Makefile to use `make integration-test`.

* Use tests/integration for now

* tests/integration -> integrations

Slightly flattened directory hierarchy is better.

* Update Makefile accordingly

* Fix a missing change in Makefile

* govendor update code.gitea.io/sdk/gitea

* Fix comment of struct fields

* Fix conditional nonsense

* Fix missing updates regarding version string changes

* Make variable naming more consistent

* Check http status code

* Rectify error messages
2017-03-06 22:13:17 +08:00
.github Add Screenshot-secion to IssueTemplate.md (#939) 2017-02-17 08:58:01 +08:00
cmd bug fix for dump when data directoryis not exist (#1025) 2017-03-02 17:41:33 +08:00
conf feat: Able to disable non-admin to create new organization (#927) 2017-02-14 20:16:00 +08:00
docker Fixing multiple docker issues (#386) 2016-12-15 17:16:55 +08:00
integrations Add basic integration test infrastructure (and new endpoint `/api/v1/version` for testing it) (#741) 2017-03-06 22:13:17 +08:00
models fix avatar bug #1114 (#1122) 2017-03-06 16:15:40 +08:00
modules refactor: remove redundant slash. (#1109) 2017-03-03 20:47:24 +08:00
options Implements 1071, .gitignore support for FSharp and Clojure. (#1072) 2017-02-26 16:14:38 +01:00
public Fix span wrapping all the things 2017-02-24 18:49:04 +07:00
routers Add basic integration test infrastructure (and new endpoint `/api/v1/version` for testing it) (#741) 2017-03-06 22:13:17 +08:00
scripts refactor: update debian script. (#965) 2017-02-18 18:23:37 +08:00
templates Log config pretty printer (#1097) 2017-03-02 08:25:44 +08:00
vendor Add basic integration test infrastructure (and new endpoint `/api/v1/version` for testing it) (#741) 2017-03-06 22:13:17 +08:00
.dockerignore Bug fixed for .dockerignore (#329) 2016-12-01 23:05:28 +08:00
.drone.yml Fix master builds on mips* again (#815) 2017-02-02 11:56:08 +08:00
.drone.yml.sig Fix master builds on mips* again (#815) 2017-02-02 11:56:08 +08:00
.editorconfig Unified editorconfig accross all projects 2016-11-28 14:27:59 +01:00
.gitattributes ignore static files statstics for linguist 2016-12-27 16:49:25 +01:00
.gitignore Search bar for issues/pulls (#530) 2017-01-25 10:43:02 +08:00
.lgtm Added ignore_maintainers_file option to .lgtm 2016-11-07 16:36:37 +01:00
CHANGELOG.md Added 1.0.2 to changelog (#998) 2017-02-21 22:38:38 +08:00
CONTRIBUTING.md Fix some links. (#1005) 2017-02-22 21:21:25 +08:00
DCO follow the advisor: add DCO and some improvements 2016-11-04 16:43:41 +08:00
Dockerfile Fixing multiple docker issues (#386) 2016-12-15 17:16:55 +08:00
Dockerfile.rpi Apply dockerfile updates to raspberry dockerfile (#548) 2017-01-01 10:25:17 +08:00
LICENSE Fix typo 2016-11-08 08:42:05 +01:00
MAINTAINERS Add myself to MAINTAINERS (#609) 2017-01-08 11:25:22 +08:00
Makefile Add basic integration test infrastructure (and new endpoint `/api/v1/version` for testing it) (#741) 2017-03-06 22:13:17 +08:00
README.md Changed README to refer to https images only (#675) 2017-01-15 21:31:34 +08:00
README_ZH.md Changed README to refer to https images only (#675) 2017-01-15 21:31:34 +08:00
main.go Fix for #828: Embed build tags (#1051) 2017-02-28 08:40:02 +08:00

README.md

简体中文

Gitea - Git with a cup of tea

Build Status Join the chat at https://gitter.im/go-gitea/gitea Coverage Status Go Report Card GoDoc Release

Dashboard Repository Commits History
Profile Admin Dashboard Diff
Issues Releases Organization

Purpose

The goal of this project is to make the easiest, fastest, and most painless way of setting up a self-hosted Git service. With Go, this can be done with an independent binary distribution across all platforms that Go supports, including Linux, macOS, and Windows on x86, amd64, ARM and PowerPC architectures. Want to try it before doing anything else? Do it online! This project is forked from Gogs.

Notes

  1. YOU MUST READ THE CONTRIBUTORS GUIDE BEFORE STARTING TO WORK ON A PULL REQUEST.
  2. If you found a vulnerability in the project, please write privately to security@gitea.io. Thanks!
  3. If you're interested in using our APIs, we have experimental support with documentation.

Docs

For further information or instructions how to install Gitea please take a look at our documentation, if you can not find some specific information just head over to our Gitter channel to have a chat with us.

Contributing

Fork -> Patch -> Push -> Pull Request

Authors

License

This project is under the MIT License. See the LICENSE file for the full license text.