aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMax Magorsch <max@magorsch.de>2019-10-16 18:45:15 +0200
committerMax Magorsch <max@magorsch.de>2019-10-16 18:45:15 +0200
commitb861d2da86e9b0559c622c3772d410211273a857 (patch)
tree20e4dce621e3f2923453c599ebdca8ea6f4718a8 /bin
parentMerge branch 'dev/rails-6.0' into dev/main (diff)
downloadpackages-5-b861d2da86e9b0559c622c3772d410211273a857.tar.gz
packages-5-b861d2da86e9b0559c622c3772d410211273a857.tar.bz2
packages-5-b861d2da86e9b0559c622c3772d410211273a857.zip
Add a docker-compose file for integration tests
Add a docker-compose file which can be used for testing the application. The file includes a complete production environment including elasticsearch, redis and sidekiq. Signed-off-by: Max Magorsch <max@magorsch.de>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/test.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/test.sh b/bin/test.sh
new file mode 100755
index 0000000..5397212
--- /dev/null
+++ b/bin/test.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+# Wait for Elasticsearch to start up
+sleep 30
+
+bundler install
+bundle exec rake tmp:create RAILS_ENV=test
+bundle exec rake assets:precompile RAILS_ENV=test
+bundle exec rake kkuleomi:index:init RAILS_ENV=test
+
+RAILS_ENV=test bundle exec rake test test/ \ No newline at end of file