Skip to content

Commit

Permalink
Excluded OpenAL tests from Travis. #182
Browse files Browse the repository at this point in the history
  • Loading branch information
czyzby committed Apr 10, 2020
1 parent c1406fe commit d569693
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
env:
- TEST_PROFILE=travis
Original file line number Diff line number Diff line change
Expand Up @@ -1091,13 +1091,15 @@ abstract class AbstractAssetStorageLoadingTest : AsyncTest() {
@Before
override fun `setup LibGDX application`() {
super.`setup LibGDX application`()
Gdx.audio = OpenALAudio()
if (System.getenv("TEST_PROFILE") != "travis") {
Gdx.audio = OpenALAudio()
}
}

@After
override fun `exit LibGDX application`() {
super.`exit LibGDX application`()
(Gdx.audio as OpenALAudio).dispose()
(Gdx.audio as? OpenALAudio)?.dispose()
}
}

Expand Down

0 comments on commit d569693

Please sign in to comment.