diff options
author | Ricki Hirner <hirner@bitfire.at> | 2021-11-06 12:28:38 +0300 |
---|---|---|
committer | Ricki Hirner <hirner@bitfire.at> | 2021-11-06 13:05:40 +0300 |
commit | ef118496299012b8f6aafeb8c5c9c32765b6944e (patch) | |
tree | 4a8a86c0d0536d07b858b0892b7e9e29b736f730 | |
parent | c3ec1bbe16bcdcca8e7300b868f006c25fe29d73 (diff) |
Move to Github
-rw-r--r-- | .github/workflows/build-kdoc.yml | 29 | ||||
-rw-r--r-- | .github/workflows/test-dev.yml | 63 | ||||
-rw-r--r-- | .gitlab-ci.yml | 29 | ||||
-rw-r--r-- | README.md | 16 |
4 files changed, 101 insertions, 36 deletions
diff --git a/.github/workflows/build-kdoc.yml b/.github/workflows/build-kdoc.yml new file mode 100644 index 0000000..ceecf6f --- /dev/null +++ b/.github/workflows/build-kdoc.yml @@ -0,0 +1,29 @@ +name: Build KDoc +on: + push: + branches: [main] +jobs: + build: + name: Build and publish KDoc + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + submodules: true + - uses: actions/setup-java@v2 + with: + distribution: 'temurin' + java-version: 11 + cache: 'gradle' + - uses: gradle/wrapper-validation-action@v1 + + - name: Build KDoc + run: ./gradlew dokkaHtml + - name: Publish KDoc + if: success() + uses: crazy-max/ghaction-github-pages@v2.5.0 + with: + target_branch: gh-pages + build_dir: build/dokka/html + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/test-dev.yml b/.github/workflows/test-dev.yml new file mode 100644 index 0000000..4a3b070 --- /dev/null +++ b/.github/workflows/test-dev.yml @@ -0,0 +1,63 @@ +name: Development tests +on: push +jobs: + test: + name: Tests without emulator + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + submodules: true + - uses: actions/setup-java@v2 + with: + distribution: 'temurin' + java-version: 11 + cache: 'gradle' + - uses: gradle/wrapper-validation-action@v1 + + - name: Run lint + run: ./gradlew lintDebug + - name: Run unit tests + run: ./gradlew testDebugUnitTest + - name: Archive results + uses: actions/upload-artifact@v2 + with: + name: test-results + path: | + build/outputs/lint* + build/reports + + test_on_emulator: + name: Tests with emulator + runs-on: privileged + container: + image: ghcr.io/bitfireat/docker-android-ci:main + options: --privileged + env: + ANDROID_HOME: /sdk + ANDROID_AVD_HOME: /root/.android/avd + steps: + - uses: actions/checkout@v2 + with: + submodules: true + - uses: gradle/wrapper-validation-action@v1 + + - name: Cache gradle dependencies + uses: actions/cache@v2 + with: + key: ${{ runner.os }}-1 + path: | + ~/.gradle/caches + ~/.gradle/wrapper + + - name: Start emulator + run: start-emulator.sh + - name: Run connected tests + run: ./gradlew connectedDebugAndroidTest + - name: Archive results + uses: actions/upload-artifact@v2 + with: + name: test-results + path: | + build/reports + diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index aca2875..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,29 +0,0 @@ -image: registry.gitlab.com/bitfireat/docker-android-emulator:latest - -before_script: - - export GRADLE_USER_HOME=`pwd`/.gradle; chmod +x gradlew - -cache: - paths: - - .gradle/ - -test: - tags: - - privileged - script: - - start-emulator.sh - - ./gradlew check connectedCheck - artifacts: - paths: - - build/outputs/lint-results-debug.html - - build/reports/ - -pages: - script: - - ./gradlew dokkaHtml - - mkdir public && mv build/dokka public - artifacts: - paths: - - public - only: - - master @@ -1,5 +1,6 @@ -[![build status](https://gitlab.com/bitfireAT/vcard4android/badges/master/build.svg)](https://gitlab.com/bitfireAT/vcard4android/commits/master) +[![Development tests](https://github.com/bitfireAT/vcard4android/actions/workflows/test-dev.yml/badge.svg)](https://github.com/bitfireAT/vcard4android/actions/workflows/test-dev.yml) +[![Documentation](https://img.shields.io/badge/documentation-kdoc-brightgreen)](https://bitfireat.github.io/vcard4android/) # vcard4android @@ -11,12 +12,13 @@ It's a framework for from/into data classes that are compatible with the Android Contacts Provider, and * accessing the Android Contacts Provider by a unified API. -It has been primarily developed for [DAVx⁵](https://www.davx5.com). +It has been primarily developed for [DAVx⁵](https://www.davx5.com) and is currently intended +to be used as git submodule. _This software is not affiliated to, nor has it been authorized, sponsored or otherwise approved by Google LLC. Android is a trademark of Google LLC._ -Generated KDoc: https://bitfireAT.gitlab.io/vcard4android/dokka/html/ +Generated KDoc: https://bitfireat.github.io/vcard4android/ ## Contact @@ -27,14 +29,14 @@ Florastraße 27 2540 Bad Vöslau, AUSTRIA ``` -Email: [play@bitfire.at](mailto:play@bitfire.at) (please do not use this) - -Discussion: https://forums.bitfire.at/category/18/libraries +For questions, suggestions etc. use [Github discussions](https://github.com/bitfireAT/vcard4android/discussions). +We're happy about contributions! In case of bigger changes, please let us know in the discussions before. +Then make the changes in your own repository and send a pull request. ## License -Copyright (C) Ricki Hirner (bitfire web engineering GmbH) and contributors. +Copyright (C) Ricki Hirner (bitfire web engineering GmbH) and [contributors](https://github.com/bitfireAT/vcard4android/graphs/contributors). This program comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under the conditions of the [GNU GPL v3](https://www.gnu.org/licenses/gpl-3.0.html). |