summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorFup Duck <fupduck@sacknagel.com>2018-02-06 18:34:13 +0100
committerFup Duck <fupduck@sacknagel.com>2018-02-06 18:34:13 +0100
commitb4b18f1d52956cf067f87d75d8f3f06c9be48afe (patch)
tree9191273c611e39afe7aa3401408dfa0dbc67b544 /.gitlab-ci.yml
parent6be60844db062575055752b554dbf14941e8e185 (diff)
parentedd34192484f4eb618fdcc2a68b18168c155d63c (diff)
Merge branch 'leap_0.9.8' into 8828_memory_leap_eip
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml55
1 files changed, 45 insertions, 10 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0edd09a9..91ee6c3d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -28,8 +28,7 @@ variables:
- if ! .gitlab/build.sh ${DOCKER_IMAGE} >> dockerbuild.log 2>&1; then echo "Image build failed. Please check dockerbuild.log."; exit 1; fi;
allow_failure: false
artifacts:
- when: on_failure
- expire_in: 31d
+ expire_in: 3d
paths:
- dockerbuild.log
@@ -57,13 +56,50 @@ unit_test:
script:
- ./gradlew test
+#ui_test:
+# image: "0xacab.org:4567/leap/bitmask_android/android-emulator:latest"
+# stage: test
+# script:
+# - emulator -avd testApi27 -no-audio -no-window &
+# - .gitlab/wait-for-emulator.sh
+# - adb devices
+# - adb shell settings put global window_animation_scale 0 &
+# - adb shell settings put global transition_animation_scale 0 &
+# - adb shell settings put global animator_duration_scale 0 &
+# - adb shell input keyevent 82 &
+# - ./gradlew connectedAndroidTest
+# - adb -s testApi27 emu kill
+
+#expanded_test:
+# image: "0xacab.org:4567/leap/bitmask_android/android-emulator:latest"
+# stage: test
+# script:
+# - emulator -avd testApi27 -no-audio -no-window &
+# - .gitlab/wait-for-emulator.sh
+# - adb devices
+# - adb shell settings put global window_animation_scale 0 &
+# - adb shell settings put global transition_animation_scale 0 &
+# - adb shell settings put global animator_duration_scale 0 &
+# - adb shell input keyevent 82 &
+# - ./gradlew connectedAndroidTest
+# - ./gradlew createProductionDebugCoverageReport
+# - adb -s testApi27 emu kill
+# - ./gradlew test
+# artifacts:
+# expire_in: 3 days
+# paths:
+# - app/build/reports/androidTests/connected/
+# - app/build/reports/coverage/production/
+# - app/build/tests/
+# when: manual
+
build:
image: "0xacab.org:4567/leap/bitmask_android/android-ndk:latest"
stage: build
script:
- - git submodule sync --recursive
- - git submodule update --init --recursive
- - ./gradlew clean assembleDebug
+ - ./cleanProject.sh
+ - ./build_deps.sh
+ - ./gradlew clean assembleDebug --stacktrace
artifacts:
paths:
- app/build/outputs/
@@ -72,11 +108,10 @@ build_release:
image: "0xacab.org:4567/leap/bitmask_android/android-ndk:latest"
stage: build
script:
- - git submodule sync --recursive
- - git submodule update --init --recursive
- - ./gradlew clean
- - ./gradlew assembleProductionRelease
- - ./gradlew assembleProductionBeta
+ - ./cleanProject.sh
+ - ./build_deps.sh
+ - ./gradlew assembleProductionRelease --stacktrace
+ - ./gradlew assembleProductionBeta --stacktrace
artifacts:
paths:
- app/build/outputs/