From 46b886ffc1822d1bbac11328e8d7c1e6ae1d6938 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Tue, 8 Dec 2020 14:46:47 +0000 Subject: [PATCH] fix: CI scripts --- scripts/build-android-apk.sh | 2 +- scripts/build-android-debug.sh | 2 +- scripts/build-ios.sh | 4 ++-- scripts/build-linux.sh | 4 ++-- scripts/build-macos.sh | 4 ++-- scripts/build-snap.sh | 4 ++-- scripts/build-web.sh | 2 +- scripts/code_analyze.sh | 4 ++-- scripts/open-mr.sh | 2 +- scripts/prepare-android-release.sh | 4 ++-- scripts/prepare-web.sh | 2 +- scripts/publish-snap-edge.sh | 4 ++-- scripts/publish-snap-stable.sh | 4 ++-- scripts/release-playstore-beta.sh | 4 ++-- scripts/release-playstore.sh | 4 ++-- scripts/update-changelog.sh | 4 ++-- scripts/update-dependencies.sh | 4 ++-- 17 files changed, 29 insertions(+), 29 deletions(-) diff --git a/scripts/build-android-apk.sh b/scripts/build-android-apk.sh index 3dfb4e02..33d87436 100755 --- a/scripts/build-android-apk.sh +++ b/scripts/build-android-apk.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/sh -ve flutter channel stable flutter upgrade flutter pub get diff --git a/scripts/build-android-debug.sh b/scripts/build-android-debug.sh index a361afd6..38134d66 100755 --- a/scripts/build-android-debug.sh +++ b/scripts/build-android-debug.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/sh -ve flutter channel stable flutter upgrade flutter build apk --debug -v diff --git a/scripts/build-ios.sh b/scripts/build-ios.sh index 9bb4f362..d2b0515d 100755 --- a/scripts/build-ios.sh +++ b/scripts/build-ios.sh @@ -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 \ No newline at end of file +flutter build ios --release diff --git a/scripts/build-linux.sh b/scripts/build-linux.sh index b4aaa8cb..879dea8e 100755 --- a/scripts/build-linux.sh +++ b/scripts/build-linux.sh @@ -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 \ No newline at end of file +flutter build linux --release -v diff --git a/scripts/build-macos.sh b/scripts/build-macos.sh index f110fa52..c1dc2948 100755 --- a/scripts/build-macos.sh +++ b/scripts/build-macos.sh @@ -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 \ No newline at end of file +flutter build macos --release diff --git a/scripts/build-snap.sh b/scripts/build-snap.sh index 9d6e4488..6a3dd823 100755 --- a/scripts/build-snap.sh +++ b/scripts/build-snap.sh @@ -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 \ No newline at end of file +snapcraft diff --git a/scripts/build-web.sh b/scripts/build-web.sh index 787c07d3..d6e11a16 100755 --- a/scripts/build-web.sh +++ b/scripts/build-web.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/sh -ve flutter channel beta flutter upgrade flutter config --enable-web diff --git a/scripts/code_analyze.sh b/scripts/code_analyze.sh index d3ba7b60..54a76755 100755 --- a/scripts/code_analyze.sh +++ b/scripts/code_analyze.sh @@ -1,3 +1,3 @@ -#!/usr/bin/env bash +#!/bin/sh -ve flutter format lib/ test/ test_driver/ --set-exit-if-changed -flutter analyze \ No newline at end of file +flutter analyze diff --git a/scripts/open-mr.sh b/scripts/open-mr.sh index d2d4b7d3..e79dcd82 100755 --- a/scripts/open-mr.sh +++ b/scripts/open-mr.sh @@ -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/ diff --git a/scripts/prepare-android-release.sh b/scripts/prepare-android-release.sh index 5fa4c285..195e40c9 100755 --- a/scripts/prepare-android-release.sh +++ b/scripts/prepare-android-release.sh @@ -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 ../.. \ No newline at end of file +cd ../.. diff --git a/scripts/prepare-web.sh b/scripts/prepare-web.sh index 2ec48bf5..65703111 100755 --- a/scripts/prepare-web.sh +++ b/scripts/prepare-web.sh @@ -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 ../../ diff --git a/scripts/publish-snap-edge.sh b/scripts/publish-snap-edge.sh index 3b5779d4..08ad0003 100755 --- a/scripts/publish-snap-edge.sh +++ b/scripts/publish-snap-edge.sh @@ -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 \ No newline at end of file +snapcraft logout diff --git a/scripts/publish-snap-stable.sh b/scripts/publish-snap-stable.sh index fb58971f..090f0e69 100755 --- a/scripts/publish-snap-stable.sh +++ b/scripts/publish-snap-stable.sh @@ -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 \ No newline at end of file +snapcraft logout diff --git a/scripts/release-playstore-beta.sh b/scripts/release-playstore-beta.sh index c728a9e3..7b7a6305 100755 --- a/scripts/release-playstore-beta.sh +++ b/scripts/release-playstore-beta.sh @@ -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 .. \ No newline at end of file +cd .. diff --git a/scripts/release-playstore.sh b/scripts/release-playstore.sh index 8d5633ce..c72318a5 100755 --- a/scripts/release-playstore.sh +++ b/scripts/release-playstore.sh @@ -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 .. \ No newline at end of file +cd .. diff --git a/scripts/update-changelog.sh b/scripts/update-changelog.sh index f513e45e..9bfab7f5 100755 --- a/scripts/update-changelog.sh +++ b/scripts/update-changelog.sh @@ -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 \ No newline at end of file +changelog -c diff --git a/scripts/update-dependencies.sh b/scripts/update-dependencies.sh index 7fd1f649..02198768 100755 --- a/scripts/update-dependencies.sh +++ b/scripts/update-dependencies.sh @@ -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 \ No newline at end of file +flutter pub get