aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* 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
* 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
|