mirror of
1
Fork 0
Commit Graph

255 Commits

Author SHA1 Message Date
silverwind a71cabbd53 add 'npm' and 'npm-update' make targets and lockfile ()
* 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
2019-06-18 22:59:47 -04:00
kolaente f9ec2f89f2 Add golangci () 2019-06-12 15:41:28 -04:00
Nick Meyer 5d3177dbb6 Exclude pull_request from fetch-tags step, fixes ()
Signed-off-by: Nick Meyer <nick@e3b0c442.io>
2019-06-05 09:17:17 +08:00
Mura Li 5a722ae812 Timeout test commands without complicated tricks () 2019-05-26 00:13:01 +01:00
silverwind d9dcd09340 add make targets for js and css, add js linter ()
* 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 119b725525.

* fix lessc and postcss plugins

* check for node_modules and use actual bin names
2019-05-16 08:57:47 +03:00
kolaente a27d5d2b23 Drone: Do full branch clone and get tags for correct version hashes ()
Although  attempted to make version hashes be preceded with tag names on our branch builds, it would fail again silently at 50 commits because we were not cloning the full branch. Drone's new plugin will do a single branch clone by default meaning that depth is no longer necessary.
2019-05-02 23:41:54 +01:00
techknowlogick 99d919e83a
Disable benchmarking during tag events on DroneIO () 2019-03-19 02:24:55 -04:00
Lunny Xiao 4a6b011b15 Add test environment for Mysql8 () 2019-03-17 15:17:18 -04:00
techknowlogick 1142632f1a Use go 1.12 for tests and deprecate go 1.9 ()
Blocked until 1.12 docker images are released
2019-02-27 07:07:35 +08:00
Bo-Yi Wu 035c82aec4 feat(docker): speed up docker build. ()
* feat(docker): speed up docker build.

* feat: add docker dryrun

* fix: remove docker username and password if dryrun
2019-02-23 09:16:34 +08:00
techknowlogick 18d0662bdd Update .drone.yml () 2019-02-14 20:20:11 +02:00
Antoine GIRARD 9eb00fed13 Run benchmark at tag to track performances () 2019-02-11 12:09:50 -05:00
zeripath 8917d66571 Add migration test ()
* Add migration test

This commit adds a simple migration test for v1.5.3, v1.6.4 and v1.7.0-rc3

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Automigrate based on available dbs

* remove old ini file

* Standardise the dialect names
2019-01-28 11:18:52 -05:00
Antoine GIRARD 9f544e9356 drone/mssql: use golang 1.11 build like the other tests () 2018-12-23 23:11:22 +02:00
kolaente 6db7dbd333 Added test environment for mssql ()
* Added test environment for m$sql

* Added template for test environment for m$sql

* Fix password

* Fix password (again)

* Fix password (again again)

* Fix db

* Ci trigger (Looking at you drone....)

* Ci trigger (Looking at you drone....)

* Ci trigger (Looking at you drone....)

* Ci trigger (Looking at you drone....)

* Create master database for mssql integration tests

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Create database only if master do not exist

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Fix mssql integration tests by using custom database "gitea"

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Moved defer

* bump xorm

* updated xorm

