-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathtest-docker-execute.sh
More file actions
executable file
·31 lines (24 loc) · 765 Bytes
/
test-docker-execute.sh
File metadata and controls
executable file
·31 lines (24 loc) · 765 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 -e
function runFlake8() {
echo '<--------------------------------------------->'
# run flake8 and exit on error
# it will check the code base against coding style (PEP8) and programming errors
echo "Running flake8..."
flake8 || { echo 'You have increased the number of flake8 errors'; exit 1; }
}
function runPyTest() {
echo '<--------------------------------------------->'
echo "Python Version $(python --version)"
echo 'Running pytest...'
py.test --ignore=tests/rum
if [ "${TEST}" = 1 ]; then
pip install -i "${TEST_REPO}" stackify-python-apm;
else
pip install stackify-python-apm;
py.test tests/rum
fi
pip uninstall -y stackify-python-apm
}
runFlake8
runPyTest