Skip to content
This repository has been archived by the owner on Feb 6, 2019. It is now read-only.

Commit

Permalink
run behave in an external script
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Kampmann committed Oct 25, 2015
1 parent c440e10 commit fd5764b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
8 changes: 1 addition & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,9 @@ script:
- npm test
# starting up test-server
# and running behaviour tests against it
- |
set -e
coverage run -a manager.py runserver -R &
FLASK_PID=$!
python manager.py behave
kill -SIGINT $FLASK_PID
- scripts/run_behave_in_ci.sh

after_success:
- coverage report -m
- coveralls
- python scripts/travis_after_all.py && python scripts/auto_pr.py || echo "skipped"

Expand Down
11 changes: 11 additions & 0 deletions scripts/run_behave_in_ci.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

sh -c "coverage run -a manager.py runserver -R || true" &
python manager.py behave
pkill -INTR -f coverage
sleep 5 # give it a few seconds to actually write
pgrep -f coverage
pkill -TERM -f coverage
sleep 5 # give it a few seconds to actually write
pgrep -f coverage
coverage report -m

0 comments on commit fd5764b

Please sign in to comment.