From 6146219d9c8ef2d3510ee24c0c534862a036035d Mon Sep 17 00:00:00 2001 From: fabian Date: Sat, 3 Dec 2022 14:49:38 +0100 Subject: [PATCH 1/4] add drone yml file --- .drone.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..b1aa919 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,10 @@ +--- +kind: pipeline +type: docker +name: Android + +steps: +- name: build + image: androidsdk/android-31 + commands: + - ./gradlew build \ No newline at end of file From d4fa1483cda1922d84563ba2189aa262d55d0086 Mon Sep 17 00:00:00 2001 From: Fabian Zobrist Date: Thu, 8 Dec 2022 22:33:24 +0100 Subject: [PATCH 2/4] Fit tests. --- .../me/zobrist/tichucounter/RoundUnitTest.kt | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/app/src/test/java/me/zobrist/tichucounter/RoundUnitTest.kt b/app/src/test/java/me/zobrist/tichucounter/RoundUnitTest.kt index 96e97f1..ba0c920 100644 --- a/app/src/test/java/me/zobrist/tichucounter/RoundUnitTest.kt +++ b/app/src/test/java/me/zobrist/tichucounter/RoundUnitTest.kt @@ -33,25 +33,6 @@ class RoundUnitTest inputScoreB+=5 } - // Team a +100 points for Tichu - inputScoreA=125 + 100 - inputScoreB=-25 - - // Normal round range -25 to 125 as input - while (inputScoreB <= 125) - { - temp=Round(inputScoreA , true) - assertEquals(inputScoreB , temp.scoreB) - assertTrue(temp.isValidRound()) - - temp=Round(inputScoreA , false) - assertEquals(inputScoreB , temp.scoreA) - assertTrue(temp.isValidRound()) - - inputScoreA-=5 - inputScoreB+=5 - } - // Double win temp=Round(200 , true) assertEquals(0 , temp.scoreB) From bbab1a1eb43bc683436843e329fe935ffc520e5e Mon Sep 17 00:00:00 2001 From: fabian Date: Thu, 8 Dec 2022 22:45:36 +0100 Subject: [PATCH 3/4] Try different container --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index b1aa919..d5a3df6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -5,6 +5,6 @@ name: Android steps: - name: build - image: androidsdk/android-31 + image: mingc/android-build-box commands: - ./gradlew build \ No newline at end of file From 88c5096c7cfaddebf13761710cdec3aee4b19af3 Mon Sep 17 00:00:00 2001 From: fabian Date: Thu, 8 Dec 2022 22:48:57 +0100 Subject: [PATCH 4/4] Add conditions --- .drone.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index d5a3df6..82e296e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,4 +7,8 @@ steps: - name: build image: mingc/android-build-box commands: - - ./gradlew build \ No newline at end of file + - ./gradlew build + when: + event: + - push + - pull_request \ No newline at end of file