Skip to content

Commit

Permalink
Added support for melos (MaikuB#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaikuB authored Dec 30, 2021
1 parent 6f4571e commit a8abefd
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 17 deletions.
37 changes: 23 additions & 14 deletions .cirrus.yml
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
.packages
.pub/
.idea/
.vscode/
build/
# If you're building an application, you may want to check-in your pubspec.lock
pubspec.lock
Expand Down
4 changes: 2 additions & 2 deletions flutter_appauth/example/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objectVersion = 50;
objects = {

/* Begin PBXBuildFile section */
Expand Down Expand Up @@ -166,7 +166,7 @@
97C146E61CF9000F007C117D /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0910;
LastUpgradeCheck = 1300;
ORGANIZATIONNAME = "The Chromium Authors";
TargetAttributes = {
97C146ED1CF9000F007C117D = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0910"
LastUpgradeVersion = "1300"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
39 changes: 39 additions & 0 deletions melos.yaml
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 .

0 comments on commit a8abefd

Please sign in to comment.