Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove use of gemset variable #468

Merged
merged 1 commit into from
May 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
(
zjhuntin marked this conversation as resolved.
Show resolved Hide resolved
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