Skip to content

Migrate to Github Actions for CI #743

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

Merged
merged 3 commits into from
May 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Mixpanel Android Pull Request and master branch CI

on:
push:
branches: [ master, 6.0.0.beta ]
pull_request:
branches: [ master, 6.0.0.beta ]

jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout the code
uses: actions/checkout@v2
- name: Run Unit test
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 27
profile: Nexus 5
script: ./gradlew createDebugCoverageReport
- name: Lint
run: ./gradlew lint
- name: Upload test report
uses: actions/upload-artifact@v2
if: always()
with:
name: Unit Test Report
path: /Users/runner/work/mixpanel-android/mixpanel-android/build/reports/androidTests/connected
- name: Upload test coverage report
uses: actions/upload-artifact@v2
with:
name: Test Coverage Report
path: /Users/runner/work/mixpanel-android/mixpanel-android/build/reports/coverage/debug/
- name: Upload lint report
uses: actions/upload-artifact@v2
with:
name: Lint Report
path: /Users/runner/work/mixpanel-android/mixpanel-android/build/reports/lint-results.html
- name: Android docs
run: ./gradlew --info androidJavadocs

45 changes: 0 additions & 45 deletions .travis.yml

This file was deleted.

12 changes: 12 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ apply plugin: 'com.android.library'
apply plugin: 'maven'
apply plugin: 'signing'


group = GROUP
version = VERSION_NAME

Expand Down Expand Up @@ -41,6 +42,17 @@ android {
textReport true
}
}
buildTypes {
debug{
minifyEnabled false
debuggable true
testCoverageEnabled true
}
release {
minifyEnabled false
testCoverageEnabled true
}
}
}

allprojects {
Expand Down