-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.cirrus.yml
50 lines (49 loc) · 1.44 KB
/
.cirrus.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
task:
name: Flake8
container:
image: $STEMNS_IMAGE
cpu: 1
memory: 1G
pip_cache:
folder: ~/.cache/pip
fingerprint_script: echo Flake8 && echo $STEMNS_IMAGE
populate_script: mkdir -p ~/.cache/pip
install_script:
- pip install flake8
flake8_script:
# W503 and W504 are mutually exclusive and controversial, per pycodestyle docs.
- flake8 . --count --select=E,F,W,C90 --ignore=W503,W504 --show-source --statistics
env:
STEMNS_IMAGE: python:3.7
task:
name: "Missing torrc $CI_CONTROL_PORT"
container:
image: fedora:latest
cpu: 1
memory: 1G
install_script:
- dnf install -y tor python3-stem
matrix:
- env:
CI_CONTROL_PORT: "const"
port_script:
- echo "ControlPort 9051" >> /etc/tor/torrc
- cd ./config
- ln -s -T port_const_system.py.example port_const_system.py
- env:
CI_CONTROL_PORT: "auto"
port_script:
- echo "ControlPort auto" >> /etc/tor/torrc
- echo "ControlPortWriteToFile /var/lib/tor/controlport" >> /etc/tor/torrc
- cd ./config
- ln -s -T port_auto.py.example port_auto.py
tor_background_script:
- echo "CookieAuthentication 1" >> /etc/tor/torrc
- tor --runasdaemon 0 --defaults-torrc /usr/share/tor/defaults-torrc -f /etc/tor/torrc
stemns_script:
- if ./stemns.py &> out.txt
- then
- exit 1
- fi
- cat out.txt
- grep "torrc is unsafe for name lookups" out.txt