diff options
author | Ethan Koenig <etk39@cornell.edu> | 2017-04-25 03:24:51 -0400 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-04-25 15:24:51 +0800 |
commit | c58708d3eedb352bb277feb2c12bb1652a8a58b7 (patch) | |
tree | 97aeed6a13031618baa7d67185b04faea506da38 /Makefile | |
parent | 3012971e92b79683178a286511c091fb31ee90f6 (diff) | |
download | gitea-c58708d3eedb352bb277feb2c12bb1652a8a58b7.tar.gz gitea-c58708d3eedb352bb277feb2c12bb1652a8a58b7.zip |
Integration test framework (#1290)
* Integration test framework
* udpate drone sign
* Formatting fixes and move router.go to routers/
* update sign for drone
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 22 |
1 files changed, 18 insertions, 4 deletions
@@ -86,13 +86,27 @@ test-vendor: fi govendor status +outside +unused || exit 1 +.PHONY: test-sqlite +test-sqlite: integrations.test integrations/gitea-integration + GITEA_CONF=integrations/sqlite.ini ./integrations.test + .PHONY: test-mysql -test-mysql: - @echo "Not integrated yet!" +test-mysql: integrations.test integrations/gitea-integration + echo "CREATE DATABASE IF NOT EXISTS testgitea" | mysql -u root + GITEA_CONF=integrations/mysql.ini ./integrations.test .PHONY: test-pgsql -test-pgsql: - @echo "Not integrated yet!" +test-pgsql: integrations.test integrations/gitea-integration + GITEA_CONF=integrations/pgsql.ini ./integrations.test + +integrations.test: $(SOURCES) + go test -c code.gitea.io/gitea/integrations -tags 'sqlite' + +integrations/gitea-integration: + curl -L https://github.com/ethantkoenig/gitea-integration/archive/v2.tar.gz > integrations/gitea-integration.tar.gz + mkdir -p integrations/gitea-integration + tar -xf integrations/gitea-integration.tar.gz -C integrations/gitea-integration --strip-components 1 + .PHONY: check check: test |