blob: 29ffde3e5f75fbcef620dc60ec978120ee6dff55 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/bash
set -exo pipefail
case "${1}" in
install)
git clone --depth 1 https://github.com/kennethreitz/requests
cd requests
git rev-parse HEAD
python -m pip install -r ${TRAVIS_BUILD_DIR}/_travis/downstream/requests-requirements.txt
python -m pip install .
;;
run)
cd requests
pytest tests/
;;
*)
exit 1
;;
esac
|