ci: Disable most integration tests

This commit is contained in:
Krille 2023-01-13 08:23:44 +00:00
parent b76f270e24
commit d6919d4e0d

View File

@ -1,9 +1,8 @@
variables: variables:
FLUTTER_VERSION: 3.3.9 FLUTTER_VERSION: 3.3.10
image: image:
name: cirrusci/flutter:${FLUTTER_VERSION} name: cirrusci/flutter:${FLUTTER_VERSION}
pull_policy: if-not-present
.shared_windows_runners: .shared_windows_runners:
tags: tags:
@ -22,16 +21,12 @@ code_analyze:
artifacts: artifacts:
reports: reports:
codequality: code-quality-report.json codequality: code-quality-report.json
tags:
- docker
- famedly
widget_test: widget_test:
stage: test stage: test
script: [ flutter test ] script: [ flutter test ]
tags:
- docker
- famedly
# the basic integration test configuration testing FLOSS builds on Synapse # the basic integration test configuration testing FLOSS builds on Synapse
integration_test: integration_test:
@ -44,8 +39,8 @@ integration_test:
matrix: matrix:
- HOMESERVER_IMPLEMENTATION: - HOMESERVER_IMPLEMENTATION:
- synapse - synapse
- dendrite #- dendrite
- conduit #- conduit
variables: variables:
# activate container-to-container networking # activate container-to-container networking
FF_NETWORK_PER_BUILD: "true" FF_NETWORK_PER_BUILD: "true"
@ -97,7 +92,7 @@ integration_test:
artifacts: artifacts:
# extending the default tests to test the Google-flavored builds # extending the default tests to test the Google-flavored builds
integration_test_proprietary: .integration_test_proprietary:
extends: integration_test extends: integration_test
script: script:
# start AVD and keep running in background # start AVD and keep running in background
@ -107,7 +102,7 @@ integration_test_proprietary:
- scrcpy --no-display --record video.mkv & - scrcpy --no-display --record video.mkv &
- flutter test integration_test --dart-define=HOMESERVER=$HOMESERVER --dart-define=USER1_NAME=$USER1_NAME --dart-define=USER2_NAME=$USER2_NAME --dart-define=USER1_PW=$USER1_PW --dart-define=USER2_PW=$USER2_PW || ( sleep 10 && exit 1 ) - flutter test integration_test --dart-define=HOMESERVER=$HOMESERVER --dart-define=USER1_NAME=$USER1_NAME --dart-define=USER2_NAME=$USER2_NAME --dart-define=USER1_PW=$USER1_PW --dart-define=USER2_PW=$USER2_PW || ( sleep 10 && exit 1 )
release_mode_launches: .release_mode_launches:
parallel: parallel:
matrix: matrix:
- FLAVOR: - FLAVOR:
@ -138,9 +133,7 @@ build_web:
artifacts: artifacts:
paths: paths:
- build/web/ - build/web/
tags:
- docker
- famedly
# yes, we *do* build a Windows DLL on Linux. More reliable. # yes, we *do* build a Windows DLL on Linux. More reliable.
build_olm_windows: build_olm_windows:
@ -192,9 +185,7 @@ build_android_debug:
except: except:
- main - main
- tags - tags
tags:
- docker
- famedly
build_android_apk: build_android_apk:
stage: build stage: build
@ -206,9 +197,7 @@ build_android_apk:
when: on_success when: on_success
paths: paths:
- build/android/app-release.apk - build/android/app-release.apk
tags:
- docker
- famedly
only: only:
- main - main
- tags - tags
@ -224,9 +213,7 @@ deploy_playstore_internal:
paths: paths:
- build/android/app-release.aab - build/android/app-release.aab
resource_group: playstore_release resource_group: playstore_release
tags:
- docker
- famedly
only: only:
- main - main
@ -245,9 +232,7 @@ fdroid_repo:
needs: needs:
- "build_android_apk" - "build_android_apk"
resource_group: playstore_release resource_group: playstore_release
tags:
- docker
- famedly
allow_failure: true allow_failure: true
only: only:
- main - main
@ -286,9 +271,7 @@ build_linux_x86:
sudo apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install keyboard-configuration -y && sudo apt-get install curl clang cmake ninja-build pkg-config libgtk-3-dev libblkid-dev liblzma-dev libjsoncpp-dev cmake-data libsecret-1-dev libsecret-1-0 librhash0 -y, sudo apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install keyboard-configuration -y && sudo apt-get install curl clang cmake ninja-build pkg-config libgtk-3-dev libblkid-dev liblzma-dev libjsoncpp-dev cmake-data libsecret-1-dev libsecret-1-0 librhash0 -y,
] ]
script: [ ./scripts/build-linux.sh ] script: [ ./scripts/build-linux.sh ]
tags:
- docker
- famedly
artifacts: artifacts:
when: on_success when: on_success
paths: paths:
@ -337,9 +320,7 @@ update_dependencies:
.release: .release:
stage: deploy stage: deploy
image: curlimages/curl:latest image: curlimages/curl:latest
tags:
- docker
- famedly
rules: rules:
- if: '$CI_COMMIT_TAG =~ /^v\d+\.\d+\.\d+$/' - if: '$CI_COMMIT_TAG =~ /^v\d+\.\d+\.\d+$/'
- if: '$CI_COMMIT_TAG =~ /^rc\d+\.\d+\.\d+-\d+$/' - if: '$CI_COMMIT_TAG =~ /^rc\d+\.\d+\.\d+-\d+$/'