-
Notifications
You must be signed in to change notification settings - Fork 4
/
mst.sh
19 lines (17 loc) · 1.21 KB
/
mst.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
set -e
rm -f target-maturin/wheels/monotrail-*.whl
CARGO_TARGET_DIR=target-maturin maturin build --release --strip -m crates/monotrail/Cargo.toml
virtualenv -p 3.8 -q .venv
.venv/bin/pip install --force-reinstall target-maturin/wheels/monotrail-*.whl
# Run pytest, entrypoint
(cd ../meine-stadt-transparent && SKIP_SLOW_TESTS=1 MONOTRAIL_EXTRAS="import-json" ../monotrail/.venv/bin/monotrail_script pytest)
# Run pytest, module
(cd ../meine-stadt-transparent && SKIP_SLOW_TESTS=1 MONOTRAIL_EXTRAS="import-json" ../monotrail/.venv/bin/monotrail_python -m pytest)
# Test interactive console
(cd ../meine-stadt-transparent && ../monotrail/.venv/bin/monotrail_python -c "import django; print('hi django ' + django.__version__)")
# Test manage.py script
(cd ../meine-stadt-transparent && ../monotrail/.venv/bin/monotrail_python manage.py | wc -l)
(cd ../meine-stadt-transparent && ../monotrail/target/release/monotrail run --extras import-json python ./manage.py | wc -l)
#(cd ../meine-stadt-transparent && MONOTRAIL_EXTRAS="import-json" ../monotrail/.venv/bin/monotrail_python manage.py runserver)
#(cd ../meine-stadt-transparent && SKIP_SLOW_TESTS=1 ../monotrail/target/debug/monotrail run --extras import-json script pytest)