summary history branches tags files
commit:ac59ac05ccd665662e03fb7c7d4bfc03a12a17cf
author:Trevor Bentley
committer:Trevor Bentley
date:Sun May 14 17:17:25 2017 +0200
parents:bdca0d4a1aa6aa23c4421be2ae13d79f46bdefa2
Tests running on Linux, and enable in Travis
diff --git a/.travis.yml b/.travis.yml
line changes: +1/-0
index e938061..ad4b012
--- a/.travis.yml
+++ b/.travis.yml
@@ -6,6 +6,7 @@ rust:
   - nightly
 os:
  - osx
+ - linux
 matrix:
   allow_failures:
     - rust: nightly

diff --git a/src/lib.rs b/src/lib.rs
line changes: +2/-2
index c5dac12..e3ae169
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -59,14 +59,14 @@ pub const SPOTIFY_API: SpotifyEndpoints = SpotifyEndpoints {
     player: "https://api.spotify.com/v1/me/player",
 };
 
-#[cfg(target_os = "unix")]
+#[cfg(target_os = "linux")]
 pub type Object = u64;
 #[cfg(target_os = "windows")]
 pub type Object = u32;
 #[cfg(target_os = "macos")]
 pub type Object = osx::Object;
 
-#[cfg(target_os = "unix")]
+#[cfg(target_os = "linux")]
 pub type StatusBar = DummyStatusBar;
 #[cfg(target_os = "macos")]
 pub type StatusBar = osx::OSXStatusBar;