Skip to content
Snippets Groups Projects
Commit 49a9d7af authored by Mauricio Giacomini Girardello's avatar Mauricio Giacomini Girardello
Browse files

adding before script to test redis

parent b2dadc23
No related branches found
No related tags found
No related merge requests found
...@@ -22,6 +22,9 @@ Gemfile.lock ...@@ -22,6 +22,9 @@ Gemfile.lock
/public/assets /public/assets
/config/orientdb.yml /config/orientdb.yml
/config/dspace.yml /config/dspace.yml
/shared/*
dump.rdb
/public/system/*
# ignore server scripts # ignore server scripts
puma.sh puma.sh
......
...@@ -18,6 +18,8 @@ stages: ...@@ -18,6 +18,8 @@ stages:
before_script: before_script:
- apt-get update -y - apt-get update -y
- apt-get install default-jre postgresql-client -y - apt-get install default-jre postgresql-client -y
- apt-get remove --purge --auto-remove redis-server -y
- apt-get install redis-server
# official way to provide password to psql: http://www.postgresql.org/docs/9.3/static/libpq-envars.html # official way to provide password to psql: http://www.postgresql.org/docs/9.3/static/libpq-envars.html
- export PGPASSWORD=$POSTGRES_PASSWORD - export PGPASSWORD=$POSTGRES_PASSWORD
- psql -h "postgres" -U "$POSTGRES_USER" -d "$POSTGRES_DB" -c "SELECT 'OK' AS status;" - psql -h "postgres" -U "$POSTGRES_USER" -d "$POSTGRES_DB" -c "SELECT 'OK' AS status;"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment