mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-23 22:12:34 +01:00
fix: CI scripts
This commit is contained in:
parent
a791831e6d
commit
46b886ffc1
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
#!/bin/sh -ve
|
||||
flutter channel stable
|
||||
flutter upgrade
|
||||
flutter pub get
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
#!/bin/sh -ve
|
||||
flutter channel stable
|
||||
flutter upgrade
|
||||
flutter build apk --debug -v
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
#!/bin/sh -ve
|
||||
flutter channel stable
|
||||
flutter upgrade
|
||||
flutter clean
|
||||
@ -7,4 +7,4 @@ cd ios
|
||||
pod install
|
||||
pod update
|
||||
cd ..
|
||||
flutter build ios --release
|
||||
flutter build ios --release
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
#!/bin/sh -ve
|
||||
flutter channel dev
|
||||
flutter upgrade
|
||||
flutter config --enable-linux-desktop
|
||||
flutter clean
|
||||
flutter pub get
|
||||
flutter build linux --release -v
|
||||
flutter build linux --release -v
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
#!/bin/sh -ve
|
||||
flutter channel dev
|
||||
flutter upgrade
|
||||
flutter config --enable-macos-desktop
|
||||
@ -8,4 +8,4 @@ cd macos
|
||||
pod install
|
||||
pod update
|
||||
cd ..
|
||||
flutter build macos --release
|
||||
flutter build macos --release
|
||||
|
@ -1,8 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
#!/bin/sh -ve
|
||||
'curl -L $(curl -H "X-Ubuntu-Series: 16" "https://api.snapcraft.io/api/v1/snaps/details/flutter?channel=latest/stable" | jq ".download_url" -r) --output flutter.snap'
|
||||
sudo mkdir -p /snap/flutter
|
||||
sudo unsquashfs -d /snap/flutter/current flutter.snap
|
||||
rm -f flutter.snap
|
||||
sudo ln -sf /snap/flutter/current/flutter.sh /snap/bin/flutter
|
||||
sudo ln -sf /snap/flutter/current/env.sh /snap/bin/env.sh
|
||||
snapcraft
|
||||
snapcraft
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
#!/bin/sh -ve
|
||||
flutter channel beta
|
||||
flutter upgrade
|
||||
flutter config --enable-web
|
||||
|
@ -1,3 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
#!/bin/sh -ve
|
||||
flutter format lib/ test/ test_driver/ --set-exit-if-changed
|
||||
flutter analyze
|
||||
flutter analyze
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
#!/bin/sh -ve
|
||||
|
||||
# source: https://about.gitlab.com/blog/2017/09/05/how-to-automatically-create-a-new-mr-on-gitlab-with-gitlab-ci/
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
#!/bin/sh -ve
|
||||
cd android
|
||||
echo $FDROID_KEY | base64 --decode --ignore-garbage > key.jks
|
||||
echo "storePassword=${FDROID_KEY_PASS}" >> key.properties
|
||||
@ -11,4 +11,4 @@ bundle update fastlane
|
||||
bundle exec fastlane set_build_code_internal
|
||||
cd app
|
||||
echo $GOOGLE_SERVICES >> google-services.json
|
||||
cd ../..
|
||||
cd ../..
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/bin/sh -ve
|
||||
rm -r assets/js/package
|
||||
cd assets/js/ && curl -L 'https://gitlab.com/famedly/libraries/olm/-/jobs/artifacts/master/download?job=build_js' > olm.zip && cd ../../
|
||||
cd assets/js/ && unzip olm.zip && cd ../../
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
#!/bin/sh -ve
|
||||
/bin/bash ./scripts/build-snap.sh
|
||||
echo $SNAPCRAFT_LOGIN_FILE | base64 --decode --ignore-garbage > snapcraft.login
|
||||
snapcraft login --with snapcraft.login
|
||||
snapcraft push --release=edge *.snap
|
||||
snapcraft logout
|
||||
snapcraft logout
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
#!/bin/sh -ve
|
||||
/bin/bash ./scripts/build-snap.sh
|
||||
echo $SNAPCRAFT_LOGIN_FILE | base64 --decode --ignore-garbage > snapcraft.login
|
||||
snapcraft login --with snapcraft.login
|
||||
snapcraft push --release=stable *.snap
|
||||
snapcraft logout
|
||||
snapcraft logout
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
#!/bin/sh -ve
|
||||
flutter channel stable
|
||||
flutter upgrade
|
||||
flutter pub get
|
||||
@ -7,4 +7,4 @@ mkdir -p build/android
|
||||
cp build/app/outputs/bundle/release/app-release.aab build/android/
|
||||
cd android
|
||||
bundle exec fastlane deploy_internal_test
|
||||
cd ..
|
||||
cd ..
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
#!/bin/sh -ve
|
||||
cd android
|
||||
bundle install
|
||||
bundle update fastlane
|
||||
echo $PLAYSTORE_DEPLOY_KEY >> keys.json
|
||||
bundle exec fastlane deploy_release
|
||||
cd ..
|
||||
cd ..
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
#!/bin/sh -ve
|
||||
flutter pub global activate changelog
|
||||
export PATH="$PATH":"$HOME/development/flutter/.pub-cache/bin"
|
||||
changelog -c
|
||||
changelog -c
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
#!/bin/sh -ve
|
||||
flutter pub get
|
||||
flutter pub pub run dapackages:dapackages.dart ./pubspec.yaml
|
||||
flutter pub get
|
||||
flutter pub get
|
||||
|
Loading…
Reference in New Issue
Block a user