Browse Source

Move the startup test

Steven Silvester 8 years ago
parent
commit
9a45283c4d
1 changed files with 9 additions and 8 deletions
  1. 9 8
      scripts/travis_script.sh

+ 9 - 8
scripts/travis_script.sh

@@ -9,7 +9,16 @@ sh -e /etc/init.d/xvfb start || true
 
 
 export PATH="$HOME/miniconda/bin:$PATH"
 export PATH="$HOME/miniconda/bin:$PATH"
 
 
+
 if [[ $GROUP == tests ]]; then
 if [[ $GROUP == tests ]]; then
+    # Make sure we can start and kill the lab server
+    jupyter lab --no-browser &
+    TASK_PID=$!
+    # Make sure the task is running
+    ps -p $TASK_PID || exit 1
+    sleep 5
+    kill $TASK_PID
+    wait $TASK_PID
 
 
     # Run the JS and python tests
     # Run the JS and python tests
     py.test
     py.test
@@ -21,14 +30,6 @@ if [[ $GROUP == tests ]]; then
     npm install -g postcss-cli
     npm install -g postcss-cli
     postcss jupyterlab/build/*.css > /dev/null
     postcss jupyterlab/build/*.css > /dev/null
 
 
-    # Make sure we can start and kill the lab server
-    jupyter lab --no-browser &
-    TASK_PID=$!
-    # Make sure the task is running
-    ps -p $TASK_PID || exit 1
-    sleep 5
-    kill $TASK_PID
-    wait $TASK_PID
 fi
 fi