-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdev-mode.sh
executable file
·37 lines (28 loc) · 1007 Bytes
/
dev-mode.sh
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
#!/bin/bash
# This is a sticky sha of python-ircd that is known and tested
SHA=0c70c0475ff0659f185660e49feb29a58042e42b
if [ ! -d "tests-env" ]; then
echo create tests-env first by running "run-tests.sh"
exit 1
fi
if [ ! -d tests-env/python-ircd ]; then
git clone https://github.com/abesto/python-ircd.git tests-env/python-ircd
pushd tests-env/python-ircd
git checkout -b tatianna-sticky $SHA
../bin/pip install -r requirements_python2.txt
../bin/pip install -r requirements_common.txt
popd
fi
pushd tests-env/python-ircd
echo Starting server, redirecting logs to tests-env/python-ircd/server.log
../bin/python application.py | while read x; do printf "[31m%s\n[0;0m[36;1m" "$x" ; done &
popd
echo "Start your IRC client on localhost 6667 (sleep 15s)"
sleep 15
echo Starting bot
sleep 5
tput setaf 2
#tests-env/bin/python core/bot.py --server localhost -p 6667 -c test
tests-env/bin/python core/bot.py test.config
kill %
echo '[0m;0m'