253 Commits (forgejo)

Author SHA1 Message Date
Bo-Yi Wu 6b6f16cfae backport from v1.2 branch: add secrets for github release (#2588) (#2598) 7 years ago
Morlinest 0b0d85c90d Add pre-build step for nodejs stuff (#2581) 7 years ago
Jonas Franz fa6d7c7b99 Automatic update of translations (#2585)
* Adding build step for uploading translations

* Fixing crowdin project name

* Using crowdin plugin

* Changing secret name

* Adding pull: true
7 years ago
Lauris BH 28f4de205f Fix drone for tags (#2573) 7 years ago
silverwind 1fbfccb4fc Use standard lessc and minify CSS using Node.js (#2337)
* 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
7 years ago
Ethan Koenig fa1cbc2896 Always run fmt check in CI (#2546) 7 years ago
Thomas Boerger cbe50587ba Added bucket name to s3 drone plugin (#2505) 7 years ago
Bo-Yi Wu 3e89e89670 add codecov.io service. (#2493)
* 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>
7 years ago
Lunny Xiao 9ef83a98e5 fix release (#2496) 7 years ago
Antoine GIRARD 69dfe43ffc Fix some tests : make coverage -> test (#2492)
* Fix test : make coverage -> test

* Refactor integration tests to be able to run them in parallel

* Add custom local repository temp path
7 years ago
Thomas Boerger fd85e25f5f Hotfix for integration testing (#2473)
* Hotfix for integration testing

* Comment sqlite tests because of database locking issues
7 years ago
Thomas Boerger 4b8fef143e Changes for latest DroneCI (#2362) 7 years ago
Bo-Yi Wu be4f6a754c Revert "Changes for latest DroneCI (#2355)" (#2358)
This reverts commit faf4b503b2.
7 years ago
Thomas Boerger faf4b503b2 Changes for latest DroneCI (#2355) 7 years ago
Bo-Yi Wu 9ff371a147 ignore coverage steps. (#2257)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
7 years ago
Bo-Yi Wu 2b05b104ef Add verify changed less-file step to Makefile (#1861) 7 years ago
Bo-Yi Wu da89afda58 feat: upgrade drone docker image to support multi-stage build. (#1732)
* feat: upgrade drone docker image to support multi-stage build.

* update drone sig file.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* update drone sig file.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
7 years ago
Ethan Koenig b4e8a7c4d1 Skip sqlite integration in CI (#2058) 7 years ago
Bo-Yi Wu d7570895cc update drone discord plugin to 0.0.4 version (#1992)
* update drone discord plugin to 0.0.3 version

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* update to 0.0.4

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* update sig file.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
7 years ago
Ethan Koenig 792cde7081 Coverage reports for integration tests (#1960) 7 years ago
Bo-Yi Wu 0d560f3441
send notification if status changed
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
7 years ago
Bo-Yi Wu 5b0cbf3788 switch gitter to discord for drone. (#1971)
* switch gitter to discord for drone.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* add event

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* only notify build fail message.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
7 years ago
Kim "BKC" Carlbäcker 4a3f40460b Don't run 'make release' on PRs (#1908) 7 years ago
Bo-Yi Wu 703d18e50d feat: add check misspelling (#1877) 7 years ago
Bo-Yi Wu 04c6c31f8e fix: only run test coverage on master branch. (#1838) 7 years ago
Ethan Koenig ff96bda138 Only run coverage on merges/pushes to master (#1783) 7 years ago
Ethan Koenig 66c803fae2 MySQL, Postgres integration tests in drone (#1638)
* MySQL, Postgres integration tests in drone

* Fix .drone.yml

* sign drone

* resign drone
7 years ago
Sandro Santilli 00324cea10 Limit clone depth when drone-building (#1644)
* Limit clone depth when drone-building

* sign drone
7 years ago
Ethan Koenig c58708d3ee Integration test framework (#1290)
* Integration test framework

* udpate drone sign

* Formatting fixes and move router.go to routers/

* update sign for drone
7 years ago
Antoine GIRARD eb1075dd4c Check if missing/modified/unused deps in vendor and fix errors (#1468)
* 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
7 years ago
Thomas Boerger 1d65291342
Fixed drone builds 7 years ago
Thomas Boerger 7ed00b6e8d Split the binary build (#985)
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>
7 years ago
Thomas Boerger ea8c8cdaf3 Fix master builds on mips* again (#815)
* 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.
7 years ago
Thomas Boerger 2d17d6bc16 Clone tags within drone for proper version generation (#591) 7 years ago
Thomas Boerger 6aacf4d2f0 Properly handle drone tags and release/* branches (#466) 8 years ago
Thomas Boerger 7b67347104
Fixed drone tagging 8 years ago
Andrey Nering 578a8e258e Revert "Disable coverage report for now" (#400) 8 years ago
Thomas Boerger 8aeeed0a23 Disable coverage report for now (#395)
Until aircover gets updated so that it works again I have disabled to
coverage report upload for now.
8 years ago
Thomas Boerger 2b63f32b8a Enabled bindata build tag and generate bindata (#352) 8 years ago
Thomas Boerger 8a28130540
Fixed build tags and deps for all build/test steps 8 years ago
Thomas Boerger 2932042a6d Get rid of bin folder within makefile, enabled TiDB (#319)
* 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>
8 years ago
Thomas Boerger 684d55e130
Reenabled lint check within drone 8 years ago
Thomas Boerger 575dc69e3b
Updated drone docker definitions
In order to automatically build docker images I have re-enabled the
docker building parts within our drone runs on every push to master and
on every tag.

Signed-off-by: Thomas Boerger <tboerger@suse.de>
8 years ago
Thomas Boerger 65549863bc
Dropped latest publishing from drone 8 years ago
Thomas Boerger 0accc935a3
Fixed s3 publishing within drone 8 years ago
Thomas Boerger 3ae7955d15
Disable broken docker build for now 8 years ago
Thomas Boerger 755ed84740
Be more explicit and dropped matrix builds from drone 8 years ago
Thomas Boerger fd090dc29b
Added matrix drone builds 8 years ago
Matthias Loibl 4c03974326
Create a first draft for .drone.yml 8 years ago
Unknwon 37d8d3afe9 more APIs on #12 10 years ago
Unknwon db0026c507 test drone 10 years ago
Unknwon 51f6148851 test drone 10 years ago
Unknwon c0549a169a test drone 10 years ago