]> git.parisson.com Git - timeside.git/commitdiff
Travis-CI: Add test environment for timeside.server
authorThomas Fillon <thomas@parisson.com>
Tue, 20 Jan 2015 13:09:18 +0000 (14:09 +0100)
committerThomas Fillon <thomas@parisson.com>
Tue, 20 Jan 2015 13:09:18 +0000 (14:09 +0100)
.travis.yml

index b9f9d5c8b0fc53ce6548a43894e5a721a5beba4b..b0cfb002c3753e2e51707d004ccb73f21ffd4223 100644 (file)
@@ -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--------------------