Skip to content

Commit

Permalink
Remove use of gemset variable
Browse files Browse the repository at this point in the history
  • Loading branch information
zjhuntin committed May 22, 2024
1 parent 5aac980 commit eccf87d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions theforeman.org/scripts/test/test_develop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ cp $APP_ROOT/config/settings.yaml.example $APP_ROOT/config/settings.yaml
echo "Setting up rbenv environment."
export PATH="$HOME/.rbenv/shims:$PATH"
export RBENV_VERSION=${ruby}
export jobid=$(echo ${JOB_NAME} | cut -d/ -f1)-${EXECUTOR_NUMBER}

if [ "${ruby}" = '2.7.6' ]
then
Expand All @@ -32,11 +33,11 @@ bundle exec rake rubocop

# Database environment
(
sed "s/^test:/development:/; s/database:.*/database: ${gemset}-dev/" $HOME/postgresql.db.yaml
sed "s/^test:/development:/; s/database:.*/database: ${jobid}-dev/" $HOME/postgresql.db.yaml
echo
sed "s/^test:/production:/; s/database:.*/database: ${gemset}-prod/" $HOME/postgresql.db.yaml
sed "s/^test:/production:/; s/database:.*/database: ${jobid}-prod/" $HOME/postgresql.db.yaml
echo
sed "s/database:.*/database: ${gemset}-test/" $HOME/postgresql.db.yaml
sed "s/database:.*/database: ${jobid}-test/" $HOME/postgresql.db.yaml
) > $APP_ROOT/config/database.yml

# we need to install node modules for integration tests
Expand Down

0 comments on commit eccf87d

Please sign in to comment.