refactor: CI scripts and old workarounds for build scripts

This commit is contained in:
Krille 2023-03-19 07:44:02 +01:00
commit 46ff21a475
7 changed files with 33 additions and 48 deletions

View file

@ -1,5 +0,0 @@
#!/usr/bin/env bash
flutter pub get
flutter build apk --release
mkdir -p build/android
cp build/app/outputs/apk/release/app-release.apk build/android/

View file

@ -1,2 +0,0 @@
#!/usr/bin/env bash
flutter build apk --debug

View file

@ -1,5 +0,0 @@
#!/bin/sh -ve
flutter config --enable-linux-desktop
flutter clean
flutter pub get
flutter build linux --release -v

View file

@ -1,9 +0,0 @@
#!/bin/sh -ve
flutter config --enable-macos-desktop
flutter clean
flutter pub get
cd macos
pod install
pod update
cd ..
flutter build macos --release

View file

@ -1,7 +0,0 @@
#!/bin/sh -ve
flutter config --enable-web
flutter clean
flutter pub get
flutter build web --release --verbose --source-maps
# bug of the Flutter engine
chmod +r -R build/web

View file

@ -1,8 +0,0 @@
#!/bin/sh -ve
flutter pub get
flutter pub run import_sorter:main --no-comments --exit-if-changed
flutter format lib/ test/ --set-exit-if-changed
git apply ./scripts/enable-android-google-services.patch
flutter pub get
flutter analyze
flutter pub run dart_code_metrics:metrics lib -r gitlab > code-quality-report.json || true