Commit 352171d0 authored by Andres Käver's avatar Andres Käver

slides, hw1-3

parent 313138fd
......@@ -61,3 +61,13 @@ And it must be possible to choose, which side starts.
AI implementation must be a something better than just random legal moves.
Special glory to these, who will implement Minimax with A-B pruning.
Extra super glory for multi-threaded AI implementation.
### HW1-Leg3 - UI Tests
Deadline: **08.03.2020 23:59:59**
Enable UI tests on your repo.
Read the pdf in course materials.
Pdf:
Include yaml file in root folder of your git repository.
Yaml:
image: jangrewe/gitlab-ci-android:latest
variables:
#Change it to SCREENSHOT or ESPRESSO
REPORT_TYPE: $SCREENSHOT
#
#DO NOT MODIFY THESE VALUES
#
ROOT_PATH: "/Users/testlab/testlab"
SUB_TOKEN: "EpCPqziF"
BUILDS_PATH: "$ROOT_PATH/builds/$SUB_TOKEN/0/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME"
TESTLAB_RUNNER_PATH: "$ROOT_PATH/jar/TestlabRunner.jar"
SPOON_RUNNER_PATH: "$ROOT_PATH/jar/libs/SpoonRunner.jar"
SCREENSHOT: "pdf" #use it for screenshot tests
ESPRESSO: "html" #use it for espresso testing
cache:
policy: pull
key: ${CI_PROJECT_ID}
paths:
- .gradle/
stages:
- build
- test
assemble:
when: manual
allow_failure: false
stage: build
tags:
- androidRunner
before_script:
- export GRADLE_USER_HOME=$(pwd)/.gradle
- chmod +x ./gradlew
script:
- ./gradlew assemble
- ./gradlew assembleAndroidTest
artifacts:
paths:
- app/build/outputs/apk
install:
variables:
GIT_STRATEGY: none
stage: test
dependencies:
- assemble
tags:
- testlabRunner
script:
- java -jar $TESTLAB_RUNNER_PATH --apk "$BUILDS_PATH/app/build/outputs/apk/debug/app-debug.apk" --debugApk "$BUILDS_PATH/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk" --outputFolderPath "$BUILDS_PATH/outputs/" --spoonRunnerPath "$SPOON_RUNNER_PATH" --api "0" --report "$REPORT_TYPE"
artifacts:
paths:
- $BUILDS_PATH/outputs
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment