-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathci.sh
More file actions
executable file
·34 lines (27 loc) · 778 Bytes
/
ci.sh
File metadata and controls
executable file
·34 lines (27 loc) · 778 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
#!/usr/bin/env bash
set -exuo pipefail
poetry install
poetry run doit --verbosity 2
if [ ! -z "$(git status --porcelain)" ]; then
git status
python tests/dump_modified_tarballs.py
echo Tasks in dodo.py created files untracked by git or modified files tracked by git.
echo See git status above.
exit 1
fi
# run tests
poetry run tox -v -e "py${PYTHON_VERSION:?}${TOX_EXTRA_ENVS:-}"
# format coverage report
if [ "$REPORT_COVERAGE" == "true" ]; then
poetry run coverage xml
fi
# check installability
virtualenv env
. env/bin/activate
pip install --upgrade pip
pip install .
python -c 'import elm_doc.tasks.assets; assert elm_doc.tasks.assets.tarball.exists()'
# print diagnostic info
pip list
python -c 'import elm_doc; print(elm_doc.__file__)'
elm-doc --help