summaryrefslogtreecommitdiffstats
path: root/integrations
diff options
context:
space:
mode:
authorguillep2k <18600385+guillep2k@users.noreply.github.com>2020-04-19 08:17:02 -0300
committerGitHub <noreply@github.com>2020-04-19 14:17:02 +0300
commit23163e98a307300a6ba43e3d8c3b0d031398fef4 (patch)
treeb85e7c49e4f5f903b25a99db7389f5a08e40551b /integrations
parent16f39ce42690a57b92d8a7f1c4317f079ee842c4 (diff)
downloadgitea-23163e98a307300a6ba43e3d8c3b0d031398fef4.tar.gz
gitea-23163e98a307300a6ba43e3d8c3b0d031398fef4.zip
Use /tmp for test repositories (#11126)
* Add option to use /tmp for test repositories * Fix exit status * Add feedback about using tmp repos Co-authored-by: Guillermo Prandi <guillep2k@users.noreply.github.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'integrations')
-rw-r--r--integrations/mssql.ini.tmpl2
-rw-r--r--integrations/mysql.ini.tmpl2
-rw-r--r--integrations/mysql8.ini.tmpl2
-rw-r--r--integrations/pgsql.ini.tmpl2
-rw-r--r--integrations/sqlite.ini.tmpl (renamed from integrations/sqlite.ini)2
5 files changed, 5 insertions, 5 deletions
diff --git a/integrations/mssql.ini.tmpl b/integrations/mssql.ini.tmpl
index 931e923cf4..063c41972b 100644
--- a/integrations/mssql.ini.tmpl
+++ b/integrations/mssql.ini.tmpl
@@ -15,7 +15,7 @@ REPO_INDEXER_ENABLED = true
REPO_INDEXER_PATH = integrations/indexers-mssql/repos.bleve
[repository]
-ROOT = integrations/gitea-integration-mssql/gitea-repositories
+ROOT = {{REPO_TEST_DIR}}integrations/gitea-integration-mssql/gitea-repositories
[repository.local]
LOCAL_COPY_PATH = tmp/local-repo-mssql
diff --git a/integrations/mysql.ini.tmpl b/integrations/mysql.ini.tmpl
index 304434dbd6..beff736606 100644
--- a/integrations/mysql.ini.tmpl
+++ b/integrations/mysql.ini.tmpl
@@ -17,7 +17,7 @@ REPO_INDEXER_ENABLED = true
REPO_INDEXER_PATH = integrations/indexers-mysql/repos.bleve
[repository]
-ROOT = integrations/gitea-integration-mysql/gitea-repositories
+ROOT = {{REPO_TEST_DIR}}integrations/gitea-integration-mysql/gitea-repositories
[repository.local]
LOCAL_COPY_PATH = tmp/local-repo-mysql
diff --git a/integrations/mysql8.ini.tmpl b/integrations/mysql8.ini.tmpl
index 1b1d3d2436..a135ecb981 100644
--- a/integrations/mysql8.ini.tmpl
+++ b/integrations/mysql8.ini.tmpl
@@ -15,7 +15,7 @@ REPO_INDEXER_ENABLED = true
REPO_INDEXER_PATH = integrations/indexers-mysql8/repos.bleve
[repository]
-ROOT = integrations/gitea-integration-mysql8/gitea-repositories
+ROOT = {{REPO_TEST_DIR}}integrations/gitea-integration-mysql8/gitea-repositories
[repository.local]
LOCAL_COPY_PATH = tmp/local-repo-mysql8
diff --git a/integrations/pgsql.ini.tmpl b/integrations/pgsql.ini.tmpl
index f337d98fb4..80258437e5 100644
--- a/integrations/pgsql.ini.tmpl
+++ b/integrations/pgsql.ini.tmpl
@@ -16,7 +16,7 @@ REPO_INDEXER_ENABLED = true
REPO_INDEXER_PATH = integrations/indexers-pgsql/repos.bleve
[repository]
-ROOT = integrations/gitea-integration-pgsql/gitea-repositories
+ROOT = {{REPO_TEST_DIR}}integrations/gitea-integration-pgsql/gitea-repositories
[repository.local]
LOCAL_COPY_PATH = tmp/local-repo-pgsql
diff --git a/integrations/sqlite.ini b/integrations/sqlite.ini.tmpl
index 160af3456a..3873681842 100644
--- a/integrations/sqlite.ini
+++ b/integrations/sqlite.ini.tmpl
@@ -11,7 +11,7 @@ REPO_INDEXER_ENABLED = true
REPO_INDEXER_PATH = integrations/indexers-sqlite/repos.bleve
[repository]
-ROOT = integrations/gitea-integration-sqlite/gitea-repositories
+ROOT = {{REPO_TEST_DIR}}integrations/gitea-integration-sqlite/gitea-repositories
[repository.local]
LOCAL_COPY_PATH = tmp/local-repo-sqlite