提交 d2611431 编写于 作者: L Lukáš Doktor

Makefile: Add "smokecheck" target and incremental check in travis

This target checks very basic function of avocado and is used
incrementally in travis to verify this functionality for each
commit up to the origin/master.
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
上级 4f528ae1
......@@ -27,3 +27,20 @@ script:
- python setup.py develop
- ./selftests/run
- ./selftests/check_tmp_dirs
- |
ERR=""
MASTER=$(git rev-parse origin/master)
echo Master is $MASTER
for COMMIT in $(git rev-list origin..HEAD); do
echo
echo "--------------------< $(git log -1 --oneline $COMMIT) >--------------------"
echo
echo
git checkout $COMMIT || ERR=$(echo -e "$ERR\nUnable to checkout $(git log -1 --oneline $COMMIT)")
python setup.py develop && make smokecheck || ERR=$(echo -e "$ERR\n$(git log -1 --oneline)")
done
if [ "$ERR" ]; then
echo
echo "Incremental smokecheck failed: $ERR"
exit -1
fi
......@@ -123,6 +123,9 @@ requirements:
requirements-selftests: requirements
- grep -v '^#' requirements-selftests.txt | xargs -n 1 pip install --upgrade
smokecheck:
./scripts/avocado run passtest
check: clean check_cyclical modules_boundaries
selftests/checkall
selftests/check_tmp_dirs
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册