Skip to content

Commit

Permalink
Merge pull request #236 from bugsnag/v5-fixture-dep-bump
Browse files Browse the repository at this point in the history
Update test fixtures to run against AGP 4.1.0-beta04
  • Loading branch information
fractalwrench committed Jul 29, 2020
2 parents 5d7fd8e + 694835a commit 45f636f
Show file tree
Hide file tree
Showing 167 changed files with 252 additions and 11,878 deletions.
35 changes: 29 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,34 @@ jobs:
# AGP 3.4.0 E2E tests
- name: AGP 3.4.0 E2E tests
env:
- APP_FIXTURE_DIR=features/fixtures/app_agp340
- RN_FIXTURE_DIR=features/fixtures/rnapp_agp340/android
- NDK_FIXTURE_DIR=features/fixtures/ndkapp_agp340
script: bundle exec maze-runner features/agp3-features features/agp-features -c --verbose
- AGP_VERSION=3.4.0
- GRADLE_WRAPPER_VERSION=5.1.1
script: bundle exec maze-runner -c --verbose

# AGP 4.0.0 E2E tests
# AGP 3.5.0 E2E tests
- name: AGP 3.5.0 E2E tests
env:
- AGP_VERSION=3.5.0
- GRADLE_WRAPPER_VERSION=5.4.1
script: bundle exec maze-runner -c --verbose

# AGP 3.6.0 E2E tests
- name: AGP 3.6.0 E2E tests
env:
- AGP_VERSION=3.6.0
- GRADLE_WRAPPER_VERSION=5.6.4
script: bundle exec maze-runner -c --verbose

# AGP 4.0.0 E2E tests
- name: AGP 4.0.0 E2E tests
script: bundle exec maze-runner features/agp4-features features/agp-features -c --verbose
env:
- AGP_VERSION=4.0.0
- GRADLE_WRAPPER_VERSION=6.1.1
script: bundle exec maze-runner -c --verbose

# AGP 4.1.0 E2E tests
- name: AGP 4.1.0 E2E tests
env:
- AGP_VERSION=4.1.0-beta04
- GRADLE_WRAPPER_VERSION=6.5.1
script: bundle exec maze-runner -c --verbose
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Alter bugsnag extension to allow multiple shared object paths

