Browse Source

travis: run `gamemoded -v` as meson test

Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
Stephan Lachnit 4 years ago
parent
commit
c36019a9aa
2 changed files with 9 additions and 3 deletions
  1. 0 1
      .travis.yml
  2. 9 2
      daemon/meson.build

+ 0 - 1
.travis.yml

@@ -20,6 +20,5 @@ script:
   - ./scripts/format-check.sh
   - ./bootstrap.sh -Dwith-examples=true
   - meson test -C build
-  - gamemoded -v
   - dbus-run-session -- gamemode-simulate-game
   - ./scripts/static-analyser-check.sh 

+ 9 - 2
daemon/meson.build

@@ -14,7 +14,7 @@ daemon_sources = [
 gamemoded_includes = libgamemode_includes
 gamemoded_includes += config_h_dir
 
-executable(
+gamemoded = executable(
     'gamemoded',
     sources: daemon_sources,
     dependencies: [
@@ -28,4 +28,11 @@ executable(
         gamemoded_includes,
     ],
     install: true,
-)
+)
+
+# verify gamemoded compiled properly
+test(
+    'validate gamemoded compiled properly',
+    gamemoded,
+    args: ['-v'],
+)