summaryrefslogtreecommitdiffstats
path: root/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* remove sqlite tag when integration test with mysql/postgres AND recreate ↵Lunny Xiao2017-05-091-2/+3
| | | | database when init integration test (#1693)
* Enforce netgo build tag while cross-compilation (#1690)Thomas Boerger2017-05-071-3/+3
|
* Generate swagger json (#1402)Antoine GIRARD2017-05-021-0/+11
| | | | | | | - Generate swagger.json into public/ - Add swagger-ui auto-installation - Add footer link to local swagger-ui - Add /swagger url for using app url. - Fix Swagger-UI version via git tag
* Improve govendor testing (#1623)Antoine GIRARD2017-05-021-1/+9
| | | | - Use `govendor list +outside +unused` for finding missing or unused deps and govendor status for catching modified vendor. - Remove appengine import
* Do not allow commiting to protected branch from online editor (#1502)Lauris BH2017-05-021-3/+3
| | | | | | * Do not allow commiting to protected branch from online editor * Add editor integration tests for adding new file and not allowing to add new file to protected branch
* MySQL, Postgres integration tests in drone (#1638)Ethan Koenig2017-04-301-1/+0
| | | | | | | | | | * MySQL, Postgres integration tests in drone * Fix .drone.yml * sign drone * resign drone
* Revert "Set VERSION from git once, in a variable (#1447)"Kim "BKC" Carlbäcker2017-04-281-3/+1
| | | | This reverts commit 410af6971b87ac5dc7ac198f538d8383c1f47a1f.
* improve integration test to resue models/fixtures and store git repos with ↵Lunny Xiao2017-04-281-9/+3
| | | | | | | | | | tests (#1627) * improve integration test to resue models/fixtures and store git repos with source * use gitea-integration-meta dir instead .tar.gz and cleanup every before every test * fix import package name
* Integration test framework (#1290)Ethan Koenig2017-04-251-4/+18
| | | | | | | | | | * Integration test framework * udpate drone sign * Formatting fixes and move router.go to routers/ * update sign for drone
* Check if missing/modified/unused deps in vendor and fix errors (#1468)Antoine GIRARD2017-04-241-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | * Check if missing deps in vendor This will catch import from other repos. (maybe by auto-import) * Remove github.com/smartystreets unused deps * Remove github.com/boltdb/bolt unused dep * Fetch github.com/go-xorm/core + sync gopkg.in/ldap.v2/ldap.go * Auto-install govendor + reinstall github.com/boltdb/bolt needed by vendor/github.com/blevesearch/bleve/index/store/boltdb * Update go-xorm/xorm to a5cb21 in vendor.json * Use a custom repo for implementing change to bolt dep. * Switching bolt to github.com/go-gitea/bolt * Switching bolt to github.com/go-gitea/bolt (fork version) * change the drone sign
* Set VERSION from git once, in a variable (#1447)Sandro Santilli2017-04-061-1/+3
|
* Add GOFLAGS and EXTRA_GOFLAGS (#1438)Mura Li2017-04-051-1/+4
|
* Split the binary build (#985)Thomas Boerger2017-03-071-5/+24
| | | | | | | | As we can not compile darwin binaries with static flags I have split the build process into different make tasks. Now we get static linked binaries especially for linux so that it also can run on older versions of CenOS and so on. Signed-off-by: Thomas Boerger <thomas@webhippie.de>
* Add basic integration test infrastructure (and new endpoint ↵Mura Li2017-03-061-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `/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
* Fix for #828: Embed build tags (#1051)Jonas2017-02-281-1/+1
| | | | | | | | | | | | | | | | | | | | | * Fix for #828 Add build tags to ldflags and print in version output Signed-off-by: Jonas Östanbäck <jonas.ostanback@gmail.com> * Reworked formatBuiltWith function Signed-off-by: Jonas Östanbäck <jonas.ostanback@gmail.com> * Add tags to version information in admin panel Signed-off-by: Jonas Östanbäck <jonas.ostanback@gmail.com> * Added new variable for use on admin page. Signed-off-by: Jonas Östanbäck <jonas.ostanback@gmail.com> * Fixed incorrect indentation
* Makefile: Use hash over which (#1069)silverwind2017-02-261-4/+4
| | | `hash` is a much faster shell-builtin alternative to `which`.
* Makefile: Also redirect stderr on which calls (#1068)silverwind2017-02-261-4/+4
|
* Tweak docker target to work by default. (#1033)Dan Morrill2017-02-241-1/+1
| | | | | | Fix for #1013: adds "bindata" to tags by default, as without this the resulting docker image won't start, as it doesn't contain locale files. Verified to work even if you specify TAGS="bindata" such that it appears twice.
* Makefile: install on build (#874)Andrey Nering2017-02-091-1/+1
| | | This install Go package on building for caching and faster builds
* Fix master builds on mips* again (#815)Thomas Boerger2017-02-021-1/+1
| | | | | | | | | | | | * Use local folder for xgo * Always do crosscompile and testing to fail early * Added mips* values for boltdb In order to get master building again I have applied these 2 additional files to boltdb. This should get dropped when https://github.com/boltdb/bolt/issues/656 gets solved.
* Set the ldflags to static value within makefile (#709)Thomas Boerger2017-01-201-1/+1
|
* Enforce custom LDFLAGS within makefile (#684)Thomas Boerger2017-01-171-1/+1
|
* Makefile: on Windows, executable should have ".exe" (#550)Andrey Nering2017-01-011-1/+6
|
* replcae go fmt with gofmt command.Bo-Yi Wu2016-12-301-1/+1
| | | | Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* Properly handle drone tags and release/* branches (#466)v1.0.0Thomas Boerger2016-12-241-2/+2
|
* Bindata is optional and over-writable on restart (#354)Thomas Boerger2016-12-221-19/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Moved conf assets into options folder * Dropped old bindata * Started to integrate options bindata and accessors * Do not enforce a builtin app.ini * Replaced bindata calls with options * Dropped bindata task from makefile, it's the generate task now * Always embedd app.ini to provide sane config defaults * Use sane defaults for the configuration * Defined default value for SSH_KEYGEN_PATH * Dropped "NEVER EVER MODIFY THIS FILE" header from app.ini * Fixed new paths in latest test additions * Drop bindata with make clean task * Set more proper default values
* Do not override the binary version name from drone (#436)Thomas Boerger2016-12-211-3/+1
| | | Signed-off-by: Thomas Boerger <tboerger@suse.de>
* Fixing multiple docker issues (#386)Thomas Boerger2016-12-151-0/+5
| | | | | | | | | | | | * Added stupid docker task to makefile * Dropped unknown option PrintLastLog from docker ssh config * OpenSSH should log to docker stdout * Set random pw for docker git user, otherwise it is locked * Stop using templates and public within docker
* Autogenerate Version on build (#190)Kim "BKC" Carlbäcker2016-12-131-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | * Autogenerate Version On Build * Fixes * Changed Version to v0.9.0 * balls * I hate newlines * Don't remove .VERSION-file on `make clean` * v0.9.0 => 1.0.0 * damn new-lines... * Always rebuild templates/.VERSION * Delete .VERSION * Update Makefile
* Actually fix 'make build' (#353)Kim "BKC" Carlbäcker2016-12-051-2/+2
| | | | * Actually fix bloddy 'make build'
* Awlays build, even when it thinks it's up to date (#351)Kim "BKC" Carlbäcker2016-12-051-0/+1
|
* Properly move releases within drone buildsThomas Boerger2016-12-051-2/+8
|
* Get rid of bin folder within makefile, enabled TiDB (#319)Thomas Boerger2016-12-011-20/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | * Get rid of the bin folder within the build process Signed-off-by: Thomas Boerger <thomas@webhippie.de> * Dropped latest make task, it is unused Signed-off-by: Thomas Boerger <thomas@webhippie.de> * Added tidb tag to drone config Signed-off-by: Thomas Boerger <thomas@webhippie.de> * Dropped the cert build tag Signed-off-by: Thomas Boerger <thomas@webhippie.de> * Dropped useless minwinsvc build tag Signed-off-by: Thomas Boerger <thomas@webhippie.de> * Dropped the useless build tags from drone config Signed-off-by: Thomas Boerger <thomas@webhippie.de>
* Have "make" create the executable in root dir (#247)Sandro Santilli2016-11-301-2/+2
| | | | | Same as "go build". Makes it functional by default as it'd then find template/ and public/ by default w/out setting GITEA_WORK_DIR
* Integrate public as bindata optionally (#293)Thomas Boerger2016-11-301-8/+12
| | | | | | | | | | | | | | | | | | | | | | | | * Dropped unused codekit config * Integrated dynamic and static bindata for public * Ignore public bindata * Add a general generate make task * Integrated flexible public assets into web command * Updated vendoring, added all missiong govendor deps * Made the linter happy with the bindata and dynamic code * Moved public bindata definition to modules directory * Ignoring the new bindata path now * Updated to the new public modules import path * Updated public bindata command and drop the new prefix
* Replace invaliud bindata variable names within make taskThomas Boerger2016-11-291-0/+2
|
* Added errcheck make task (#242)Thomas Boerger2016-11-251-0/+7
|
* Merge pull request #96 from metalmatze/feature/drone-configThomas Boerger2016-11-241-4/+12
|\ | | | | Create a first draft for .drone.yml
| * Added drone instead of travis detection to makefileThomas Boerger2016-11-241-4/+4
| |
| * Added dummy tasks for mysql and pgsql testsThomas Boerger2016-11-241-0/+8
| |
* | Really use go install on make installThomas Boerger2016-11-241-2/+2
|/
* Have the deault 'all' rule just buildSandro Santilli2016-11-241-1/+1
| | | | Clean and test are saner being seperate targets
* Update import paths from github.com/go-gitea to code.gitea.io (#135)Sandro Santilli2016-11-101-3/+3
| | | | | | | - Update import paths from github.com/go-gitea to code.gitea.io - Fix import path for travis See https://docs.travis-ci.com/user/languages/go#Go-Import-Path
* Hush dangerous GNU comment, mark "check" rule as phonySandro Santilli2016-11-071-1/+1
|
* Add "check" alias for testingSandro Santilli2016-11-071-0/+3
| | | | | Follows GNU Coding Standards, see https://www.gnu.org/prep/standards/html_node/Standard-Targets.html#Standard-Targets
* Totally refactored the makefile and adjusted travis configThomas Boerger2016-11-041-51/+109
|
* Merge branch 'master' into feature/main.goThomas Boerger2016-11-041-4/+4
|\
| * Set default less and css to new default nameJoubert RedRat2016-11-041-4/+4
| |
* | Rename all occurrences of gogs.goMatthias Loibl2016-11-041-1/+1
|/ | | | Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
* Change import reference to match gitea instead of gogs (#37)Rémy Boulanouar2016-11-031-2/+2
|