From 7654b49a06cd34240165d2c77e7264ad857350f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lax=20de=20Carvalho=20Alves?= Date: Tue, 9 Jul 2019 17:27:48 -0300 Subject: [PATCH] Fixing caching in between builds (#794) --- .travis.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index f48a36eff..489ce2eee 100755 --- a/.travis.yml +++ b/.travis.yml @@ -7,16 +7,17 @@ services: - docker cache: - bundler: true directories: - - public/lib/ + - $PWD/public/lib/ + - $PWD/vendor/.bundle/ install: - cp config/database.yml.example config/database.yml - cp config/config.yml.example config/config.yml - cp db/schema.rb.example db/schema.rb - ./lib/exporter-deps.sh > /dev/null 2>&1 - - bundle install && yarn install + - bundle check --path vendor/.bundle/ || bundle install --path vendor/.bundle/ + - yarn check || yarn install - bundle exec rake db:setup || bundle exec rake db:migrate env: