Docker: Update AiiDA test to pytest

This commit is contained in:
Ole Schütt 2019-11-06 16:01:04 +01:00 committed by Ole Schütt
parent abbbcaa7c0
commit dbebbfc6f3
2 changed files with 3 additions and 3 deletions

View file

@ -20,7 +20,7 @@ rm -rf /var/lib/apt/lists/*
# install dependencies of aiida-cp2k
cd /opt/
git clone --quiet https://github.com/aiidateam/aiida-cp2k.git
pip3 install --quiet ./aiida-cp2k/[pre-commit,test]
pip3 install --quiet ./aiida-cp2k/[test]
pip3 uninstall --quiet --yes aiida-cp2k
# create ubuntu user with sudo powers

View file

@ -20,7 +20,7 @@ fi
echo -e "\n========== Installing AiiDA-CP2K plugin =========="
cd /opt/aiida-cp2k/
git pull
pip3 install ./[pre-commit,test]
pip3 install ./[test]
echo -e "\n========== Configuring AiiDA =========="
AS_UBUNTU_USER="sudo -u ubuntu -H"
@ -92,7 +92,7 @@ cd /opt/aiida-cp2k/
set +e # disable error trapping for remainder of script
(
set -e # abort on error
$AS_UBUNTU_USER ./run_tests.sh
$AS_UBUNTU_USER py.test
)
EXIT_CODE=$?