From 4ae8bb38045478c0628b61ee5b3a4e799b51cada Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 27 Sep 2016 16:20:33 +0200 Subject: [PATCH] gitlab-ci: ensure the SDK is fully updated before running This makes sure that the latest version of the core SDK components are all current before running, which means that the builds will keep working even when the docker image gets out of date. Then we can finish the task we are working on before having to deal with updating the docker image. Without that update line, we have to drop everything and update the docker image when things are out of date. Disk space and bandwidth is cheap, developer time is very scarce. We should aim to keep the tests working as much as possible so that we waste less developer time. Updating everytime only means it downloads a little bit of XML each time, that's nothing compared to what gradle downloads on every build. --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bd609d033..e50b1203a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,6 +7,8 @@ cache: before_script: - export GRADLE_USER_HOME=$PWD/.gradle + - printf 'y\n\n' | android --verbose update sdk --no-ui + --filter extra-android-m2repository test: script: