From 20bca943d519cc2044c54ea341f71b1b1152cb7f Mon Sep 17 00:00:00 2001 From: hyades Date: Fri, 23 Aug 2013 03:39:23 +0530 Subject: [PATCH] playing around with travis.yml --- .travis.yml | 9 +++++++-- python-api/tests/integrationtests/test_controller.py | 3 +++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 869dbef..26d8a2a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,13 +4,18 @@ compiler: - clang - gcc +install: + - pip install python-coveralls + before_install: - echo 'yes' | sudo add-apt-repository ppa:gstreamer-developers/ppa - sudo apt-get update - sudo apt-get install .*gstreamer.*1\.0.* libgtk-3-dev - ./autogen.sh + - py.test --cov-report html --cov gstswitch -v -s + after_success: + - coveralls notifications: email: - - gst-switch-spam@googlegroups.com - irc: "irc.freenode.org#gst-switch" + - aayushahuja@gmail.com diff --git a/python-api/tests/integrationtests/test_controller.py b/python-api/tests/integrationtests/test_controller.py index cdf9af1..482d601 100644 --- a/python-api/tests/integrationtests/test_controller.py +++ b/python-api/tests/integrationtests/test_controller.py @@ -418,11 +418,14 @@ def switch(self, channel, port, index, generate_frames=False): sources.new_test_video(pattern=5) preview = PreviewSinks(3001) preview.run() + out_file = "output-{0}.data".format(index) + video_sink = VideoFileSink(PATH, 3001, out_file) time.sleep(3) controller = Controller() res = controller.switch(channel, port) print res time.sleep(3) + video_sink.terminate() sources.terminate_video() preview.terminate() s.terminate()