diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-09-16 14:42:49 +0200 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-09-16 14:42:49 +0200 |
commit | 624a2cf27c719dbb384ec9251120f62c0a04fdc4 (patch) | |
tree | c67851357e8344a386f820a816b936ca96f2c65d /scripts | |
parent | 7bb22831a13b021c7b2d1cc8542808243a659d38 (diff) | |
parent | cccd269da3f5d82c5d14289980d9b52c9cad08db (diff) | |
download | gitlab-ce-624a2cf27c719dbb384ec9251120f62c0a04fdc4.tar.gz |
Merge branch 'master' into update-mailroom
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/ci/prepare_build.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/scripts/ci/prepare_build.sh b/scripts/ci/prepare_build.sh new file mode 100755 index 00000000000..864a683a1bd --- /dev/null +++ b/scripts/ci/prepare_build.sh @@ -0,0 +1,22 @@ +#!/bin/bash +if [ -f /.dockerinit ]; then + export FLAGS=(--deployment --path /cache) + + apt-get update -qq + apt-get install -y -qq nodejs + + wget -q http://ftp.de.debian.org/debian/pool/main/p/phantomjs/phantomjs_1.9.0-1+b1_amd64.deb + dpkg -i phantomjs_1.9.0-1+b1_amd64.deb + + cp config/database.yml.mysql config/database.yml + sed -i "s/username:.*/username: root/g" config/database.yml + sed -i "s/password:.*/password:/g" config/database.yml + sed -i "s/# socket:.*/host: mysql/g" config/database.yml +else + export PATH=$HOME/bin:/usr/local/bin:/usr/bin:/bin + + 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 |