Compare commits

...

2 Commits

Author SHA1 Message Date
39badb5613
chore(interface): update deps
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-07 17:07:36 +01:00
3b03e05efe
ci: update drone, melos and pre-commit config 2023-01-07 17:05:06 +01:00
6 changed files with 58 additions and 39 deletions

View File

@ -3,15 +3,18 @@ type: docker
name: default
steps:
- name: test:all
image: cirrusci/flutter:stable
- name: quality-check
image: git.wyatt-studio.fr/wyatt-foss/flutter-melos:2.9.0
commands:
- PATH=$PATH:$HOME/.pub-cache/bin
- flutter doctor
- flutter pub global activate melos
- melos bs
- melos run test:all
- melos run quality-check
- melos run publish:validate
- name: publish
image: git.wyatt-studio.fr/wyatt-foss/flutter-melos:2.9.0
commands:
- melos run publish:validate
trigger:
branch:
- master
event:
- push

7
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,7 @@
repos:
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v2.1.1
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: [build, ci, docs, feat, fix, perf, refactor, style, test, chore]

View File

@ -1,6 +1,6 @@
MIT License
Copyright (c) 2022 Hugo Pointcheval
Copyright (c) 2020-2023 Hugo Pointcheval
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View File

@ -1,43 +1,26 @@
name: NativeCrypto
# repository: https://git.pointcheval.fr/NativeCrypto/native-crypto-flutter
packages:
- packages/**
command:
bootstrap:
usePubspecOverrides: true
version:
updateGitTagRefs: true
linkToCommits: false # Gitea not support this
linkToCommits: false # Gitea not yet supported
workspaceChangelog: true
# branch: master
branch: master
scripts:
lint:all:
run: melos run analyze && melos run format
description: Run all static analysis checks.
test:all:
run: |
melos run test --no-select
description: |
Run all tests available.
test:
run: |
melos exec -c 6 --fail-fast -- \
"flutter test --no-pub --no-test-assets"
description: Run `flutter test` for a specific package.
select-package:
dir-exists:
- test
ignore:
- "*web*"
- "*example*"
analyze:
run: |
melos exec -c 10 -- \
flutter analyze --fatal-infos
melos exec -c 1 -- flutter analyze --fatal-infos
description: Run `flutter analyze` for all packages.
format:
@ -52,6 +35,32 @@ scripts:
run: git clean -x -d -f -q
description: Clean things very deeply with `git clean`.
test:selective_unit_test:
run: melos exec -- flutter test --no-pub --coverage
description: Run Flutter tests for a specific package in this project.
select-package:
dir-exists:
- test
ignore:
- '*example*'
test:all:
run: melos run test:selective_unit_test --no-select
description: Run all Flutter tests in this project.
quality-check:
run: |
melos clean && \
melos bootstrap && \
melos run test:all
description: Run all targets generally expected in CI for a full local quality check.
publish:validate:
run: melos publish --diff="origin/$DRONE_COMMIT_BRANCH...HEAD" --yes
# publish:
# run: melos publish --diff="origin/$DRONE_COMMIT_BRANCH...HEAD" --no-dry-run --yes
# Additional cleanup lifecycle script, executed when `melos clean` is run.
postclean: >
melos exec -c 6 -- "flutter clean"

View File

@ -1 +1 @@
include: package:wyatt_analysis/analysis_options.flutter.experimental.yaml
include: package:wyatt_analysis/analysis_options.flutter.yaml

View File

@ -10,16 +10,16 @@ dependencies:
flutter:
sdk: flutter
plugin_platform_interface: ^2.1.2
plugin_platform_interface: ^2.1.3
dev_dependencies:
flutter_test:
sdk: flutter
mockito: ^5.2.0
mockito: ^5.3.2
wyatt_analysis:
git:
url: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages
ref: wyatt_analysis-v2.1.0
path: packages/wyatt_analysis
hosted:
url: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub/
name: wyatt_analysis
version: 2.3.0