mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-30 14:57:59 +01:00
24 lines
405 B
Bash
Executable file
24 lines
405 B
Bash
Executable file
#!/usr/bin/env sh
|
|
|
|
export MIX_ENV=test
|
|
|
|
# Always install mix dependencies
|
|
(cd /srv/philomena && mix deps.get)
|
|
|
|
# Sleep to allow OpenSearch to finish initializing
|
|
# if it's not done doing whatever it does yet
|
|
echo -n "Waiting for OpenSearch"
|
|
|
|
until wget -qO - opensearch:9200; do
|
|
echo -n "."
|
|
sleep 2
|
|
done
|
|
|
|
echo
|
|
|
|
# Create the database
|
|
mix ecto.create
|
|
mix ecto.load
|
|
|
|
# Test the application
|
|
exec mix test
|