summaryrefslogtreecommitdiff
path: root/scripts/ci
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-01-22 18:16:59 +0100
committerKamil Trzcinski <ayufan@ayufan.eu>2016-01-22 19:09:22 +0100
commitedf93ecb6eab702de1a2ec24d58d1ad1dd1d9e55 (patch)
tree1315fc276db4977044db46c952ab793f5a951355 /scripts/ci
parent0e51ca7c4841bb388c0decb57ecc64af86c77805 (diff)
downloadgitlab-ce-edf93ecb6eab702de1a2ec24d58d1ad1dd1d9e55.tar.gz
Speed-up docker based buildsspeed-up-builds
Enable to: - Use APT cache - Use Bundler cache - Use PhantomJS cache
Diffstat (limited to 'scripts/ci')
-rwxr-xr-xscripts/ci/prepare_build.sh22
1 files changed, 0 insertions, 22 deletions
diff --git a/scripts/ci/prepare_build.sh b/scripts/ci/prepare_build.sh
deleted file mode 100755
index 864a683a1bd..00000000000
--- a/scripts/ci/prepare_build.sh
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/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