forked from MaikuB/flutter_appauth
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for melos (MaikuB#283)
- Loading branch information
Showing
5 changed files
with
66 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,39 @@ | ||
task: | ||
name: Run platform interface tests | ||
name: Run all unit tests | ||
container: | ||
image: cirrusci/flutter:stable | ||
pub_cache: | ||
folder: ~/.pub-cache | ||
build_script: | ||
- cd flutter_appauth_platform_interface | ||
- flutter test | ||
install_melos_script: | ||
- dart pub global activate melos | ||
test_script: | ||
- export PATH="$PATH":"$HOME/.pub-cache/bin" | ||
- melos bootstrap | ||
- melos run test:unit --no-select | ||
|
||
task: | ||
name: Build Android example | ||
name: Build Android example app | ||
container: | ||
image: cirrusci/flutter:stable | ||
pub_cache: | ||
folder: ~/.pub-cache | ||
install_melos_script: | ||
- dart pub global activate melos | ||
build_script: | ||
- cd flutter_appauth/example | ||
- flutter build appbundle | ||
- export PATH="$PATH":"$HOME/.pub-cache/bin" | ||
- melos bootstrap | ||
- melos run build:example_android | ||
|
||
task: | ||
name: Build iOS example | ||
name: Build iOS example app | ||
osx_instance: | ||
image: catalina-flutter | ||
image: monterey-xcode | ||
pub_cache: | ||
folder: ~/.pub-cache | ||
build_script: | ||
upgrade_script: | ||
- flutter channel stable | ||
- flutter upgrade | ||
- cd flutter_appauth/example | ||
- flutter build ios --no-codesign | ||
install_melos_script: | ||
- dart pub global activate melos | ||
build_script: | ||
- export PATH="$PATH":"$HOME/.pub-cache/bin" | ||
- melos bootstrap | ||
- melos run build:example_ios |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
flutter_appauth/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: flutter_appauth | ||
repository: https://github.com/MaikuB/flutter_appauth | ||
packages: | ||
- flutter_appauth/* | ||
- flutter_appauth_platform_interface/* | ||
- "**/example/*" | ||
|
||
ide: | ||
intellij: false | ||
|
||
scripts: | ||
analyze: | ||
run: melos exec -c 1 -- "dart analyze . --fatal-infos" | ||
description: Run dart analyzer in a specific package. | ||
test:unit: | ||
description: Run unit tests in a specific package. | ||
run: melos exec --concurrency=1 -- "flutter test" | ||
select-package: | ||
dir-exists: | ||
- test | ||
build:example_android: | ||
run: | | ||
melos exec -c 1 -- \ | ||
"flutter build apk" | ||
description: Build a specific example app for Android. | ||
select-package: | ||
dir-exists: | ||
- android | ||
scope: "*example*" | ||
build:example_ios: | ||
run: | | ||
melos exec -c 1 -- \ | ||
"flutter build ios --no-codesign" | ||
description: Build a specific example app for iOS. | ||
select-package: | ||
dir-exists: | ||
- ios | ||
scope: "*example*" | ||
format: dart format -o write . |