J.A. de Jong - Redu-Sone B.V., ASCEE V.O.F
fc681f3b6c
Some checks failed
continuous-integration/drone/push Build is failing
19 lines
391 B
Bash
Executable File
19 lines
391 B
Bash
Executable File
#/bin/sh
|
|
# This script is run in the CI/CD system to test the code.
|
|
python3 -m venv testenv
|
|
|
|
# Activate environment
|
|
. testenv/bin/activate
|
|
|
|
pip install -r requirements.txt
|
|
pip install .
|
|
|
|
arch_os_line='NAME="Arch Linux"'
|
|
if [[ $(sed -n "/^${arch_os_line}/p;q" /etc/os-release) == ${arch_os_line} ]]; then
|
|
# Arch Linux
|
|
pytest
|
|
else
|
|
# Not Arch Linux, assuming Ubuntu
|
|
pytest-3
|
|
fi
|