Skip to content

Commit

Permalink
made further changes to match updated melos 3 updates
Browse files Browse the repository at this point in the history
  • Loading branch information
MaikuB committed Apr 15, 2023
1 parent 455fd80 commit a42ff75
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ task:
test_script:
- export PATH="$PATH":"$HOME/.pub-cache/bin"
- melos bootstrap
- melos run test:unit
- melos run test:unit --no-select

task:
name: Run all unit tests (Android)
Expand Down
23 changes: 11 additions & 12 deletions melos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: flutter_local_notifications
repository: https://github.com/MaikuB/flutter_local_notifications
packages:
- "**"
- "**/example/*"

command:
bootstrap:
Expand All @@ -14,7 +13,7 @@ ide:

scripts:
analyze:
run: melos exec -c 1 -- "dart analyze . --fatal-infos"
run: melos exec -- "dart analyze . --fatal-infos"
description: Run dart analyzer in a specific package.
test:unit:
description: Run unit tests in a specific package.
Expand All @@ -26,48 +25,48 @@ scripts:
- "*example*"
test:unit:android:
description: Runs java unit tests
run: melos exec -c 1 -- "flutter build apk --debug && cd android && ./gradlew flutter_local_notifications:testDebug"
run: melos exec -- "flutter build apk --debug && cd android && ./gradlew flutter_local_notifications:testDebug"
packageFilters:
scope: "*example*"
test:integration:
run: melos exec -c 1 -- "flutter test integration_test"
run: melos exec -- "flutter test integration_test"
description: Run integration tests
packageFilters:
dirExists:
- integration_test
scope: "*example*"
build:example_android:
run: |
melos exec -c 1 --scope="*example*" -- \
"flutter build apk --debug"
melos exec -- "flutter build apk --debug"
description: Build a specific example app for Android.
packageFilters:
dirExists:
- android
scope: "*example*"
build:example_ios:
run: |
melos exec -c 1 --scope="*example*" -- \
"flutter build ios --no-codesign --debug"
melos exec -- "flutter build ios --no-codesign --debug"
description: Build a specific example app for iOS.
packageFilters:
dirExists:
- ios
scope: "*example*"
build:example_macos:
run: |
melos exec -c 1 --scope="*example*" -- \
"flutter build macos"
melos exec -- "flutter build macos"
description: Build a specific example app for macOS.
packageFilters:
dirExists:
- macos
scope: "*example*"
build:example_linux:
run: |
melos exec -c 1 --scope="*example*" -- \
"flutter build linux"
melos exec -- "flutter build linux"
description: Build a specific example app for Linux.
packageFilters:
dirExists:
- linux
scope: "*example*"

clean:
run: git clean -x -d -f -q
Expand Down

0 comments on commit a42ff75

Please sign in to comment.