hurl/ci/setup.sh
2020-09-20 09:17:34 +02:00

29 lines
454 B
Bash
Executable File

#!/bin/bash
set -e
#ROOT_DIR=$(pwd)
rustup component add clippy
rustup component add rustfmt
cargo clippy --version
cargo fmt --version
cargo install cargo-deb
# Python/Flask
sudo apt-get install -y python3-pip
python3 -V
pip3 install Flask
(cd integration && python3 server.py&)
# Mitmproxy
wget https://snapshots.mitmproxy.org/5.2/mitmproxy-5.2-linux.tar.gz -O - | tar -xz
./mitmdump &
sleep 2
netstat -an | grep LISTEN | grep -E '8000|8080'