From 82a17d42aac03b430dbe1f6812ebfac80fc55eef Mon Sep 17 00:00:00 2001 From: Benjamin Schulte Date: Fri, 20 Nov 2020 20:49:56 +0100 Subject: [PATCH] Switch to GitHub Actions --- .github/FUNDING.yml | 1 + .github/workflows/compile.yml | 28 ++++++++++++++++++++++++++++ .travis.yml | 28 ---------------------------- 3 files changed, 29 insertions(+), 28 deletions(-) create mode 100644 .github/FUNDING.yml create mode 100644 .github/workflows/compile.yml delete mode 100644 .travis.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..6dd41ad --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1 @@ +ko_fi: MrStahlfelge diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml new file mode 100644 index 0000000..fb6b647 --- /dev/null +++ b/.github/workflows/compile.yml @@ -0,0 +1,28 @@ +# This workflow will build a Java project with Gradle +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle + +name: Compile and publish local + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Setup Android build environment + uses: android-actions/setup-android@v2.0.2 + - name: Local install + run: ./gradlew clean uploadArchives -PSNAPSHOT=true -PLOCAL=true diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index cddc982..0000000 --- a/.travis.yml +++ /dev/null @@ -1,28 +0,0 @@ -language: android - -android: - components: - - tools - - tools - - platform-tools - - build-tools-28.0.3 - - android-27 - - extra-google-m2repository - - extra-android-m2repository - licenses: - - 'android-sdk-license-.+' - -jdk: - - oraclejdk8 - -before_script: -# key generation fails when made within gdx-pay-tests-android, so create the key before building -- "keytool -genkey -v -keystore $HOME/.android/debug.keystore -storepass android -alias androiddebugkey -keypass -android -keyalg RSA -keysize 2048 -validity 10000 -noprompt -dname \"CN=GdxPay, OU=libGDX, O=libGDX, L=Unknown, ST=Unknown, C=US\"" - -before_cache: - - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock -cache: - directories: - - $HOME/.gradle/caches/ - - $HOME/.gradle/wrapper/