-
-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathtest.sh
More file actions
executable file
·22 lines (21 loc) · 763 Bytes
/
test.sh
File metadata and controls
executable file
·22 lines (21 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
which py > /dev/null 2>&1
if [[ $? == 0 ]]; then
echo "Running in Windows"
PYTHON='python'
py -3 -m venv testenv
source testenv/Scripts/activate
else
echo "Running in Linux"
PYTHON=python3
python3 -m venv testenv
source testenv/bin/activate
fi
${PYTHON} -m pip install -r requirements-dev.txt
${PYTHON} -m pip install --upgrade --no-cache-dir git+https://github.com/foosel/OctoPrint.git@devel
${PYTHON} -m pip install --upgrade --no-cache-dir https://github.com/OctoPrint/OctoPrint-Testpicture/archive/refs/heads/main.zip
${PYTHON} -m pip uninstall OctoPrint-DiscordRemote -y
${PYTHON} -m pip install .
${PYTHON} configtest.py
${PYTHON} -m webbrowser -t http://127.0.0.1:5001
octoprint serve -b testconfig --port 5001