-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RUM-483 use macos runner #2154
RUM-483 use macos runner #2154
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #2154 +/- ##
===========================================
- Coverage 69.99% 69.96% -0.03%
===========================================
Files 726 726
Lines 26984 26995 +11
Branches 4520 4524 +4
===========================================
Hits 18887 18887
- Misses 6827 6832 +5
- Partials 1270 1276 +6 |
.gitlab-ci.yml
Outdated
@@ -26,6 +30,34 @@ stages: | |||
- publish | |||
- notify | |||
|
|||
.snippets: | |||
install-android-sdk: | |||
- curl -sSL -o commandlinetools.zip https://dl.google.com/android/repository/commandlinetools-mac-11076708_latest.zip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we put the version in an easier to modify variable?
- echo y | ~/android_sdk/cmdline-tools/latest/bin/sdkmanager --install "$ANDROID_BUILD_TOOLS" | ||
- echo y | ~/android_sdk/cmdline-tools/latest/bin/sdkmanager --install "$ANDROID_EMULATOR_IMAGE" | ||
- yes | ~/android_sdk/cmdline-tools/latest/bin/sdkmanager --licenses || true | ||
- echo "no" | ~/android_sdk/cmdline-tools/latest/bin/avdmanager --verbose create avd --force --name "$EMULATOR_NAME" --package "$ANDROID_EMULATOR_IMAGE" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this work okay if the emulator already exists? I assume that's what the echo "no"
is for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, in theory the emulator can't exist before hand, the no
is there to prevent creating a backup of the data between emulator runs
.gitlab-ci.yml
Outdated
run-instrumented-integration: | ||
- $ANDROID_HOME/emulator/emulator -avd "$EMULATOR_NAME" -grpc-use-jwt -no-snapstorage -no-audio -no-window -no-boot-anim -verbose -qemu -machine virt & | ||
- GRADLE_OPTS="-Xmx3072m" ./gradlew :instrumented:integration:assembleDebug :instrumented:integration:assembleDebugAndroidTest --stacktrace --no-daemon | ||
# - ./android-wait-for-emulator.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Purposefully commented out?
24d3125
to
806342c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nicee
806342c
to
02d2aa7
Compare
02d2aa7
to
e673497
Compare
What does this PR do?
Adds instrumented test support to our Gitlab CI pipeline