Commit 9e08d651 authored by Jérôme Charaoui's avatar Jérôme Charaoui 🔭
Browse files

Fix redundant DEBIAN_FRONTEND envvar

Use the variables: key to define it for all jobs.
parent d13a58f3
Pipeline #18113 passed with stage
in 46 seconds
......@@ -18,12 +18,13 @@ image: ubuntu:latest
'Dpkg::Use-Pty "0";' \
"Dir::Cache::Archives \"${APT_CACHE_DIR}\"; " \
>> /etc/apt/apt.conf.d/99gitlab
DEBIAN_FRONTEND=noninteractive apt-get update -qq
DEBIAN_FRONTEND=noninteractive apt-get upgrade -qy
apt-get update -qq
apt-get upgrade -qy
variables:
GIT_SUBMODULE_STRATEGY: recursive
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
DEBIAN_FRONTEND: "noninteractive"
pages:
cache:
......@@ -39,13 +40,13 @@ pages:
before_script:
- !reference [.apt-template, before_script]
script:
- DEBIAN_FRONTEND=noninteractive apt-get install python3-pip git python3-inifile python3-dev python3-setuptools python3-openssl python3-cryptography python3-venv apt-utils ca-certificates -y
- apt-get install python3-pip git python3-inifile python3-dev python3-setuptools python3-openssl python3-cryptography python3-venv apt-utils ca-certificates -y
- python3 -m venv venv
- source venv/bin/activate
- pip3 install lektor
- >
if [ -n "${TRANSLATION_BRANCH}" ]; then
DEBIAN_FRONTEND=noninteractive apt-get install gettext python3-babel i18nspector
apt-get install gettext python3-babel i18nspector
echo 'checking out translations'
rm -rf i18n
git clone --branch "${TRANSLATION_BRANCH}" --depth=1 https://git.torproject.org/translation.git i18n
......@@ -86,7 +87,7 @@ check_new_strings:
before_script:
- !reference [.apt-template, before_script]
script:
- DEBIAN_FRONTEND=noninteractive apt-get install gettext git python3-dev python3-setuptools i18nspector python3-polib python3-requests ca-certificates apt-utils -y
- apt-get install gettext git python3-dev python3-setuptools i18nspector python3-polib python3-requests ca-certificates apt-utils -y
- git clone https://gitlab.torproject.org/tpo/community/l10n.git
- echo 'lets see if there are any updates in the strings for translation'
- l10n/bin/check_po_status.py $TRANSLATION_BRANCH
......@@ -114,7 +115,7 @@ check_l10n:
before_script:
- !reference [.apt-template, before_script]
script:
- DEBIAN_FRONTEND=noninteractive apt-get install gettext i18nspector python3-polib ca-certificates -y
- apt-get install gettext i18nspector python3-polib ca-certificates -y
- echo 'lets see if there are any broken links on the translations'
- rm -rf l10n
- git clone https://gitlab.torproject.org/tpo/community/l10n.git
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment