Commit 41ff3101 authored by Ari Trachtenberg's avatar Ari Trachtenberg
Browse files

Updated testing script

parent 7725fbe9
Loading
Loading
Loading
Loading
Loading
+13 −13
Original line number Diff line number Diff line
# based on https://about.gitlab.com/blog/2018/10/24/setting-up-gitlab-ci-for-android-projects/
image: androidsdk/android-30
image: openjdk:8-jdk

variables:
  ANDROID_COMPILE_SDK: "30"
  ANDROID_BUILD_TOOLS: "30.0.2"
  ANDROID_COMPILE_SDK: "28"
  ANDROID_BUILD_TOOLS: "28.0.2"
  ANDROID_SDK_TOOLS:   "4333796"

before_script:
#before_script:
#  - apt-get --quiet update --yes
#  - apt-get --quiet install --yes wget tar unzip lib32stdc++6 lib32z1
#  - wget --quiet --output-document=android-sdk.zip https://dl.google.com/android/repository/sdk-tools-linux-${ANDROID_SDK_TOOLS}.zip
@@ -27,23 +27,23 @@ stages:
  - build
  - test

lintDebug:
  stage: build
  script:
    - gradlew -Pci --console=plain :app:lintDebug -PbuildDir=lint
  tags: [android30]
#lintDebug:
#  stage: build
#  script:
#    - ./gradlew -Pci --console=plain :app:lintDebug -PbuildDir=lint
#  tags: [openjdk16]

assembleDebug:
  stage: build
  script:
    - gradlew assembleDebug
    - javac PlusserTest.java --scan-classpath
  artifacts:
    paths:
    - app/build/outputs/
  tags: [android30]
  tags: [openjdk16]

debugTests:
  stage: test
  script:
    - gradlew -Pci --console=plain :app:testDebug
  tags: [android30]
 No newline at end of file
    - java -jar junit-platform-console-standalone-1.9.0.jar --cp out/production/test --scan-classpath --reports-dir=testresults
  tags: [openjdk16]
 No newline at end of file