Commit 6a81570c authored by Hans-Christoph Steiner's avatar Hans-Christoph Steiner
Browse files

move test logs to gitlab job artifacts

parent 6e7b8293
......@@ -24,6 +24,17 @@ test:
stage: test
script:
- docker run $TEST_IMAGE /test
artifacts:
name: "${CI_PROJECT_PATH}_${CI_JOB_STAGE}_${CI_COMMIT_REF_NAME}_${CI_COMMIT_SHA}"
paths:
- logcat.txt
- app/core*
- app/*.log
- app/build/reports
- app/build/outputs/*ml
- app/build/outputs/apk
expire_in: 1 week
when: on_failure
release:
stage: release
......
......@@ -15,13 +15,7 @@ fdroid init
git clone --depth 1 https://gitlab.com/fdroid/fdroidclient.git
cd fdroidclient
./tools/check-format-strings.py
./gradlew test || {
for log in `find app/build/reports -name '*ml'`; do
echo "read $log here:"
(cat "$log" | curl --silent -F 'clbin=<-' https://clbin.com) || true
done
exit 1
}
./gradlew test
test -z "$DEBUG_KEYSTORE" || fdroid nightly -v
emulator -accel-check || true
......@@ -36,7 +30,8 @@ export CI_JOB_NAME="test 23 default x86_64"
start-emulator
wait-for-emulator
./gradlew connectedFullDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.notAnnotation=android.support.test.filters.LargeTest \
export FLAG=-Pandroid.testInstrumentationRunnerArguments.notAnnotation=androidx.test.filters.LargeTest
./gradlew connectedFullDebugAndroidTest $FLAG \
|| (adb -e logcat -d '*:W'; exit 1)
du -sh --one-file-system /* || true
......
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