summaryrefslogtreecommitdiffstats
path: root/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* Restore make test target (#3139)Ethan Koenig2017-12-111-1/+0
| | | | | | * Restore make test target * make build -> go build
* Fix compile failed without gcc (#3130)Lunny Xiao2017-12-101-2/+3
| | | | | | * fix comile failed without gcc * add sqlite tag for unit test
* Fix coverage reports (#2974)Ethan Koenig2017-11-261-8/+1
|
* Fix bench deps since #2916 (#2971)Antoine GIRARD2017-11-261-4/+4
|
* Restore build as the default make rule (#2935)Ethan Koenig2017-11-191-2/+2
|
* Combine identical Makefile rules (#2916)Ethan Koenig2017-11-171-9/+6
|
* Docker multi-arch base (#1985)Antoine GIRARD2017-11-161-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Create docker/manifest/base.yml serve as base for build docker image for most platform (386,amd64,arm,arm64) * Add make task docker-multi-arch-push-manifest To update references of a multi-arch image on docker registry. * Use SED_INPLACE generic sed command * Delete Dockerfile.aarch64 Delete Dockerfile.rpi * Use gitea/gitea-base as base and replace deprecated MAINTAINER by LABEL (https://docs.docker.com/engine/reference/builder/#maintainer-deprecated) * Fix rebase * Use sapk/gitea-base as base * Split makefile for docker * Fix version to v3.6 Could use in later version edge of alpine official library that support multi-arch for armhf. * Remove sapk/gitea-base and use directly new official alpine multi-arch
* Update swagger documentation (#2899)Ethan Koenig2017-11-131-2/+0
| | | | | | | | | | | * Update swagger documentation Add docs for missing endpoints Add documentation for request parameters Make parameter naming consistent Fix response documentation * Restore delete comments
* Move swagger-ui under /api/v1 (#2746)Antoine GIRARD2017-10-211-2/+2
| | | | | | | | | | | | * Move swagger interface under /api/v1 * Update swagger-ui * Add /api/swagger and prepare for multiple api version * Update test links * Fix footer link
* Compress css with nodejs (#2580)Morlinest2017-09-241-9/+5
|
* Use standard lessc and minify CSS using Node.js (#2337)silverwind2017-09-211-8/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use standard lessc and minify CSS using Node.js This changes the previous nonstandard `lessc` to the official one and enables CSS minification via the clean-css module. To build CSS, Node.js is required along with a `npm install` to get the tools installed locally in node_modules so there is no dependency on binaries in PATH. Benefits include: - Allows one to have a standard lessc in PATH. - Can now use command line switches on lessc. - Minified CSS brings faster page load times and also has the benefit of discouraging contributors from editing CSS directly. To build CSS, Node.js is required along with a `npm install` to get the tools installed locally based on the information in `package.json`. The 'make stylesheet' task was modified to run without condition. This makes it easier to work on the make task itself without having to delete files. Also fixes: https://github.com/go-gitea/gitea/issues/2198 * install node, npm and modules on drone * .PHONY * use 'minify' to minify CSS
* Always run fmt check in CI (#2546)Ethan Koenig2017-09-211-1/+1
|
* Remove go version check for make fmt (#2558)Lauris BH2017-09-201-5/+2
|
* Improve issue search (#2387)Ethan Koenig2017-09-161-1/+5
| | | | | | | | | | * Improve issue indexer * Fix new issue sqlite bug * Different test indexer paths for each db * Add integration indexer paths to make clean
* add codecov.io service. (#2493)Bo-Yi Wu2017-09-131-21/+24
| | | | | | | | | | | | | | | | | | | | | | * add codecov.io service. Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com> * update Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com> * only PR or master branch (for coverage badge) Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com> * update Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com> * update init Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* Allow changing integration test database connection using env variables (#2484)Lauris BH2017-09-131-2/+20
|
* Fix some tests : make coverage -> test (#2492)Antoine GIRARD2017-09-121-11/+14
| | | | | | | | * Fix test : make coverage -> test * Refactor integration tests to be able to run them in parallel * Add custom local repository temp path
* Changes for latest DroneCI (#2362)Thomas Boerger2017-09-071-2/+2
|
* Moved vendored js/css into `public/vendor` and documented sources (#1484) ↵Michael Lustfield2017-08-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#2241) * Cleaning up public/ and documenting js/css libs. This commit mostly addresses #1484 by moving vendor'ed plugins into a vendor/ directory and documenting their upstream source and license in vendor/librejs.html. This also proves gitea is using only open source js/css libraries which helps toward reaching #1524. * Removing unused css file. The version of this file in use is located at: vendor/plugins/highlight/github.css * Cleaned up librejs.html and added javascript header A SafeJS function was added to templates/helper.go to allow keeping comments inside of javascript. A javascript comment was added in the header of templates/base/head.tmpl to mark all non-inline source as free. The librejs.html file was updated to meet the current librejs spec. I have now verified that the librejs plugin detects most of the scripts included in gitea and suspect the non-free detections are the result of a bug in the plugin. I believe this commit is enough to meet the C0.0 requirement of #1534. * Updating SafeJS function per lint suggestion * Added VERSIONS file, per request
* Revert "Changes for latest DroneCI (#2355)" (#2358)Bo-Yi Wu2017-08-221-2/+2
| | | This reverts commit faf4b503b24d33a2a0f455d26bb782345ab8e0c9.
* Changes for latest DroneCI (#2355)Thomas Boerger2017-08-221-2/+2
|
* Remove integration test executables on `make clean` (#2340)Sandro Santilli2017-08-201-1/+1
|
* refactor(Makefile): allow overriding default go program (#2310)Bo-Yi Wu2017-08-161-24/+25
|
* go get github.com/wadey/gocovmerge when needed (#2235)Antoine GIRARD2017-07-311-0/+3
|
* Generate small and large logos at 4x resolution (#2233)silverwind2017-07-301-4/+4
| | | | | To support High-DPI displays, generate images at 4 times their displayed resolution, which should be enough to support all current devices according to https://material.io/devices/.
* remove unused variable on makefile (#2225)Lunny Xiao2017-07-291-1/+0
|
* Add task to generate images from SVG and change to new logo (#2194)Lauris BH2017-07-281-0/+26
| | | | | | * Add makefile task to generate images from SVG and change to new logo * use absolute path on generate-images
* fix: replace tmp with TMPDIR. (#2152)Bo-Yi Wu2017-07-131-3/+3
|
* fix typo (#2145)Bo-Yi Wu2017-07-121-1/+1
| | | Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* Add verify changed less-file step to Makefile (#1861)Bo-Yi Wu2017-07-121-7/+15
|
* Use POSIX complaint ! operator in find (#2132)Roy Marples2017-07-101-1/+1
| | | | | | | | | | | * Use POSIX complaint ! operator in find -not is a GNU extension and not all find(8) implementations support it. It's just an alias for ! which is POSIX compliant. Now gitea compiles on NetBSD at least. * Revert change in vendor directory as requested
* Add make command update-translations for update translations from crodwin ↵Lunny Xiao2017-07-031-0/+10
| | | | | | | | (#2097) * add make command update-translations for update translations from crowdin to options/locale * use curl & resolve double quote on make file
* Add integration test for repository migration (#1983)Mura Li2017-06-201-0/+14
|
* Separate generate swagger + fix sed os specific (#1791)Antoine GIRARD2017-06-151-3/+22
| | | | | | | | | | | | | | | | | * Separate generate-swagger * Remove go generate rules * Add missing definition replacement + remove use of -i sed flag for compatibility with mac os default sed version. This is a little hacky a better solution could be use. * Use custom SED_INPLACE depending of platform detection * Use SED_INPLACE for swagger-ui also
* Coverage reports for integration tests (#1960)Ethan Koenig2017-06-151-4/+23
|
* Include formatting check to the `make test` (and thus also `check`) rule (#1366)Sandro Santilli2017-06-061-4/+18
| | | | | | | | | | | | | | | | | | * Include formatting check to the `make check` rule ... and give it its own standalone target too (make fmt-check) Show diff on fmt-check failure Do not allow running "fmt-check" with incompatible go version Also simplify the `fmt` rule * Forbid running "make fmt" with Go version != 1.7 or 1.8 * Ignore bindata.go for spelling and formatting checks also remove duplicated variable assignment for GOFILES * Run `make fmt`
* feat: add check misspelling (#1877)Bo-Yi Wu2017-06-051-0/+15
|
* fix: error from mktemp command in MacOS. (#1837)Bo-Yi Wu2017-06-041-8/+7
| | | | | | | | * fix: error from mktemp command in MacOS. * [ci skip] udpate temp name. Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* Add variable for docker tag (#1825)himaaaatti2017-05-311-1/+2
| | | Signed-off-by: Shunsuke Mie <sux2mfgj@gmail.com>
* Remove stale rule from Makefile (#1782)Ethan Koenig2017-05-251-5/+0
|
* Only run coverage on merges/pushes to master (#1783)Ethan Koenig2017-05-251-0/+4
|
* 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