From dac54d0e4345e52ce18a802b0ee22e6bb8696f9a Mon Sep 17 00:00:00 2001 From: Justin Worthe Date: Sat, 8 Jul 2017 13:39:43 +0200 Subject: Ignored audio device unit tests because Travis doesn't have audio devices --- .travis.yml | 5 +---- src/audio.rs | 1 + 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9c22ce1..3ff3bb0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,4 @@ addons: packages: - libgtk-3-bin - libgtk-3-dev - - libpango1.0-0 -before_install: - - sudo apt-get install libasound2-dev alsa-utils alsa-oss - - sudo modprobe snd-dummy \ No newline at end of file + - libpango1.0-0 \ No newline at end of file diff --git a/src/audio.rs b/src/audio.rs index 0c85666..ffaa6ff 100644 --- a/src/audio.rs +++ b/src/audio.rs @@ -64,6 +64,7 @@ pub fn start_listening(pa: &pa::PortAudio, device_index: u32, } #[test] +#[ignore] //ignored because TravisCI doesn't have any audio devices to test with fn start_listening_returns_successfully() { // Just a note on unit tests here, portaudio doesn't seem to // respond well to being initialized many times, and starts -- cgit v1.2.3