Skip to content

Instantly share code, notes, and snippets.

@TechIsFun
Created March 18, 2020 14:17
Show Gist options
  • Save TechIsFun/fffca5662de11ccbe03593e9bc4a1cba to your computer and use it in GitHub Desktop.
Save TechIsFun/fffca5662de11ccbe03593e9bc4a1cba to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
############
# https://github.com/microsoft/appcenter/blob/master/sample-build-scripts/flutter/ios-build/appcenter-post-clone.sh
###########
# fail if any command fails
set -e
# debug log
set -x
cd ..
git clone -b beta https://github.com/flutter/flutter.git
export PATH=`pwd`/flutter/bin:$PATH
flutter channel stable
flutter doctor
echo "Installed flutter to `pwd`/flutter"
# execute tests
flutter test
# build
flutter build ios --release --no-codesign
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment