summaryrefslogtreecommitdiff
path: root/.github/downstream.d/mitmproxy.sh
blob: df7669aa933613d69dd91ab91317a2ff33fe6bae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash -ex

case "${1}" in
    install)
        git clone --depth=1 https://github.com/mitmproxy/mitmproxy
        cd mitmproxy
        git rev-parse HEAD
        pip install -e ".[dev]"
        ;;
    run)
        cd mitmproxy
        pytest test
        ;;
    *)
        exit 1
        ;;
esac