File: test-release.sh

package info (click to toggle)
txtorcon 24.8.0-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,036 kB
  • sloc: python: 17,607; makefile: 227; sh: 34
file content (29 lines) | stat: -rwxr-xr-x 442 bytes parent folder | download
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
#!/bin/bash

pushd /tmp
tar zxvf ${1}/dist/txtorcon-${2}.tar.gz
cd txtorcon-${2}
make venv
. venv/bin/activate
pip install --editable .

## the actual "testing" part here
echo "testing doc build"
cd html
make clean
make html
cd ..
echo "testing endpoint plugins"
twistd web --port onion:80 --path .
sleep 5
cat twistd.log
echo "  killing"
kill `cat twistd.pid`
sleep 1
ls /tmp/tortmp*

## cleanup
deactivate
cd /tmp
rm -rf txtorcon-${2}
popd