Skip to content

Commit

Permalink
skip soloud test on ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheecour committed Feb 1, 2019
1 parent f84b3c9 commit f78e840
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@

# Wrappers for Nim based on nimterop

PR's welcome!
## Note
* PR's welcome!
* Still in alpha, the API is subject to change.

## Goal
* repository of thin wrappers that are kept up to date with latest nimterop developments
Expand Down
18 changes: 17 additions & 1 deletion tests/twrappers.nim
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import std/[os,unittest,strformat]

import wrapperspkg/[paths]

proc warnSkipped(cmd: string) =
echo "CAUTION: test skipped: " & cmd

proc runCmdCheck(cmd: string) =
## calls `check`, ie on error, fail after all commands are run instead of immediately
echo (runCmdCheck: cmd)
Expand All @@ -20,4 +23,17 @@ test "import wrappers":
pros: simpler, faster
cons: can't run the rest if some dependency for 1 test is missing
]#
runCmdCheck &"nim c -r {formulasDir()}/soloud/demo.nim -h"

let cmd = &"nim c -r {formulasDir()}/soloud/demo.nim -h"
if defined(OSX) or defined(Windows) or not existsEnv("TRAVIS"):
runCmdCheck cmd
else:
#[
travis ubuntu fails:
Error: execution of an external compiler program 'gcc -c -w -I/home/travis/.nimble/pkgs/build/soloud/include -DWITH_OSS -I/home/travis/.choosenim/toolchains/nim-0.19.2/lib -o /home/travis/.cache/nim/demo_d/soloud_wav.cpp.o /home/travis/.nimble/pkgs/build/soloud/src/audiosource/wav/soloud_wav.cpp' failed with exit code: 1
In file included from /home/travis/.nimble/pkgs/build/soloud/src/audiosource/wav/soloud_wav.cpp:34:0:
/home/travis/.nimble/pkgs/build/soloud/src/audiosource/wav/dr_flac.h:145:43: error: missing binary operator before token "("
#elif (defined(__clang__) && __has_feature(attribute_deprecated))
^
]#
warnSkipped cmd

0 comments on commit f78e840

Please sign in to comment.