From: Thomas Fillon Date: Tue, 20 Jan 2015 13:09:18 +0000 (+0100) Subject: Travis-CI: Add test environment for timeside.server X-Git-Tag: 0.7^2~11 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=a63f05e7338fb18daf348199071e86547c3f0663;p=timeside.git Travis-CI: Add test environment for timeside.server --- diff --git a/.travis.yml b/.travis.yml index b9f9d5c..b0cfb00 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,7 @@ env: - TEST_TARGET=default # Default unit test - TEST_TARGET=cli # Test for TimeSide command line interfaces - TEST_TARGET=doc # Test documentation and included doctest + - TEST_TARGET=server # Test timeside.server # command to prepare the system to install prerequisites or dependencies @@ -55,6 +56,16 @@ script: - if [[ $TEST_TARGET == 'cli' ]]; then ./tests/test_scripts.sh; fi + # -------------SERVER------------------------- + - if [[ $TEST_TARGET == 'server' ]]; then + cd example/sandbox; + ./manage.py syncdb; + ./manage.py migrate; + ./manage.py runserver; + TESTPID=$!; + sleep 100; + kill -2 $TESTPID; + fi after_success: - # -------------DEFAULT--------------------