Skip to content

Commit

Permalink
test: Skip tests failing due to change in Travis env
Browse files Browse the repository at this point in the history
  • Loading branch information
bengourley authored and fractalwrench committed Jan 12, 2021
1 parent 29d388b commit 206a718
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions features/ndk_app_legacy.feature
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Feature: Plugin integrated in NDK app

@skip_agp4_0_or_higher
@skip_agp3_4_0
Scenario: NDK apps send requests
When I build the NDK app
And I wait to receive 6 requests
Expand All @@ -26,6 +27,7 @@ Scenario: NDK apps send requests
| java.lang.String doSomething() |

@skip_agp4_0_or_higher
@skip_agp3_4_0
Scenario: Custom projectRoot is added to payload
When I set environment variable "PROJECT_ROOT" to "/repos/custom/my-app"
And I build the NDK app
Expand All @@ -48,6 +50,7 @@ Scenario: Custom projectRoot is added to payload

# Sets a non-existent objdump location for x86 and arm64-v8a, delivery should proceed as normal for other files
@skip_agp4_0_or_higher
@skip_agp3_4_0
Scenario: Custom objdump location
When I set environment variable "OBJDUMP_LOCATION" to "/fake/objdump"
And I build the NDK app
Expand All @@ -67,6 +70,7 @@ Scenario: Custom objdump location
| com.bugsnag.android.ndkapp |

@skip_agp4_0_or_higher
@skip_agp3_4_0
Scenario: Mapping files uploaded for custom sharedObjectPaths
When I set environment variable "USE_SHARED_OBJECT_PATH" to "true"
When I build the NDK app
Expand Down
1 change: 1 addition & 0 deletions features/proxy.feature
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Scenario: Authenticated HTTP proxy without creds
And I should receive no requests

@skip_agp4_0_or_higher
@skip_agp3_4_0
Scenario: NDK request for basic HTTP proxy AGP < 4
When I start an http proxy
And I set the fixture JVM arguments to "-Dhttp.proxyHost=localhost -Dhttp.proxyPort=9000 -Dhttp.nonProxyHosts="
Expand Down
4 changes: 4 additions & 0 deletions features/support/env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
skip_this_scenario if is_above_or_equal_to_target(410)
end

Before('@skip_agp3_4_0') do |scenario|
skip_this_scenario if equals_target(340)
end

def equals_target(target)
version = ENV["AGP_VERSION"].slice(0, 5)
version = version.gsub(".", "")
Expand Down

0 comments on commit 206a718

Please sign in to comment.