We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11cab43 commit a81e67dCopy full SHA for a81e67d
.travis.yml
@@ -16,8 +16,4 @@ install:
16
- "npm install --prefix=tests"
17
- "npm run build --prefix=tests"
18
19
-script: -|
20
- node render.js &
21
- NODE_PID=$!
22
- python runtests.py
23
- kill $NODE_PID
+script: python runtests.py
runtests.py
@@ -1,5 +1,7 @@
1
import os
2
import sys
3
+import time
4
+import subprocess
5
6
import django
7
@@ -13,7 +15,14 @@
13
15
from django.conf import settings
14
from django.test.utils import get_runner
+ node = subprocess.Popen(['node', 'render.js'])
+ # Wait for service to start
+ time.sleep(1)
+
TestRunner = get_runner(settings)
test_runner = TestRunner()
24
failures = test_runner.run_tests(['tests'])
25
26
+ node.kill()
27
28
sys.exit(bool(failures))
0 commit comments