Factorise `add-apt-repository -y ppa:openmw/openmw`

pull/3225/head
jvoisin 3 years ago
parent f057713bcb
commit 766cb52523

@ -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

@ -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[@]}"

Loading…
Cancel
Save