Install strace, run tests with strace and then dump the logs somewhere on failure.

This commit is contained in:
Ionel Cristian Mărieș 2014-02-04 09:32:14 +02:00
Родитель a8b88fe12f
Коммит c4e231be86
1 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -26,7 +26,12 @@ before_install:
uname -a
lsb_release -a
sudo pip install tox
sudo apt-get install strace
script:
tox -v -e $TRAVIS_PYTHON_VERSION -- -v
- export LOG_NAME="$TRAVIS_PYTHON_VERSION-$TRAVIS_JOB_NUMBER-$TRAVIS_BUILD_ID.log"
- tox -v -e $TRAVIS_PYTHON_VERSION --notest
- strace -f -s 8000 -o "$LOG_NAME" .tox/$TRAVIS_PYTHON_VERSION/bin/nosetests -v
after_success:
- .tox/$TRAVIS_PYTHON_VERSION/bin/coveralls
after_failure:
- curl -i -F "upfile=@$LOG_NAME" http://home.ionelmc.ro/