Compare commits
	
		
			5 Commits
		
	
	
		
			ff90af47cd
			...
			1e305c75bd
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 1e305c75bd | |||
| 9af76b8e1f | |||
| 5593620181 | |||
| a19d4bc5ce | |||
| 21b18054ba | 
							
								
								
									
										32
									
								
								.drone.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								.drone.yml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,32 @@ | |||||||
|  | # Copyright (C) 2022 WYATT GROUP | ||||||
|  | # Please see the AUTHORS file for details. | ||||||
|  | #  | ||||||
|  | # This program is free software: you can redistribute it and/or modify | ||||||
|  | # it under the terms of the GNU General Public License as published by | ||||||
|  | # the Free Software Foundation, either version 3 of the License, or | ||||||
|  | # any later version. | ||||||
|  | #  | ||||||
|  | # This program is distributed in the hope that it will be useful, | ||||||
|  | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||||
|  | # GNU General Public License for more details. | ||||||
|  | #  | ||||||
|  | # You should have received a copy of the GNU General Public License | ||||||
|  | # along with this program. If not, see <https://www.gnu.org/licenses/>. | ||||||
|  | 
 | ||||||
|  | kind: pipeline | ||||||
|  | type: docker | ||||||
|  | name: build | ||||||
|  | 
 | ||||||
|  | steps: | ||||||
|  | - name: build | ||||||
|  |   image: git.wyatt-studio.fr/wyatt-foss/flutter-melos:2.9.0 | ||||||
|  |   commands: | ||||||
|  |   - melos run quality-check | ||||||
|  |   - melos run publish:validate | ||||||
|  | 
 | ||||||
|  | trigger: | ||||||
|  |   branch: | ||||||
|  |   - master | ||||||
|  |   event: | ||||||
|  |   - push | ||||||
							
								
								
									
										10
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								README.md
									
									
									
									
									
								
							| @ -171,10 +171,16 @@ Note that your issue will be close after merging on master. | |||||||
| Before closing the issue, please check tests and update coverage. You might run : | Before closing the issue, please check tests and update coverage. You might run : | ||||||
| 
 | 
 | ||||||
| ```shell | ```shell | ||||||
| melos run test | melos run test:all # this will run all tests in this project | ||||||
| melos run gen_coverage | melos run gen-coverage # this will generate coverage report | ||||||
|  | melos run gen-class-models # this will generate plantuml class diagrams | ||||||
|  | melos run quality-check # this will run all targets generally expected in CI | ||||||
|  | melos run publish:validate # this will run a validation before publish packages | ||||||
|  | melos run publish # this will publish packages | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
|  | > Note that only modified package will be verified and published. | ||||||
|  | 
 | ||||||
| #### Merge your work | #### Merge your work | ||||||
| 
 | 
 | ||||||
| After closing your issue, some work may have been done on master in the meantime. To keep a clean git history, please rebase before opening a change request. | After closing your issue, some work may have been done on master in the meantime. To keep a clean git history, please rebase before opening a change request. | ||||||
|  | |||||||
							
								
								
									
										31
									
								
								melos.yaml
									
									
									
									
									
								
							
							
						
						
									
										31
									
								
								melos.yaml
									
									
									
									
									
								
							| @ -21,8 +21,7 @@ scripts: | |||||||
| 
 | 
 | ||||||
|   analyze: |   analyze: | ||||||
|     run: | |     run: | | ||||||
|       melos exec -c 10 -- \ |       melos exec -c 1 -- flutter analyze --fatal-infos | ||||||
|         flutter analyze --fatal-infos |  | ||||||
|     description: Run `flutter analyze` for all packages. |     description: Run `flutter analyze` for all packages. | ||||||
| 
 | 
 | ||||||
|   format: |   format: | ||||||
| @ -38,18 +37,38 @@ scripts: | |||||||
|     description: Clean things very deeply with `git clean`. |     description: Clean things very deeply with `git clean`. | ||||||
| 
 | 
 | ||||||
