Commit e6567bc1 authored by Kamil Trzcinski's avatar Kamil Trzcinski

Use gitlab-build-images for precache some of the dependencies

parent 2e6f816d
image: "ruby:2.1"
image: registry.gitlab.com/gitlab-org/gitlab-build-images:ruby-2.1
services:
- mysql:latest
- redis:latest
- redis:alpine
cache:
key: "ruby21"
......@@ -112,26 +112,16 @@ rspec 17 20: *knapsack
rspec 18 20: *knapsack
rspec 19 20: *knapsack
spinach 0 20: *knapsack
spinach 1 20: *knapsack
spinach 2 20: *knapsack
spinach 3 20: *knapsack
spinach 4 20: *knapsack
spinach 5 20: *knapsack
spinach 6 20: *knapsack
spinach 7 20: *knapsack
spinach 8 20: *knapsack
spinach 9 20: *knapsack
spinach 10 20: *knapsack
spinach 11 20: *knapsack
spinach 12 20: *knapsack
spinach 13 20: *knapsack
spinach 14 20: *knapsack
spinach 15 20: *knapsack
spinach 16 20: *knapsack
spinach 17 20: *knapsack
spinach 18 20: *knapsack
spinach 19 20: *knapsack
spinach 0 10: *knapsack
spinach 1 10: *knapsack
spinach 2 10: *knapsack
spinach 3 10: *knapsack
spinach 4 10: *knapsack
spinach 5 10: *knapsack
spinach 6 10: *knapsack
spinach 7 10: *knapsack
spinach 8 10: *knapsack
spinach 9 10: *knapsack
teaspoon: *exec
rubocop: *exec
......
......@@ -12,20 +12,6 @@ retry() {
}
if [ -f /.dockerenv ] || [ -f ./dockerinit ]; then
mkdir -p vendor
# Install phantomjs package
pushd vendor
if [ ! -e 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
fi
dpkg -i phantomjs_1.9.8-0jessie_amd64.deb
popd
# Try to install packages
retry 'apt-get update -yqqq; 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
sed -i 's/username:.*/username: root/g' config/database.yml
sed -i 's/password:.*/password:/g' config/database.yml
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment