From 766cb52523498b4b3878f33941f8908f52b481fc Mon Sep 17 00:00:00 2001 From: jvoisin Date: Tue, 21 Dec 2021 14:53:31 +0000 Subject: [PATCH] Factorise `add-apt-repository -y ppa:openmw/openmw` --- .gitlab-ci.yml | 5 ----- CI/install_debian_deps.sh | 2 ++ 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e7cd3e4cba..ea2d860f07 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -48,7 +48,6 @@ Clang_Tidy: rules: - if: '$CI_PIPELINE_SOURCE == "schedule"' before_script: - - apt-get update; apt-get -y install software-properties-common; add-apt-repository -y ppa:openmw/openmw - CI/install_debian_deps.sh gcc openmw-deps openmw-deps-dynamic clang-tidy clang script: - CI/before_script.linux.sh @@ -69,7 +68,6 @@ Coverity: rules: - if: $CI_PIPELINE_SOURCE == "schedule" before_script: - - apt-get update; apt-get -y install software-properties-common; add-apt-repository -y ppa:openmw/openmw - CI/install_debian_deps.sh gcc openmw-deps openmw-deps-dynamic coverity - curl -o /tmp/cov-analysis-linux64.tgz https://scan.coverity.com/download/linux64 --form project=$COVERITY_SCAN_PROJECT_NAME --form token=$COVERITY_SCAN_TOKEN - tar xfz /tmp/cov-analysis-linux64.tgz @@ -96,7 +94,6 @@ Ubuntu_GCC: cache: key: Ubuntu_GCC.v2 before_script: - - apt-get update; apt-get -y install software-properties-common; add-apt-repository -y ppa:openmw/openmw - CI/install_debian_deps.sh gcc openmw-deps openmw-deps-dynamic variables: CC: gcc @@ -138,7 +135,6 @@ Ubuntu_GCC_Static_Deps: - ccache/ - build/extern/fetched/ before_script: - - apt-get update; apt-get -y install software-properties-common; add-apt-repository -y ppa:openmw/openmw - CI/install_debian_deps.sh gcc openmw-deps openmw-deps-static variables: CI_OPENMW_USE_STATIC_DEPS: 1 @@ -158,7 +154,6 @@ Ubuntu_GCC_Static_Deps_tests: Ubuntu_Clang: extends: .Ubuntu before_script: - - apt-get update; apt-get -y install software-properties-common; add-apt-repository -y ppa:openmw/openmw - CI/install_debian_deps.sh clang openmw-deps openmw-deps-dynamic cache: key: Ubuntu_Clang.v2 diff --git a/CI/install_debian_deps.sh b/CI/install_debian_deps.sh index 370f7f23ed..6364bb2cd1 100755 --- a/CI/install_debian_deps.sh +++ b/CI/install_debian_deps.sh @@ -65,4 +65,6 @@ export APT_CACHE_DIR="${PWD}/apt-cache" set -x mkdir -pv "$APT_CACHE_DIR" apt-get update -yqq +apt-get -qq -o dir::cache::archives="$APT_CACHE_DIR" install -y --no-install-recommends software-properties-common +add-apt-repository -y ppa:openmw/openmw apt-get -qq -o dir::cache::archives="$APT_CACHE_DIR" install -y --no-install-recommends "${deps[@]}"