Commit 4ff2ab6c authored by Drahomír Karchňák's avatar Drahomír Karchňák

Improved gitlab ci for android builds.

parent 727f4d9f
......@@ -38,7 +38,7 @@ ControlServerRelease:
paths:
- RMBTControlServer/build/libs/RMBTControlServer.war
AndroidApp:
AndroidAppDev:
stage: AndroidApp
except:
- tags
......@@ -47,11 +47,26 @@ AndroidApp:
- >
if git diff $LAST_PIPELINE_COMMIT HEAD --name-only|grep RMBTAndroid; then
echo "Starting Android App build!" &&
cd RMBTAndroid/ && ./gradlew clean build && cd ..
cd RMBTAndroid/ && ./gradlew clean assembleDev test lint && cd ..
fi;
artifacts:
paths:
- RMBTAndroid/build/outputs/apk/RMBTAndroid*.apk
- RMBTAndroid/build/outputs/apk/dev/*.apk
AndroidAppDebug:
stage: AndroidApp
only:
- tags
allow_failure: true
script:
- >
if git diff $LAST_PIPELINE_COMMIT HEAD --name-only|grep RMBTAndroid; then
echo "Starting Android App build!" &&
cd RMBTAndroid/ && ./gradlew clean assembleDebug test lint && cd ..
fi;
artifacts:
paths:
- RMBTAndroid/build/outputs/apk/debug/*.apk
AndroidAppRelease:
stage: AndroidApp
......@@ -61,10 +76,10 @@ AndroidAppRelease:
script:
- >
echo "Starting Android App build!" &&
cd RMBTAndroid/ && ./gradlew clean build && cd ..
cd RMBTAndroid/ && ./gradlew clean assembleRelease test lint && cd ..
artifacts:
paths:
- RMBTAndroid/build/outputs/apk/RMBTAndroid*.apk
- RMBTAndroid/build/outputs/apk/release/*.apk
StatisticServer:
stage: StatisticServer
......
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