fix: CI scripts

This commit is contained in:
Christian Pauly 2020-12-08 14:46:47 +00:00
parent a791831e6d
commit 46b886ffc1
17 changed files with 29 additions and 29 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/sh -ve
flutter channel stable
flutter upgrade
flutter pub get

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/sh -ve
flutter channel stable
flutter upgrade
flutter build apk --debug -v

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/sh -ve
flutter channel beta
flutter upgrade
flutter config --enable-web

View File

@ -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

View File

@ -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/

View File

@ -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 ../..

View File

@ -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 ../../

View File

@ -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

View File

@ -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

View File

@ -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 ..

View File

@ -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 ..

View File

@ -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

View File

@ -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