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

case "${1}" in
    install)
        VERSION=$(curl https://pypi.org/pypi/pyOpenSSL/json | jq -r .info.version)
        git clone https://github.com/pyca/pyopenssl
        cd pyopenssl
        git checkout "$VERSION"
        pip install -e ".[test]"
        ;;
    run)
        cd pyopenssl
        pytest tests
        ;;
    *)
        exit 1
        ;;
esac