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

Get rid of before_script subkey in apt !reference

parent 7b82d5c3
Pipeline #18346 passed with stage
in 29 seconds
......@@ -4,22 +4,21 @@ image: ubuntu:latest
# This template should be usable on any system that's based on apt.
# taken from tor gitlabci
.apt-template:
before_script: |
export LC_ALL=C.UTF-8
echo Etc/UTC > /etc/timezone
mkdir -p apt-cache
export APT_CACHE_DIR="$(pwd)/apt-cache"
echo 'quiet "1";' \
'APT::Install-Recommends "0";' \
'APT::Install-Suggests "0";' \
'APT::Acquire::Retries "20";' \
'APT::Get::Assume-Yes "true";' \
'Dpkg::Use-Pty "0";' \
"Dir::Cache::Archives \"${APT_CACHE_DIR}\"; " \
>> /etc/apt/apt.conf.d/99gitlab
apt-get update -qq
apt-get upgrade -qy
.apt-init: |
export LC_ALL=C.UTF-8
echo Etc/UTC > /etc/timezone
mkdir -p apt-cache
export APT_CACHE_DIR="$(pwd)/apt-cache"
echo 'quiet "1";' \
'APT::Install-Recommends "0";' \
'APT::Install-Suggests "0";' \
'APT::Acquire::Retries "20";' \
'APT::Get::Assume-Yes "true";' \
'Dpkg::Use-Pty "0";' \
"Dir::Cache::Archives \"${APT_CACHE_DIR}\"; " \
>> /etc/apt/apt.conf.d/99gitlab
apt-get update -qq
apt-get upgrade -qy
variables:
GIT_SUBMODULE_STRATEGY: recursive
......@@ -38,7 +37,7 @@ pages:
- .cache/lektor
stage: build
before_script:
- !reference [.apt-template, before_script]
- !reference [.apt-init]
script:
- 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
......@@ -85,7 +84,7 @@ check_new_strings:
rules:
- if: $TRANSLATION_BRANCH != null && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
before_script:
- !reference [.apt-template, before_script]
- !reference [.apt-init]
script:
- 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
......@@ -113,7 +112,7 @@ check_l10n:
only:
- translations
before_script:
- !reference [.apt-template, before_script]
- !reference [.apt-init]
script:
- apt-get install gettext i18nspector python3-polib ca-certificates -y
- echo 'lets see if there are any broken links on the translations'
......
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