aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* [Docs] introduce "make help" (#9604)65432020-01-051-0/+19
| | | | | | | | | | | | * introduce "make help" * fix + add more routienes * Update Makefile * add make vet Co-authored-by: techknowlogick <matti@mdranta.net>
* Address minor portability issues (#9414)dankm2019-12-181-1/+4
| | | | | | | | | * Add os specific sed for FreeBSD. * Replace hardcoded "make" with $(MAKE) Some systems don't use GNU make by default, and use something like gnumake or gmake. Respect that when determining the make version.
* Combine Drone release steps (#9338)silverwind2019-12-151-8/+2
| | | | | | | | | | | | | | | | | * Combine Drone release steps Fixes missing JS/CSS because drone did unwanted parallelization of the js/css task and the generate task. Combined the tasks into one and made 'make release' work standalone. Fixes: https://github.com/go-gitea/gitea/issues/9324 Fixes: https://github.com/go-gitea/gitea/issues/9362 * move js/css to generate dependencies * remove unneccessary go-all target * remove go target as well
* prebuild CSS/JS before xgo release binaries (#9293)techknowlogick2019-12-081-1/+1
| | | | | | | | | | * prebuild CSS/JS before xgo release binaries * Update .drone.yml * Update Makefile * update per @lafriks feedback
* Remove explicit 'generate' calls, fix release task (#9288)silverwind2019-12-081-1/+1
| | | | | | | | | | | * Remove more explicit 'generate' calls `generate` is now implicit during `build` since #9114, it is no longer necessary or desired to specify it explicitely. * add js,css,generate dependencies to release task * remove generate warning as per @lunny
* Switch CSS minifier to cssnano (#9260)silverwind2019-12-051-3/+3
| | | | | This results in around 4kB saving in CSS size and also resolves with a particular issue on git bash which had issues with the format of the lessc arguments.
* Add Node.js build dep, remove built js/css files (#9114)silverwind2019-12-051-31/+60
| | | | | | | | | - Added Node.js as build dependency and removes build files from git. - Added version checks for both Go and Node.js. - Overhauled the js/css make target to only run when needed. - Merged the `generate` make target into `build` as per suggestion. Fixes: https://github.com/go-gitea/gitea/issues/6782 Fixes: https://github.com/go-gitea/gitea/issues/9216
* Check compiled files during build (#9042)Gary Kim2019-11-161-7/+0
| | | Signed-off-by: Gary Kim <gary@garykim.dev>
* Move index.js to web_src and use webpack to pack them (#8598)Lunny Xiao2019-11-131-1/+2
| | | | | | | | | | | | * Move index.js to web_src and use webpack * Fix initHeatMap * update eslint and move webpack to devDependencies * update index.js * add eslint env node
* Move less from public/ to web_src/ so that it will not be packeā€¦ (#8908)Lunny Xiao2019-11-121-3/+3
|
* Add API for Issue set Subscription (#8729)65432019-11-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add issue subscriber API * subscribers return []user.APIFormat * add comments * more meaningfull description * without "reqToken()" api works ... * should be still secure beause ctx.user has to be there or nothing will hapen * FIX: getIssueWatchers() get only aktive suscriber * add return avter error on right position * Revert "FIX: getIssueWatchers() get only aktive suscriber" This reverts commit 5eca9291858a821981992b0aaa38cef610d84bca. * Update routers/api/v1/repo/issue.go Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * test go linter again * update swagger * GetIssueWatchers -> GetIssueSubscribers part one Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * GetIssueWatchers -> GetIssueSubscribers part two * Revert "test go linter again" This reverts commit bab12356227e44334de113b76f12099de0b8aaa6. * change description for unsubscribe too * golangci-lint timeout avter 5min * move issueSubscription to seperate file * dont create black entitys * use IsWatching until refactoring * Update License Info * better swagger description * Update .golangci.yml because functions moved from issue.go to issue_subscription.go * add IssueWatchList type * batch tasks * use e Engien * add error handling * error should be the last type when returning multiple items * short version * reurn empy UserList instead of nil
* Sign merges, CRUD, Wiki and Repository initialisation with gpg key (#7631)zeripath2019-10-161-0/+4
| | | | | | | | | | | | | | | | | | | This PR fixes #7598 by providing a configurable way of signing commits across the Gitea instance. Per repository configurability and import/generation of trusted secure keys is not provided by this PR - from a security PoV that's probably impossible to do properly. Similarly web-signing, that is asking the user to sign something, is not implemented - this could be done at a later stage however. ## Features - [x] If commit.gpgsign is set in .gitconfig sign commits and files created through repofiles. (merges should already have been signed.) - [x] Verify commits signed with the default gpg as valid - [x] Signer, Committer and Author can all be different - [x] Allow signer to be arbitrarily different - We still require the key to have an activated email on Gitea. A more complete implementation would be to use a keyserver and mark external-or-unactivated with an "unknown" trust level icon. - [x] Add a signing-key.gpg endpoint to get the default gpg pub key if available - Rather than add a fake web-flow user I've added this as an endpoint on /api/v1/signing-key.gpg - [x] Try to match the default key with a user on gitea - this is done at verification time - [x] Make things configurable? - app.ini configuration done - [x] when checking commits are signed need to check if they're actually verifiable too - [x] Add documentation I have decided that adjusting the docker to create a default gpg key is not the correct thing to do and therefore have not implemented this.
* Update golangci to v1.20 (#8432)kolaente2019-10-081-2/+2
| | | | | | | | | | * Update golangci to v1.20 Signed-off-by: kolaente <k@knt.li> * Use the timeout flag instead of deadline, move it to config Signed-off-by: kolaente <k@knt.li>
* Update golangci to v1.19.1 (#8414)kolaente2019-10-071-1/+1
| | | Signed-off-by: kolaente <k@knt.li>
* Improve integration tests (#8276)Lunny Xiao2019-09-251-41/+87
| | | | | | | | * improve integration tests * fix Makefile * improve makefile and integration docs
* use go 1.13 (#8088)techknowlogick2019-09-121-1/+1
| | | | | | | | | | * use go 1.13 * use go 1.13 in gomod file * Update Makefile * update swagger deps
* Use vendored go-swagger (#8087)Antoine GIRARD2019-09-041-8/+4
| | | | | | | | | | | | | | * Use vendored go-swagger * vendor go-swagger * revert un wanteed change * remove un-needed GO111MODULE * Update Makefile Co-Authored-By: techknowlogick <matti@mdranta.net>
* Fix make-generate using non-vendor packages (#8008)Mura Li2019-08-281-1/+1
|
* Update swagger to 0.20.1 (#8010)Antoine GIRARD2019-08-281-2/+2
| | | | | | * update swagger to 0.20.1 * fiw swagger version for validate
* Update golangci-lint to v1.17.1 (#7848)techknowlogick2019-08-131-2/+2
|
* remove `-i` flag from GOFLAGS (#7778)Lars Kistner2019-08-071-1/+1
| | | | this flag is not needed for Go versions >=1.10 and creates problems while building. see https://github.com/golang/go/issues/27285#issuecomment-424382413
* Use vendors when go generate (#7340)Lunny Xiao2019-07-061-1/+1
| | | | | | | | * use vendors when go generate * update docs about golang minimal requirement from 1.9 to 1.11 * fix build
* workaround broken drone build (#7362)Cherrg2019-07-061-1/+1
| | | | | | | | | | | | | | | | | | | | * workaround broken swagger only master brach is not working, latest release seems to work Signed-off-by: Michael Gnehr <michael@gnehr.de> * make vendor Signed-off-by: Michael Gnehr <michael@gnehr.de> * Don't export GO111MODULE * set go-swagger to fixed release version mentioned here: https://github.com/go-gitea/gitea/pull/7362#discussion_r300831537 Signed-off-by: Michael Gnehr <michael@gnehr.de>
* replace lesshint with stylelint (#7305)silverwind2019-06-271-1/+1
| | | | | | | | | New CSS linter which is much more powerfull than the previous one. Configuration is default but I had to remove a few rules that were throwing too many or weird errors. More importantly, the linter will exit with code 1 on errors so now our build will fail if the CSS linter fails which should eliminate linter errors being introduced without notice.
* add 'npm' and 'npm-update' make targets and lockfile (#7246)silverwind2019-06-181-15/+18
| | | | | | | | | | | | | | | | | | * add 'npm' and 'npm-update' make targets and lockfile - `make npm` installs and updates node_modules, triggered automatically on `make css` and `make js` as it completes reasonably fast and ensures consistent modules. - `make npm-update` updates all dependencies to their latest version, regenerates `node_modules` from scratch and updates `package-lock.json`. It uses npm modules `updates` written by yours truly to find the latest version of each dependency. * add suggested make dependencies * remove package-lock.json during npm-update * regenerate package-lock.json
* UI: Fix overflow issues in repo (#7190)silverwind2019-06-141-1/+1
| | | | | | | | | | | - Fix layout overflow in repo file list. - Fix invisible status icon in file view and commit list. In file view, the icon was moved to the left because I could not figure out a proper fix because of HTML tables. - Added title attribute to commit messages. - Fixed two CSS linter warnings in existing CSS. - Fixed CI variable check in 'make css'. Fixes: https://github.com/go-gitea/gitea/issues/7180
* fix drone build bug (#7192)Cherrg2019-06-131-0/+1
|
* Add golangci (#6418)kolaente2019-06-121-0/+11
|
* Use vfsgen instead of go-bindata (#7080)Lunny Xiao2019-06-031-4/+1
| | | | | | | | | | * use vfsgen instead of go-bindata * fix templates * fix fmt * vendor vsfgen
* Disable arm7 builds (#7037)techknowlogick2019-05-251-1/+1
| | | | | | | | * Disable arm7 builds As arm6 works on arm7 platforms with no noticeable performance difference * 386
* add make targets for js and css, add js linter (#6952)silverwind2019-05-161-18/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add make targets for js,css, add javascript linter - add `make js`, deprecating `make javascripts` - add `make css`, deprecating `make generate-stylesheets` and `make stylesheets-check` - changed the unclean css check to only run on CI - add JS linting via eslint with basic configuration and fixed discovered issues - changed autoprefixer to use official `postcss-cli` avoiding the need to loop in the makefile - moved browserslist to package.json so other future tools can use it too. - update documentation for new make targets and added JS section * fix indentation * move functions used in html to 'exported' list * Run lessc binary without having to install anything to node_modules * use relative paths to node bin scripts, removing npx * Revert "use relative paths to node bin scripts, removing npx" This reverts commit 119b725525a8430b32ee7a6e6009b4ece544e39b. * fix lessc and postcss plugins * check for node_modules and use actual bin names
* Add less linter via npx (#6936)Xaver Maierhofer2019-05-141-0/+1
|
* Use single line per selector & don't strip license comments (#6919)Xaver Maierhofer2019-05-131-2/+2
|
* Enforce osusergo build tag for releases (#6862)Antoine GIRARD2019-05-061-3/+3
|
* Make CustomPath, CustomConf and AppWorkPath configurable at build (#6631)zeripath2019-04-291-9/+3
|
* Prevent creating empty sessions (#6677)zeripath2019-04-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Prevent creating empty sessions Signed-off-by: Andrew Thornton <art27@cantab.net> * Update modules/setting/session.go * Remove unnecessary option Signed-off-by: Andrew Thornton <art27@cantab.net> * Add destory to list of ignored misspellings * rename cookie.go -> virtual.go * Delete old file * Add test to ensure that sessions are not created without being logged in Signed-off-by: Andrew Thornton <art27@cantab.net> * fix tests Signed-off-by: Andrew Thornton <art27@cantab.net> * Update integrations/create_no_session_test.go
* remove bash requirement in makefile (#6617)techknowlogick2019-04-141-2/+1
|
* Fix cross-compile builds (#6609)techknowlogick2019-04-141-6/+8
|
* Add a new Make target for running single integration test (#6500)Mura Li2019-04-041-0/+4
| | | | | | * Add a new Make target for running single integration test * Use # instead of - as the delimiter
* add make version on gitea version (#6485)Lunny Xiao2019-04-021-1/+3
|
* Fies #6468 - Uses space match and adds newline for all sed flavors (#6473)Richard Mahn2019-04-011-2/+4
|
* Use Go1.11 module (#5743)Mura Li2019-03-271-10/+7
| | | | | | | | | | | | | | | | | | * Migrate to go modules * make vendor * Update mvdan.cc/xurls * make vendor * Update code.gitea.io/git * make fmt-check * Update github.com/go-sql-driver/mysql * make vendor
* optimize all images in public/img (#6427)silverwind2019-03-251-5/+6
| | | Fixes: https://github.com/go-gitea/gitea/pull/6357
* Make the version within makefile overwriteable (#6080)techknowlogick2019-03-181-2/+2
| | | Fix #1173
* Add test environment for Mysql8 (#5234)Lunny Xiao2019-03-171-4/+20
|
* use updated reference of xgo in makefile (#6339)techknowlogick2019-03-151-3/+3
|
* [Contrib] Checkout a PR (#6021)Antoine GIRARD2019-03-071-0/+4
|
* UI: Make document body a flexbox (#6139)silverwind2019-02-241-1/+1
| | | | | | | | | | | | * UI: Make document body a flexbox Fixes: https://github.com/go-gitea/gitea/issues/6118 * ie11 fixes * increase padding to 80px * add flex-grow
* Refactor coverage profile with multiple packages (#6167)Bo-Yi Wu2019-02-231-1/+1
|
* Makefile changes for Windows and easier development (#6103)John Olheiser2019-02-201-3/+9
| | | | | | | | * Added Go Path and node_modules to PATH * Uses npx now for generate-stylesheets * Uses `go env GOPATH` to calculate adding GOPATH/bin to PATH * Added note about installing Node 8.0+ to generate stylesheets * Added preferred Node version to CONTRIBUTING.md