summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2017-04-28 21:23:28 +0800
committerGitHub <noreply@github.com>2017-04-28 21:23:28 +0800
commitfca7ddc6ea5ceae298b0a4f33d0b82a2f1ccc06e (patch)
treec367ef79ac6f3d8c9d18e129395ba0c6a822d535 /Makefile
parent431b26f6d7d5b2d4700b4a65f1a81094c36a9fae (diff)
downloadgitea-fca7ddc6ea5ceae298b0a4f33d0b82a2f1ccc06e.tar.gz
gitea-fca7ddc6ea5ceae298b0a4f33d0b82a2f1ccc06e.zip
improve integration test to resue models/fixtures and store git repos with 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
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 3 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 4796eb3055..93ca44818d 100644
--- a/Makefile
+++ b/Makefile
@@ -87,27 +87,21 @@ test-vendor:
govendor status +outside +unused || exit 1
.PHONY: test-sqlite
-test-sqlite: integrations.test integrations/gitea-integration
+test-sqlite: integrations.test
GITEA_CONF=integrations/sqlite.ini ./integrations.test
.PHONY: test-mysql
-test-mysql: integrations.test integrations/gitea-integration
+test-mysql: integrations.test
echo "CREATE DATABASE IF NOT EXISTS testgitea" | mysql -u root
GITEA_CONF=integrations/mysql.ini ./integrations.test
.PHONY: test-pgsql
-test-pgsql: integrations.test integrations/gitea-integration
+test-pgsql: integrations.test
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