aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2019-12-20 10:53:22 +0100
committerHans de Graaff <graaff@gentoo.org>2019-12-20 10:53:22 +0100
commit3b46db913d6e21757cc96b8317100ff78d0d1e29 (patch)
treed0bb98593bdf4cf1a7660f91fc6bd8a8038ad3df
parentProvide a kkuleomi config for tests (diff)
downloadpackages-5-3b46db913d6e21757cc96b8317100ff78d0d1e29.tar.gz
packages-5-3b46db913d6e21757cc96b8317100ff78d0d1e29.tar.bz2
packages-5-3b46db913d6e21757cc96b8317100ff78d0d1e29.zip
Use a test configuration that uses the fixture repo
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
-rw-r--r--.travis.yml2
-rw-r--r--config/initializers/kkuleomi_config.rb.test31
2 files changed, 32 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 0d062fc..b4efe97 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -35,7 +35,7 @@ before_install:
before_script:
- cp config/secrets.yml.dist config/secrets.yml
- - cp config/initializers/kkuleomi_config.rb.dist config/initializers/kkuleomi_config.rb
+ - cp config/initializers/kkuleomi_config.rb.test config/initializers/kkuleomi_config.rb
# Wait for Elasticsearch
# If it starts up in less than 10 seconds, this wins!
- curl --retry-delay 1 --retry-connrefused --retry 10 --connect-timeout 1 --max-time 15 -o - 'http://127.0.0.1:9200/_cat/health?format=json&v&pretty'
diff --git a/config/initializers/kkuleomi_config.rb.test b/config/initializers/kkuleomi_config.rb.test
new file mode 100644
index 0000000..7cee6cd
--- /dev/null
+++ b/config/initializers/kkuleomi_config.rb.test
@@ -0,0 +1,31 @@
+# The location of the repository used for the indexer
+KKULEOMI_PORTDIR='test/fixtures/repo'
+
+# The location of the repository used for gathering runtime information
+KKULEOMI_RUNTIME_PORTDIR='test/fixtures/repo'
+
+# The first actual git commit
+# Set this to the second commit in the repo to avoid long changelog generation times
+KKULEOMI_FIRST_COMMIT='c1de71edb35b118c3244c0d9d1b3f97c93d41969'
+
+# Where does git(1) live?
+KKULEOMI_GIT='git'
+
+# GIT enabled?
+KKULEOMI_DISABLE_GIT=false
+
+# Who gets feedback
+KKULEOMI_FEEDBACK_RECIPIENT='gpackages@gentoo.org'
+
+# Default arches.
+KKULEOMI_ARCHES=%w(amd64 x86 alpha arm arm64 hppa ia64 ppc ppc64 sparc)
+
+# Cache settings
+# deployment:
+if ENV["MEMCACHE_URL"]
+ Rails.application.config.cache_store = :mem_cache_store, ENV['MEMCACHE_URL']
+end
+
+# development:
+# Rails.application.config.cache_store = :memory_store, { size: 64.megabytes }
+# Rails.application.config.action_controller.perform_caching = true