2 # DO NOT EDIT THIS FILE IN MASTER. ONLY EDIT IT IN THE OLDEST SUPPORTED
3 # BRANCH, THEN MERGE FORWARD.
6 # This file controls how gitlab validates Tor commits and merge requests.
8 # It is primarily based on a set of scripts and configurations by
9 # Hans-Christoph Steiner. It only copies parts of those scripts and
10 # configurations for now. If you want a new piece of functionality
11 # (more debians, more fedoras, android support) then you shouldn't
12 # start from scratch: have a look at the original ticket, at
13 # https://gitlab.torproject.org/tpo/core/tor/-/issues/32193 !
15 # The file to copy from is
16 # https://gitlab.torproject.org/tpo/core/tor/-/merge_requests/96/diffs#diff-content-587d266bb27a4dc3022bbed44dfa19849df3044c
18 # Having said that, if there is anything really stupid here, don't
19 # blame it on Hans-Christoph! Tor probably added it on their own.
21 # Copyright 2020, The Tor Project, Inc.
22 # See LICENSE for licence information.
24 # These variables are set everywhere, unconditionally.
29 # This template is for exporting ephemeral things from the scripts. By
30 # convention we expect our scripts to copy stuff into artifacts/, rather than
31 # having a big list of files that be treated as artifacts.
32 .artifacts-template: &artifacts-template
34 name: "${CI_PROJECT_PATH}_${CI_JOB_STAGE}_${CI_COMMIT_REF_NAME}_${CI_COMMIT_SHA}"
40 .apt-template: &apt-template |
42 echo Etc/UTC > /etc/timezone
44 export APT_CACHE_DIR="$(pwd)/apt-cache"
46 'APT::Install-Recommends "0";' \
47 'APT::Install-Suggests "0";' \
48 'APT::Acquire::Retries "20";' \
49 'APT::Get::Assume-Yes "true";' \
50 'Dpkg::Use-Pty "0";' \
51 "Dir::Cache::Archives \"${APT_CACHE_DIR}\"; " \
52 >> /etc/apt/apt.conf.d/99gitlab
56 .debian-template: &debian-template
57 <<: *artifacts-template
59 DEBIAN_FRONTEND: "noninteractive"
78 - if [ "$ASCIIDOC" = yes ]; then apt-get install asciidoc xmlto; fi
79 - if [ "$DOXYGEN" = yes ]; then apt-get install doxygen; fi
85 - ./scripts/ci/ci-driver.sh
87 ###############################################
88 # Temporarily diabled. This one just takes too long to finish right now!
89 # Maybe we need to divide the call to ./src/test/test into a few segments,
90 # that all end in similar amount of time?
92 # image: debian:testing
93 # <<: *debian-template
97 # - ./scripts/ci/ci-driver.sh
106 - ./scripts/ci/ci-driver.sh
116 - ./scripts/ci/ci-driver.sh