Support for manifest processing in AGP 4.1.0-alpha04 and above
[#234](https://github.com/bugsnag/bugsnag-android-gradle-plugin/pull/234)
[#236](https://github.com/bugsnag/bugsnag-android-gradle-plugin/pull/236)
[#240](https://github.com/bugsnag/bugsnag-android-gradle-plugin/pull/240)

Alter bugsnag tasks to support the Incremental Build API
[#230](https://github.com/bugsnag/bugsnag-android-gradle-plugin/pull/230)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Feature: Plugin integrated in project with ABI APK splits

@skip_agp4_1_or_higher
Scenario: ABI Splits project builds successfully
When I build "abi_splits" using the "standard" bugsnag config
Then I should receive 16 requests
Expand Down Expand Up @@ -57,10 +58,12 @@ Scenario: ABI Splits project builds successfully
And the field "versionName" for multipart request 0 equals "1.0"
And the field "appId" for multipart request 0 equals "com.bugsnag.android.example"

@skip_agp4_1_or_higher
Scenario: ABI Splits automatic upload disabled
When I build "abi_splits" using the "all_disabled" bugsnag config
Then I should receive no requests

@skip_agp4_1_or_higher
Scenario: ABI Splits manual upload of build API
When I build the "Armeabi-release" variantOutput for "abi_splits" using the "all_disabled" bugsnag config
Then I should receive 1 request
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Feature: Plugin integrated in project with Density + ABI APK splits

@skip_agp4_1_or_higher
Scenario: Density ABI Splits project builds successfully
When I build "density_abi_splits" using the "standard" bugsnag config
Then I should receive 26 requests
Expand Down Expand Up @@ -82,10 +83,12 @@ Scenario: Density ABI Splits project builds successfully
And the request 0 is valid for the Android Mapping API
And the field "versionCode" for multipart request 0 equals "53"

@skip_agp4_1_or_higher
Scenario: Density ABI Splits automatic upload disabled
When I build "density_abi_splits" using the "all_disabled" bugsnag config
Then I should receive no requests

@skip_agp4_1_or_higher
Scenario: Density ABI Splits manual upload of build API
When I build the "XxxhdpiArmeabi-release" variantOutput for "density_abi_splits" using the "all_disabled" bugsnag config
Then I should receive 1 request
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Feature: Plugin integrated in project with Density APK splits

@skip_agp4_1_or_higher
Scenario: Density Splits project builds successfully
When I build "density_splits" using the "standard" bugsnag config
Then I should receive 14 requests
Expand Down Expand Up @@ -51,10 +52,12 @@ Scenario: Density Splits project builds successfully
And the field "versionName" for multipart request 0 equals "1.0"
And the field "appId" for multipart request 0 equals "com.bugsnag.android.example"

@skip_agp4_1_or_higher
Scenario: Density Splits automatic upload disabled
When I build "density_splits" using the "all_disabled" bugsnag config
Then I should receive no requests

@skip_agp4_1_or_higher
Scenario: Density Splits manual upload of build API
When I build the "Hdpi-release" variantOutput for "density_splits" using the "all_disabled" bugsnag config
Then I should receive 1 request
Expand Down
File renamed without changes.
File renamed without changes.
10 changes: 9 additions & 1 deletion features/fixtures/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,19 @@
buildscript {

repositories {
mavenLocal()
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.0.0'
def agpVersion = System.env.AGP_VERSION ?: "4.1.0-beta04"
classpath "com.android.tools.build:gradle:${agpVersion}"

if (!System.env.UPDATING_GRADLEW) {
dependencies {
classpath "com.bugsnag:bugsnag-android-gradle-plugin:9000.0.0-test"
}
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion features/fixtures/app/gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`

# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS=""
DEFAULT_JVM_OPTS='"-Xmx64m"'

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"
Expand Down
2 changes: 1 addition & 1 deletion features/fixtures/app/gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%

@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS=
set DEFAULT_JVM_OPTS="-Xmx64m"

@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
Expand Down
24 changes: 9 additions & 15 deletions features/fixtures/app/module/build.gradle
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
buildscript {
repositories {
jcenter()
google()
mavenLocal()
}
dependencies {
classpath "com.bugsnag:bugsnag-android-gradle-plugin:${project.plugin_version}"
}
}
def moduleConfig = System.env.MODULE_CONFIG ?: "default_app"
def bugsnagConfig = System.env.BUGSNAG_CONFIG ?: "standard"

// apply android module configuration (e.g. APK splits enabled)
apply from: "config/android/${System.env.MODULE_CONFIG}.gradle"
apply from: "../../config/android/${moduleConfig}.gradle"

// apply config first (not overwritten by applying bugsnag plugin)
apply from: "config/bugsnag/${System.env.BUGSNAG_CONFIG}.gradle"
if (!System.env.UPDATING_GRADLEW) {
// apply config first (not overwritten by applying bugsnag plugin)
apply from: "../../config/bugsnag/${bugsnagConfig}.gradle"

// apply bugsnag plugin configuration (e.g. custom sourceControl info)
apply plugin: 'com.bugsnag.android.gradle'
// apply bugsnag plugin configuration (e.g. custom sourceControl info)
apply plugin: 'com.bugsnag.android.gradle'
}
14 changes: 0 additions & 14 deletions features/fixtures/app/module/config/android/apk_splits.gradle

This file was deleted.

This file was deleted.

22 changes: 0 additions & 22 deletions features/fixtures/app/module/config/android/density_splits.gradle

This file was deleted.

This file was deleted.

9 changes: 0 additions & 9 deletions features/fixtures/app_agp340/.gitignore

This file was deleted.

23 changes: 0 additions & 23 deletions features/fixtures/app_agp340/build.gradle

This file was deleted.

9 changes: 0 additions & 9 deletions features/fixtures/app_agp340/gradle.properties

This file was deleted.

Binary file not shown.

This file was deleted.

Loading

0 comments on commit 45f636f

Please sign in to comment.