* Fixed build
2018-12-12 09:01:41 +08:00
techknowlogick 241ee793b7
Set ACL on uploads ()
To support https://github.com/go-gitea/infrastructure/pull/39
2018-11-16 11:44:13 -05:00
Mura Li 7694c99ab3 Kill testing processes if the test takes too long ()
When timeout, Send ABRT signal to print backtraces for diagnosis.
The timeout value is set to 1200s (20mins) for now.
2018-10-28 21:54:13 -04:00
Mura Li 554581f848 Disable sqlite test ()
For 
2018-10-25 18:37:46 +08:00
Antoine GIRARD c258ae8ada revert () 2018-10-25 16:31:26 +08:00
Mura Li 159c2ffb0e Update outdated Go toolchain version for .drone.yml () 2018-10-23 12:08:05 -04:00
Mura Li 25c49cf930 Update build tags for sqlite_unlock_notify () 2018-10-23 19:47:59 +08:00
techknowlogick fcea86877f
update image used for build-without-gcc step ()
As we've dropped support for go 1.8 (see 1.5.0 release post),
now we need to ensure that a minimum of go 1.9 builds correctly.
2018-08-29 10:01:58 -04:00
techknowlogick 080428b2bf
Upgrade images in .drone.yml to more recent versions () 2018-08-29 09:43:58 -04:00
Lauris BH 7fbdd4f2ac Enable swagger validation back as issue with it has been fixed upstream () 2018-08-11 20:08:17 -04:00
Thomas Boerger 3e950ef112 Use correct site id for netlify () 2018-07-11 23:45:03 +02:00
Thomas Boerger d84490a0df Replaced docker docs with netlify deployment () 2018-07-11 16:43:33 +02:00
Lauris BH c2ec38f9b7 Disable swagger validation while it is not fixed in upstream () 2018-07-11 10:03:52 -04:00
Lunny Xiao 3f0d9beece fix exclude files .sha265 to .sha256 () 2018-06-24 14:10:11 +03:00
Antoine GIRARD a747a5d05f Add gpg-sign step to drone ()
* Add gpg-sign step to drone

* add compressed releases to gpg-sign targets

* Use exclude to simplify file list

2018-06-24 14:40:30 +08:00
kolaente cd29888906 Updated drone config to use the "next" git plugin () 2018-06-20 19:03:22 +03:00
Antoine GIRARD 908e8942cc Fix swagger errors ()
Fix all the resting errors to have a valid swagger file.

They are still some warnings but nothing blocking.

Doing so I found that some request still misses son parameters for some POST/PUT/PATCH request. This means the a client generated from the swagger file will not work completely. 

Fix  by activating validation in drone
Should fix .
2018-06-12 22:59:22 +08:00
Antoine GIRARD 6f31911497 Add $GOPATH/bin to PATH for make releases ()
Needed to access go tool gxz
2018-05-22 12:12:10 -04:00
Lauris BH ff3971b830 Add LDAP integration tests ()
* Add LDAP service for tests

* Add LDAP login source and test user sign-in

* Add checks to test if user data is correct

* Add LDAP user sync test

* Add failed user sign-in test
2018-05-11 15:55:32 +08:00
Bo-Yi Wu 0b718e0d7b
feat: testing in go 1.10 version. () 2018-05-07 22:49:57 +08:00
techknowlogick 9ec7f6b954 pass secrets to drone build step for docker () 2018-05-02 00:33:49 +03:00
Bo-Yi Wu ca4a84a2d6 chore: simplify docker build process. ()
* chore: simplify docker build process.

* chore: update docker plugin.
2018-04-30 03:47:39 +02:00
Antoine GIRARD 3506717e9c Add swagger check () 2018-04-20 17:13:50 +08:00
Kim "BKC" Carlbäcker e722bdbb03
Update source installation requirements ()
* Update source installation requirements

We require Golang 1.8 since we use `net/url.PathEscape` which was not introduced until then

* Use Golang 1.8 for build and test

If we state Golang 1.8 we should test using that version as well

* Use golang 1.8 only for single build to see if everything compiles

* Change back edge also for commented out sqlite test
2018-01-16 22:18:11 +01:00
Lauris BH b82519cadc Move build without gcc step up so that it's binary is not used in docker () 2017-12-11 10:42:13 +01:00
Ethan Koenig c082c3bce3 Restore make test target ()
* Restore make test target

