mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-02-20 16:10:44 +01:00
builds: Linux with flutter 3.10
This commit is contained in:
parent
1a8038e51d
commit
d81f92f2e2
@ -31,7 +31,7 @@ code_analyze:
|
|||||||
|
|
||||||
widget_test:
|
widget_test:
|
||||||
stage: test
|
stage: test
|
||||||
script: [ flutter test ]
|
script: [flutter test]
|
||||||
|
|
||||||
# the basic integration test configuration testing FLOSS builds on Synapse
|
# the basic integration test configuration testing FLOSS builds on Synapse
|
||||||
.integration_test:
|
.integration_test:
|
||||||
@ -84,7 +84,6 @@ widget_test:
|
|||||||
- docker
|
- docker
|
||||||
- famedly
|
- famedly
|
||||||
|
|
||||||
|
|
||||||
# integration tests for Linux builds
|
# integration tests for Linux builds
|
||||||
### disabled because of Linux headless issues
|
### disabled because of Linux headless issues
|
||||||
.integration_test_linux:
|
.integration_test_linux:
|
||||||
@ -98,7 +97,7 @@ widget_test:
|
|||||||
- apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev libsecret-1-dev libjsoncpp-dev
|
- apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev libsecret-1-dev libjsoncpp-dev
|
||||||
- flutter pub get
|
- flutter pub get
|
||||||
- flutter test integration_test -d linux --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 -d linux --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 )
|
||||||
after_script: [ ]
|
after_script: []
|
||||||
artifacts:
|
artifacts:
|
||||||
|
|
||||||
# extending the default tests to test the Google-flavored builds
|
# extending the default tests to test the Google-flavored builds
|
||||||
@ -144,7 +143,7 @@ release_mode_launches:
|
|||||||
build_web:
|
build_web:
|
||||||
stage: build
|
stage: build
|
||||||
before_script:
|
before_script:
|
||||||
[ sudo apt update && sudo apt install curl -y, ./scripts/prepare-web.sh ]
|
[sudo apt update && sudo apt install curl -y, ./scripts/prepare-web.sh]
|
||||||
script:
|
script:
|
||||||
- flutter build web --release --verbose --source-maps
|
- flutter build web --release --verbose --source-maps
|
||||||
artifacts:
|
artifacts:
|
||||||
@ -195,7 +194,7 @@ build_windows:
|
|||||||
|
|
||||||
build_android_debug:
|
build_android_debug:
|
||||||
stage: build
|
stage: build
|
||||||
script: [ flutter build apk --debug ]
|
script: [flutter build apk --debug]
|
||||||
artifacts:
|
artifacts:
|
||||||
when: on_success
|
when: on_success
|
||||||
paths:
|
paths:
|
||||||
@ -212,7 +211,7 @@ build_android_apk:
|
|||||||
before_script:
|
before_script:
|
||||||
- git apply ./scripts/enable-android-google-services.patch
|
- git apply ./scripts/enable-android-google-services.patch
|
||||||
- ./scripts/prepare-android-release.sh
|
- ./scripts/prepare-android-release.sh
|
||||||
script: [ flutter build apk --release ]
|
script: [flutter build apk --release]
|
||||||
artifacts:
|
artifacts:
|
||||||
when: on_success
|
when: on_success
|
||||||
paths:
|
paths:
|
||||||
@ -229,7 +228,7 @@ deploy_playstore_internal:
|
|||||||
before_script:
|
before_script:
|
||||||
- git apply ./scripts/enable-android-google-services.patch
|
- git apply ./scripts/enable-android-google-services.patch
|
||||||
- ./scripts/prepare-android-release.sh
|
- ./scripts/prepare-android-release.sh
|
||||||
script: [ ./scripts/release-playstore-beta.sh ]
|
script: [./scripts/release-playstore-beta.sh]
|
||||||
artifacts:
|
artifacts:
|
||||||
when: on_success
|
when: on_success
|
||||||
paths:
|
paths:
|
||||||
@ -284,11 +283,11 @@ pages:
|
|||||||
|
|
||||||
build_linux_x86:
|
build_linux_x86:
|
||||||
stage: build
|
stage: build
|
||||||
image: registry.gitlab.com/famedly/company/frontend/flutter-dockerimages/flutter-linux/stable
|
image: registry.gitlab.com/famedly/company/frontend/flutter-dockerimages/flutter-linux/stable:${FLUTTER_VERSION}
|
||||||
before_script:
|
before_script:
|
||||||
- sudo apt-get update
|
- sudo apt-get update
|
||||||
- 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 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: [ flutter build linux --release -v ]
|
script: [flutter build linux --release -v]
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
- famedly
|
- famedly
|
||||||
@ -310,8 +309,8 @@ build_linux_arm64:
|
|||||||
- cp -R flutter/bin/cache/artifacts/engine/linux-x64/shader_lib /opt/flutter/bin/cache/artifacts/engine/linux-arm64
|
- cp -R flutter/bin/cache/artifacts/engine/linux-x64/shader_lib /opt/flutter/bin/cache/artifacts/engine/linux-arm64
|
||||||
- rm -rf flutter flutter_linux_${FLUTTER_VERSION}-stable.tar.xz
|
- rm -rf flutter flutter_linux_${FLUTTER_VERSION}-stable.tar.xz
|
||||||
- cd ..
|
- cd ..
|
||||||
script: [ flutter build linux --release -v ]
|
script: [flutter build linux --release -v]
|
||||||
tags: [ docker_arm64 ]
|
tags: [docker_arm64]
|
||||||
only:
|
only:
|
||||||
- main
|
- main
|
||||||
- tags
|
- tags
|
||||||
@ -323,7 +322,7 @@ build_linux_arm64:
|
|||||||
|
|
||||||
update_dependencies:
|
update_dependencies:
|
||||||
stage: build
|
stage: build
|
||||||
needs: [ ]
|
needs: []
|
||||||
only:
|
only:
|
||||||
- schedules
|
- schedules
|
||||||
variables:
|
variables:
|
||||||
@ -400,7 +399,7 @@ deploy_playstore:
|
|||||||
before_script:
|
before_script:
|
||||||
- git apply ./scripts/enable-android-google-services.patch
|
- git apply ./scripts/enable-android-google-services.patch
|
||||||
- ./scripts/prepare-android-release.sh
|
- ./scripts/prepare-android-release.sh
|
||||||
script: [ ./scripts/release-playstore.sh ]
|
script: [./scripts/release-playstore.sh]
|
||||||
resource_group: playstore_release
|
resource_group: playstore_release
|
||||||
only:
|
only:
|
||||||
- tags
|
- tags
|
||||||
|
Loading…
x
Reference in New Issue
Block a user