|   test:selective_unit_test: |   test:selective_unit_test: | ||||||
|     run: melos exec --dir-exists="test" -- flutter test --no-pub --coverage |     run: melos exec -- flutter test --no-pub --coverage | ||||||
|     description: Run Flutter tests for a specific package in this project. |     description: Run Flutter tests for a specific package in this project. | ||||||
|     select-package: |     select-package: | ||||||
|       flutter: true |       dir-exists: | ||||||
|  |         - test | ||||||
|  |       ignore: | ||||||
|  |         - '*example*' | ||||||
| 
 | 
 | ||||||
|   test: |   test:all: | ||||||
|     run: melos run test:selective_unit_test --no-select |     run: melos run test:selective_unit_test --no-select | ||||||
|     description: Run all Flutter tests in this project. |     description: Run all Flutter tests in this project. | ||||||
| 
 | 
 | ||||||
|   gen-coverage: melos exec -- sh "\$MELOS_ROOT_PATH/combine_coverage.sh" && genhtml coverage/lcov.info -o coverage/html |   gen-coverage: melos exec -- sh "\$MELOS_ROOT_PATH/combine_coverage.sh" && genhtml coverage/lcov.info -o coverage/html | ||||||
| 
 | 
 | ||||||
|   gen-class-models: melos exec --scope="*wyatt_*" -- dart pub global run dcdg -o models/class-models.puml |   gen-class-models:  | ||||||
|  |     run: melos exec -- dart pub global run dcdg -o models/class-models.puml | ||||||
|  |     select-package: | ||||||
|  |       ignore: | ||||||
|  |         - '*example*' | ||||||
|  | 
 | ||||||
|  |   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. |   # Additional cleanup lifecycle script, executed when `melos clean` is run. | ||||||
|   postclean: > |   postclean: > | ||||||
|  | |||||||
| @ -1,17 +0,0 @@ | |||||||
| // Copyright (C) 2022 WYATT GROUP |  | ||||||
| // Please see the AUTHORS file for details. |  | ||||||
| // |  | ||||||
| // This program is free software: you can redistribute it and/or modify |  | ||||||
| // it under the terms of the GNU General Public License as published by |  | ||||||
| // the Free Software Foundation, either version 3 of the License, or |  | ||||||
| // any later version. |  | ||||||
| // |  | ||||||
| // This program is distributed in the hope that it will be useful, |  | ||||||
| // but WITHOUT ANY WARRANTY; without even the implied warranty of |  | ||||||
| // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |  | ||||||
| // GNU General Public License for more details. |  | ||||||
| // |  | ||||||
| // You should have received a copy of the GNU General Public License |  | ||||||
| // along with this program. If not, see <https://www.gnu.org/licenses/>. |  | ||||||
| 
 |  | ||||||
| // Nothing to test as there is no logic in this package. |  | ||||||
| @ -1,17 +0,0 @@ | |||||||
| // Copyright (C) 2022 WYATT GROUP |  | ||||||
| // Please see the AUTHORS file for details. |  | ||||||
| // |  | ||||||
| // This program is free software: you can redistribute it and/or modify |  | ||||||
| // it under the terms of the GNU General Public License as published by |  | ||||||
| // the Free Software Foundation, either version 3 of the License, or |  | ||||||
| // any later version. |  | ||||||
| // |  | ||||||
| // This program is distributed in the hope that it will be useful, |  | ||||||
| // but WITHOUT ANY WARRANTY; without even the implied warranty of |  | ||||||
| // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |  | ||||||
| // GNU General Public License for more details. |  | ||||||
| // |  | ||||||
| // You should have received a copy of the GNU General Public License |  | ||||||
| // along with this program. If not, see <https://www.gnu.org/licenses/>. |  | ||||||
| 
 |  | ||||||
| // TODO(wyatt): Add some tests |  | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user