Trying to use APT cache

This commit is contained in:
Christoph Haas 2018-08-14 18:27:24 +02:00
parent 32b27276cf
commit a033717421

View file

@ -15,11 +15,10 @@ build:
key: build-cache
paths:
- vendor/
- /var/cache/apt
script:
- apt-get update -qy
- apt-get install -y imagemagick git build-essential zlib1g-dev libbz2-dev libpq-dev postgresql
- apt-get -o dir::cache::archives="vendor/apt" install -yqq imagemagick git build-essential zlib1g-dev libbz2-dev libpq-dev postgresql
#- gem install bundler --no-ri --no-rdoc
- RAILS_ENV=test bundle install --path vendor
@ -30,6 +29,11 @@ test:
- ruby
- stretch
cache:
key: build-cache
paths:
- vendor/
variables:
POSTGRES_DB: debshots_test
POSTGRES_USER: debshots