-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathci.sh
More file actions
executable file
·31 lines (22 loc) · 846 Bytes
/
ci.sh
File metadata and controls
executable file
·31 lines (22 loc) · 846 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
set -ex -o pipefail
# Log some general info about the environment
env | sort
if [ "$SYSTEM_JOBIDENTIFIER" != "" ]; then
# azure pipelines
CODECOV_NAME="$SYSTEM_JOBIDENTIFIER"
else
CODECOV_NAME="${TRAVIS_OS_NAME}-${TRAVIS_PYTHON_VERSION:-unknown}"
fi
python -c "import sys, struct, ssl; print('#' * 70); print('python:', sys.version); print('version_info:', sys.version_info); print('bits:', struct.calcsize('P') * 8); print('openssl:', ssl.OPENSSL_VERSION, ssl.OPENSSL_VERSION_INFO); print('#' * 70)"
python -m pip install -U pip setuptools wheel
python -m pip --version
python -m pip install -r test-requirements.txt
#black --diff --check snekomatic
pytest \
--cov=snekomatic \
--cov=tests \
--cov-report=term \
--verbose \
"${@}"
bash <(curl -s https://codecov.io/bash) -n "${CODECOV_NAME}"