diff options
author | 2019-10-16 18:45:15 +0200 | |
---|---|---|
committer | 2019-10-16 18:45:15 +0200 | |
commit | b861d2da86e9b0559c622c3772d410211273a857 (patch) | |
tree | 20e4dce621e3f2923453c599ebdca8ea6f4718a8 /bin | |
parent | Merge branch 'dev/rails-6.0' into dev/main (diff) | |
download | packages-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-x | bin/test.sh | 11 |
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 |