summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-07-31 16:10:48 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2015-08-03 11:50:18 +0200
commitf9412b3842fd5a1d399cdf8b7a94e901b8efe78b (patch)
tree1b59a1ca189613046d6d1501987ae236fc6748f4
parentdc51460c34b185ec85cb27c69767878eeb02779a (diff)
downloadgitlab-ci-f9412b3842fd5a1d399cdf8b7a94e901b8efe78b.tar.gz
Randomize test database
-rw-r--r--CHANGELOG1
-rwxr-xr-xscript/prepare_build.sh1
2 files changed, 2 insertions, 0 deletions
diff --git a/CHANGELOG b/CHANGELOG
index b545f1e..05c5e2b 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -2,6 +2,7 @@ v7.14.0 (unreleased)
- Truncate commit messages after subject line in table
- Adjust CI config to support Docker executors
- Added Application Settings
+ - Randomize test database for CI tests
v7.13.1
- Fix: user could steal specific runner
diff --git a/script/prepare_build.sh b/script/prepare_build.sh
index 836e11f..864a683 100755
--- a/script/prepare_build.sh
+++ b/script/prepare_build.sh
@@ -18,4 +18,5 @@ else
cp config/database.yml.mysql config/database.yml
sed -i "s/username\:.*$/username\: runner/" config/database.yml
sed -i "s/password\:.*$/password\: 'password'/" config/database.yml
+ sed -i "s/gitlab_ci_test/gitlab_ci_test_$((RANDOM/5000))/" config/database.yml
fi