-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·43 lines (33 loc) · 623 Bytes
/
build.sh
File metadata and controls
executable file
·43 lines (33 loc) · 623 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
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/env bash
set -euo pipefail
find . -name "*.sh" -not -path "*/.venv/*" -exec shellcheck -o all --severity style -x {} +
yamllint --strict .
if [ "${CI:=}" == "true" ]; then
isort . --check-only --diff
else
isort .
fi
if [ "${CI:=}" == "true" ]; then
black . --check --diff
else
black .
fi
flake8 .
mypy stackdiff
mypy tests
pytest -vv
if [[ -n ${1:-} ]]; then
version=${1}
elif [[ -n ${CIRCLE_TAG:-} ]]; then
version=${CIRCLE_TAG}
else
version="-1.-1.-1"
fi
echo "${version}" > stackdiff/version/VERSION
pushd docsrc
rm -rf build
make
popd
rm -rf dist
python setup.py bdist_wheel
rm -rf build