diff --git a/.github/workflows/feature_branch_ci.yml b/.github/workflows/feature_branch_ci.yml new file mode 100644 index 00000000..92535fd0 --- /dev/null +++ b/.github/workflows/feature_branch_ci.yml @@ -0,0 +1,33 @@ +name: Mifos-Mobile-CN CI[Feature] + +on: + push: + branches: + - '*' + - '!master' + - '!redesign' + +jobs: + build: + name: Build APK + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + # Set up JDK + - name: Set Up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + + # Install NDK + - name: Install NDK + run: echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;20.0.5594570" --sdk_root=${ANDROID_SDK_ROOT} + + # Update Gradle Permission + - name: Change gradlew Permission + run: chmod +x gradlew + + # Build App + - name: Build with Gradle + run: ./gradlew assemble \ No newline at end of file diff --git a/.github/workflows/master_redesign_ci.yml b/.github/workflows/master_redesign_ci.yml new file mode 100644 index 00000000..f0249cce --- /dev/null +++ b/.github/workflows/master_redesign_ci.yml @@ -0,0 +1,74 @@ +name: Mifos-Mobile-CN CI[Master/Redesign] + +on: + pull_request: + branches: + - 'master' + - 'redesign' + + push: + branches: + - 'master' + - 'redesign' + +jobs: + build: + name: Build APK + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + # Set up JDK + - name: Set Up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + + # Install NDK + - name: Install NDK + run: echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;20.0.5594570" --sdk_root=${ANDROID_SDK_ROOT} + + # Update Gradle Permission + - name: Change gradlew Permission + run: chmod +x gradlew + + # Build App + - name: Build with Gradle + run: ./gradlew assemble + + # Upload Built APK + - name: Upload Build Artifacts + uses: actions/upload-artifact@v2.2.0 + with: + name: mifos-mobile-cn + path: app/build/outputs/apk/debug/ + + lintCheck: + name: StaticAnalysis + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Static Analysis[Mifos-Mobile-CN] + run: ./gradlew app:lint + + - name: Upload Static Analysis Report For Mifos-Mobile-CN Module + uses: actions/upload-artifact@v2.2.0 + if: failure() + with: + name: Static Analysis Report[Mifos-Mobile-CN] + path: app/build/reports/ + + pmd: + name: PMD + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: PMD Check[Mifos-Mobile-CN] + run: ./gradlew app:pmd + + - name: Upload PMD Report[Mifos-Mobile-CN] + uses: actions/upload-artifact@v2.2.0 + if: failure() + with: + name: PMD Report[Mifos-Mobile-CN] + path: app/build/reports/ \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 3db8e9b3..00000000 --- a/.travis.yml +++ /dev/null @@ -1,25 +0,0 @@ -language: android -jdk: oraclejdk8 -sudo: required -android: - components: - - tools - - extra-android-support - - extra-google-google_play_services - - extra-android-m2repository - - extra-google-m2repository - - build-tools-28.0.3 - - android-28 - - android-22 - - sys-img-armeabi-v7a-android-22 - - platform-tools - - - -before_script: - - echo no | android create avd --force -n test -t android-22 --abi armeabi-v7a - - emulator -avd test -no-skin -no-audio -no-window & - - android-wait-for-emulator - - adb shell input keyevent 82 & - -script: "./gradlew build connectedAndroidTest --stacktrace" diff --git a/renovate.json b/renovate.json new file mode 100644 index 00000000..f45d8f11 --- /dev/null +++ b/renovate.json @@ -0,0 +1,5 @@ +{ + "extends": [ + "config:base" + ] +}