This repository has been archived by the owner on May 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
.gitlab-ci.yml
138 lines (125 loc) · 3.31 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
# core/tor releases:
# https://gitlab.torproject.org/tpo/core/team/-/wikis/NetworkTeam/CoreTorReleases
# As of 2021.03.02 all dirauths are running with version greater or equal to
# 0.4.5.
# 0.4.6 stable by Jun 15, 2021
# 0.4.5 (LTS) EOL Feb 15, 2023
# 0.3.5 (LTS) EOL Feb 1, 2022
# Python releases:
# 3.10 stable by 2021-10-04: https://www.python.org/dev/peps/pep-0619/
# Python stable releases: https://www.python.org/downloads/
# 3.9 EOL 2025-10 PEP 596
# 3.8 EOL 2024-10 PEP 569, newest major release
# 3.7 EOL 2023-06-27 PEP 537, included in Debian buster
# 3.6 EOL 2021-12-23 PEP 494
variables:
BASE_IMAGE: python:3.8
RELEASE: tor-nightly-master-buster
# Without version, the default available in the Debian repository will be
# installed.
# Specifying which version starts with will install the highest that start
# with that version.
TOR: tor=*
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
cache:
paths:
- .cache/pip
image: $BASE_IMAGE
before_script:
- "wget https://deb.torproject.org/torproject.org/\
A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc"
- cat A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc | apt-key add -
- echo deb [signed-by=A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89]
http://deb.torproject.org/torproject.org $RELEASE
main >> /etc/apt/sources.list
- apt update -yqq
- apt install -yqq $TOR
- pip install tox
- python --version
- tor --version
after_script:
- tox -e stats
python36:
variables:
BASE_IMAGE: python:3.6
image: $BASE_IMAGE
script:
- tox -e py36
- tox -e integration
python37tor035:
variables:
BASE_IMAGE: python:3.7
RELEASE: tor-nightly-0.3.5.x-buster
TOR: tor=0.3.5*
image: $BASE_IMAGE
script:
- tox -e py37
- tox -e integration
python37tor045:
variables:
BASE_IMAGE: python:3.7
RELEASE: tor-nightly-0.4.5.x-buster
TOR: tor=0.4.5*
image: $BASE_IMAGE
script:
- tox -e py37
- tox -e integration
python37tormaster:
variables:
BASE_IMAGE: python:3.7
RELEASE: tor-nightly-master-buster
TOR: tor=0.4.6*
image: $BASE_IMAGE
script:
- tox -e py37
- tox -e integration
python37torstable:
variables:
BASE_IMAGE: python:3.7
RELEASE: buster
TOR: tor
image: $BASE_IMAGE
script:
- tox -e py37
- tox -e integration
python38:
# This will overwrite the default before_script, so need to repeat the
# commands
before_script:
- "wget https://deb.torproject.org/torproject.org/\
A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc"
- cat A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc | apt-key add -
- echo deb [signed-by=A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89]
http://deb.torproject.org/torproject.org $RELEASE
main >> /etc/apt/sources.list
- apt update -yqq
- apt install -yqq $TOR
- pip install tox
- python --version
- tor --version
# To build the docs
- apt install -yqq texlive-latex-extra
- apt install -yqq dvipng
image: $BASE_IMAGE
script:
- tox -e inst
- tox -e setup
- tox -e py38
- tox -e integration
- tox -e lint
- tox -e doc
python39:
variables:
BASE_IMAGE: python:3.9
image: $BASE_IMAGE
script:
- tox -e py39
- tox -e integration
python310:
variables:
BASE_IMAGE: python:3.10-rc-buster
image: $BASE_IMAGE
script:
- tox -e py310
- tox -e integration
allow_failure: true