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 channel stable
flutter upgrade flutter upgrade
flutter pub get flutter pub get

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
#!/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' '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 mkdir -p /snap/flutter
sudo unsquashfs -d /snap/flutter/current flutter.snap sudo unsquashfs -d /snap/flutter/current flutter.snap

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash #!/bin/sh -ve
flutter channel beta flutter channel beta
flutter upgrade flutter upgrade
flutter config --enable-web 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 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/ # 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 cd android
echo $FDROID_KEY | base64 --decode --ignore-garbage > key.jks echo $FDROID_KEY | base64 --decode --ignore-garbage > key.jks
echo "storePassword=${FDROID_KEY_PASS}" >> key.properties echo "storePassword=${FDROID_KEY_PASS}" >> key.properties

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/sh -ve
rm -r assets/js/package 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/ && 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 ../../ cd assets/js/ && unzip olm.zip && cd ../../

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash #!/bin/sh -ve
/bin/bash ./scripts/build-snap.sh /bin/bash ./scripts/build-snap.sh
echo $SNAPCRAFT_LOGIN_FILE | base64 --decode --ignore-garbage > snapcraft.login echo $SNAPCRAFT_LOGIN_FILE | base64 --decode --ignore-garbage > snapcraft.login
snapcraft login --with snapcraft.login snapcraft login --with snapcraft.login

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash #!/bin/sh -ve
/bin/bash ./scripts/build-snap.sh /bin/bash ./scripts/build-snap.sh
echo $SNAPCRAFT_LOGIN_FILE | base64 --decode --ignore-garbage > snapcraft.login echo $SNAPCRAFT_LOGIN_FILE | base64 --decode --ignore-garbage > snapcraft.login
snapcraft login --with snapcraft.login snapcraft login --with snapcraft.login

View File

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

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash #!/bin/sh -ve
cd android cd android
bundle install bundle install
bundle update fastlane bundle update fastlane

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash #!/bin/sh -ve
flutter pub global activate changelog flutter pub global activate changelog
export PATH="$PATH":"$HOME/development/flutter/.pub-cache/bin" 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 get
flutter pub pub run dapackages:dapackages.dart ./pubspec.yaml flutter pub pub run dapackages:dapackages.dart ./pubspec.yaml
flutter pub get flutter pub get