* make build -> go build
2017-12-11 10:31:07 +08:00
Lunny Xiao b8e45b1e19 Fix missing drone test on release/* ()
* fix missing drone test on release/*

* remove test coverage on release/*
2017-12-09 12:17:40 +02:00
techknowlogick 899c900e59 use unique name for docs docker build step in CI ()
Otherwise drone may combine the logs
2017-11-29 11:08:23 +02:00
techknowlogick d39b88ae88 Fix master build for docs docker () 2017-11-29 00:17:23 +02:00
techknowlogick fb5c6b6444 Import docs into main repository ()
* import docs into main repository

Signed-off-by: Matti Ranta <matti@mdranta.net>
2017-11-26 23:44:32 +02:00
Bo-Yi Wu 091f3669ba
change the email and name to GitBot account. ()
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-11-04 06:53:59 -05:00
Lauris BH 9500ad1e92
Fix removing backslash before quotes in translations () 2017-11-03 01:33:43 +02:00
Lunny Xiao c7ade55d39
fix update-translations on drone () 2017-11-01 23:46:28 +08:00
Lunny Xiao de9915023d
Fix wrong translations ()
* fix wrong translations

* fix tab on yml
2017-11-01 20:52:48 +08:00
Bo-Yi Wu c22f443f58
add gitea remote in drone. ()
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-11-01 04:13:47 -05:00
Bo-Yi Wu dc6dad87d4
add remote name for git push. ()
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-11-01 03:48:40 -05:00
Jonas Franz e9595a962b Download and pushing translations ()
* Download and pushing translations

* Adding empty line between build steps
2017-11-01 14:14:49 +08:00
Lauris BH 339d7de409 Fix translation upload to crowdin () 2017-09-25 10:59:19 +03:00
Bo-Yi Wu 6b6f16cfae backport from v1.2 branch: add secrets for github release () () 2017-09-25 11:40:34 +08:00
Morlinest 0b0d85c90d Add pre-build step for nodejs stuff () 2017-09-25 00:49:32 +03:00
Jonas Franz fa6d7c7b99 Automatic update of translations ()
* Adding build step for uploading translations

* Fixing crowdin project name

* Using crowdin plugin

* Changing secret name

* Adding pull: true
2017-09-23 19:08:42 +03:00
Lauris BH 28f4de205f Fix drone for tags () 2017-09-22 18:34:02 +03:00
silverwind 1fbfccb4fc Use standard lessc and minify CSS using Node.js ()
* 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
2017-09-21 11:35:11 +08:00
Ethan Koenig fa1cbc2896 Always run fmt check in CI () 2017-09-21 09:34:32 +08:00
Thomas Boerger cbe50587ba Added bucket name to s3 drone plugin () 2017-09-15 14:45:38 +08:00
Bo-Yi Wu 3e89e89670 add codecov.io service. ()
* 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>
2017-09-13 20:57:55 +08:00
Lunny Xiao 9ef83a98e5 fix release () 2017-09-13 17:20:15 +08:00
Antoine GIRARD 69dfe43ffc Fix some tests : make coverage -> test ()
* Fix test : make coverage -> test

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

* Add custom local repository temp path
2017-09-12 13:51:12 +08:00
Thomas Boerger fd85e25f5f Hotfix for integration testing ()
* Hotfix for integration testing

* Comment sqlite tests because of database locking issues
2017-09-10 09:54:11 +08:00
Thomas Boerger 4b8fef143e Changes for latest DroneCI () 2017-09-07 19:22:15 +02:00
Bo-Yi Wu be4f6a754c Revert "Changes for latest DroneCI ()" ()
This reverts commit faf4b503b2.
2017-08-22 20:56:57 -05:00
Thomas Boerger faf4b503b2 Changes for latest DroneCI () 2017-08-22 20:08:30 -05:00
Bo-Yi Wu 9ff371a147 ignore coverage steps. ()
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-08-04 22:08:50 +08:00
Bo-Yi Wu 2b05b104ef Add verify changed less-file step to Makefile () 2017-07-12 04:28:57 +02:00
Bo-Yi Wu da89afda58 feat: upgrade drone docker image to support multi-stage build. ()
* 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>
2017-07-11 02:16:18 -05:00
Ethan Koenig b4e8a7c4d1 Skip sqlite integration in CI () 2017-06-25 17:34:07 +08:00
Bo-Yi Wu d7570895cc update drone discord plugin to 0.0.4 version ()
* 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>
2017-06-17 19:12:43 +08:00
Ethan Koenig 792cde7081 Coverage reports for integration tests () 2017-06-15 17:38:33 +08:00
Bo-Yi Wu 0d560f3441
send notification if status changed
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-06-15 14:46:08 +08:00
Bo-Yi Wu 5b0cbf3788 switch gitter to discord for drone. ()
* 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>
2017-06-15 10:47:42 +08:00
Kim "BKC" Carlbäcker 4a3f40460b Don't run 'make release' on PRs () 2017-06-09 09:52:23 +08:00
Bo-Yi Wu 703d18e50d feat: add check misspelling () 2017-06-05 02:49:46 -05:00
Bo-Yi Wu 04c6c31f8e fix: only run test coverage on master branch. () 2017-06-01 20:07:24 +02:00
Ethan Koenig ff96bda138 Only run coverage on merges/pushes to master () 2017-05-25 00:13:18 +08:00
Ethan Koenig 66c803fae2 MySQL, Postgres integration tests in drone ()
* MySQL, Postgres integration tests in drone

* Fix .drone.yml

* sign drone

* resign drone
2017-04-30 14:30:12 +08:00
Sandro Santilli 00324cea10 Limit clone depth when drone-building ()
* Limit clone depth when drone-building

* sign drone
2017-04-30 12:32:30 +08:00
Ethan Koenig c58708d3ee Integration test framework ()
* Integration test framework

* udpate drone sign

* Formatting fixes and move router.go to routers/

* update sign for drone
2017-04-25 15:24:51 +08:00
Antoine GIRARD eb1075dd4c Check if missing/modified/unused deps in vendor and fix errors ()
* 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
2017-04-24 22:31:46 +08:00
Thomas Boerger 1d65291342
Fixed drone builds 2017-03-09 20:25:12 +01:00
Thomas Boerger 7ed00b6e8d Split the binary build ()
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>
2017-03-07 21:49:24 +08:00
Thomas Boerger ea8c8cdaf3 Fix master builds on mips* again ()
* 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.
2017-02-02 11:56:08 +08:00
Thomas Boerger 2d17d6bc16 Clone tags within drone for proper version generation () 2017-01-05 18:13:02 +08:00
Thomas Boerger 6aacf4d2f0 Properly handle drone tags and release/* branches () 2016-12-24 00:00:48 +01:00
Thomas Boerger 7b67347104
Fixed drone tagging 2016-12-23 19:51:39 +01:00
Andrey Nering 578a8e258e Revert "Disable coverage report for now" () 2016-12-16 12:49:54 +01:00
Thomas Boerger 8aeeed0a23 Disable coverage report for now ()
Until aircover gets updated so that it works again I have disabled to
coverage report upload for now.
2016-12-15 12:26:34 +01:00
Thomas Boerger 2b63f32b8a Enabled bindata build tag and generate bindata () 2016-12-05 23:39:45 +08:00
Thomas Boerger 8a28130540
Fixed build tags and deps for all build/test steps 2016-12-05 14:34:55 +01:00
Thomas Boerger 2932042a6d Get rid of bin folder within makefile, enabled TiDB ()
* 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>
2016-12-01 15:28:43 +08:00
Thomas Boerger 684d55e130
Reenabled lint check within drone 2016-11-29 14:15:36 +01:00
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>
2016-11-28 14:15:14 +01:00
Thomas Boerger 65549863bc
Dropped latest publishing from drone 2016-11-25 13:07:19 +01:00
Thomas Boerger 0accc935a3
Fixed s3 publishing within drone 2016-11-25 10:53:48 +01:00
Thomas Boerger 3ae7955d15
Disable broken docker build for now 2016-11-25 10:11:49 +01:00
Thomas Boerger 755ed84740
Be more explicit and dropped matrix builds from drone 2016-11-25 10:11:49 +01:00
Thomas Boerger fd090dc29b
Added matrix drone builds 2016-11-24 14:48:40 +01:00
Matthias Loibl 4c03974326
Create a first draft for .drone.yml 2016-11-24 14:47:36 +01:00
Unknwon 37d8d3afe9 more APIs on 2014-11-18 11:07:16 -05:00
Unknwon db0026c507 test drone 2014-11-17 17:47:13 -05:00
Unknwon 51f6148851 test drone 2014-11-17 17:36:51 -05:00
Unknwon c0549a169a test drone 2014-11-17 17:19:17 -05:00