Skip to content

Commit a81e67d

Browse files
committed
Try a different method
1 parent 11cab43 commit a81e67d

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.travis.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,4 @@ install:
1616
- "npm install --prefix=tests"
1717
- "npm run build --prefix=tests"
1818

19-
script: -|
20-
node render.js &
21-
NODE_PID=$!
22-
python runtests.py
23-
kill $NODE_PID
19+
script: python runtests.py

runtests.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import os
22
import sys
3+
import time
4+
import subprocess
35

46
import django
57

@@ -13,7 +15,14 @@
1315
from django.conf import settings
1416
from django.test.utils import get_runner
1517

18+
node = subprocess.Popen(['node', 'render.js'])
19+
# Wait for service to start
20+
time.sleep(1)
21+
1622
TestRunner = get_runner(settings)
1723
test_runner = TestRunner()
1824
failures = test_runner.run_tests(['tests'])
25+
26+
node.kill()
27+
1928
sys.exit(bool(failures))

0 commit comments

Comments
 (0)