1 # This file controls how gitlab validates Tor commits and merge requests.
3 # It is primarily based on a set of scripts and configurations by
4 # Hans-Christoph Steiner. It only copies parts of those scripts and
5 # configurations for now. If you want a new piece of functionality
6 # (more debians, more fedoras, android support) then you shouldn't
7 # start from scratch: have a look at the original ticket, at
8 # https://gitlab.torproject.org/tpo/core/tor/-/issues/32193 !
10 # The file to copy from is
11 # https://gitlab.torproject.org/tpo/core/tor/-/merge_requests/96/diffs#diff-content-587d266bb27a4dc3022bbed44dfa19849df3044c
13 # Having said that, if there is anything really stupid here, don't
14 # blame it on Hans-Christoph! Tor probably added it on their own.
16 # Copyright 2020, The Tor Project, Inc.
17 # See LICENSE for licence information.
19 # These variables are set everywhere, unconditionally.
24 # This template is for exporting ephemeral things from the scripts. By
25 # convention we expect our scripts to copy stuff into artifacts/, rather than
26 # having a big list of files that be treated as artifacts.
27 .artifacts-template: &artifacts-template
29 name: "${CI_PROJECT_PATH}_${CI_JOB_STAGE}_${CI_COMMIT_REF_NAME}_${CI_COMMIT_SHA}"
35 .apt-template: &apt-template |
37 echo Etc/UTC > /etc/timezone
39 export APT_CACHE_DIR="$(pwd)/apt-cache"
41 'APT::Install-Recommends "0";' \
42 'APT::Install-Suggests "0";' \
43 'APT::Acquire::Retries "20";' \
44 'APT::Get::Assume-Yes "true";' \
45 'Dpkg::Use-Pty "0";' \
46 "Dir::Cache::Archives \"${APT_CACHE_DIR}\"; " \
47 >> /etc/apt/apt.conf.d/99gitlab
51 .debian-template: &debian-template
52 <<: *artifacts-template
54 DEBIAN_FRONTEND: "noninteractive"
73 - if [ "$ASCIIDOC" = yes ]; then apt-get install asciidoc xmlto; fi
74 - if [ "$DOXYGEN" = yes ]; then apt-get install doxygen; fi
80 - ./scripts/ci/ci-driver.sh
82 ###############################################
83 # Temporarily diabled. This one just takes too long to finish right now!
84 # Maybe we need to divide the call to ./src/test/test into a few segments,
85 # that all end in similar amount of time?
87 # image: debian:testing
88 # <<: *debian-template
92 # - ./scripts/ci/ci-driver.sh
101 - ./scripts/ci/ci-driver.sh
111 - ./scripts/ci/ci-driver.sh