summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2016-02-18 11:12:26 +0100
committerJames Lopez <james@jameslopez.es>2016-02-18 11:12:26 +0100
commitc9be4d65f2d3f6695e99cc7f99ad889b48780e3b (patch)
treefda0d78e73795cb8da353e52344b04787cca3802 /scripts
parent8006d025139a506f732137209c85935353bae276 (diff)
parent8b918267c7477f7e1a36b4f3cc12c9e244204cb9 (diff)
downloadgitlab-ce-c9be4d65f2d3f6695e99cc7f99ad889b48780e3b.tar.gz
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into feature/slack-notifications-on-ci
# Conflicts: # .gitlab-ci.yml
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/prepare_build.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/prepare_build.sh b/scripts/prepare_build.sh
index 5987988dc8e..b6f076a90c3 100755
--- a/scripts/prepare_build.sh
+++ b/scripts/prepare_build.sh
@@ -1,15 +1,15 @@
#!/bin/bash
if [ -f /.dockerinit ]; then
- # Docker runners use `/cache` folder which is persisted every build
- if [ ! -e /cache/phantomjs_1.9.8-0jessie_amd64.deb ]; then
+ mkdir -p vendor
+ if [ ! -e vendor/phantomjs_1.9.8-0jessie_amd64.deb ]; then
wget -q https://gitlab.com/axil/phantomjs-debian/raw/master/phantomjs_1.9.8-0jessie_amd64.deb
- mv phantomjs_1.9.8-0jessie_amd64.deb /cache
+ mv phantomjs_1.9.8-0jessie_amd64.deb vendor/
fi
- dpkg -i /cache/phantomjs_1.9.8-0jessie_amd64.deb
+ dpkg -i vendor/phantomjs_1.9.8-0jessie_amd64.deb
apt-get update -qq
- apt-get -o dir::cache::archives="/cache/apt" install -y -qq --force-yes \
+ apt-get -o dir::cache::archives="vendor/apt" install -y -qq --force-yes \
libicu-dev libkrb5-dev cmake nodejs postgresql-client mysql-client unzip
cp config/database.yml.mysql config/database.yml
@@ -20,7 +20,7 @@ if [ -f /.dockerinit ]; then
cp config/resque.yml.example config/resque.yml
sed -i 's/localhost/redis/g' config/resque.yml
- export FLAGS=(--path /cache)
+ export FLAGS=(--path vendor)
else
export PATH=$HOME/bin:/usr/local/bin:/usr/bin:/bin
cp config/database.yml.mysql config/database.yml