Showing
3 changed files
with
27 additions
and
8 deletions
@@ -53,17 +53,31 @@ format-swift: $(SWFT_SRC) | @@ -53,17 +53,31 @@ format-swift: $(SWFT_SRC) | ||
53 | node_modules: | 53 | node_modules: |
54 | npm install lcov-summary | 54 | npm install lcov-summary |
55 | 55 | ||
56 | -test-pdf: $(FONTS) .coverage | 56 | +get-pdf: |
57 | cd pdf; pub get | 57 | cd pdf; pub get |
58 | + | ||
59 | +get-printing: | ||
60 | + cd printing; flutter packages get | ||
61 | + cd printing/example; flutter packages get | ||
62 | + | ||
63 | +get-readme: | ||
64 | + cd test; flutter packages get | ||
65 | + | ||
66 | +get: get-pdf get-printing get-readme | ||
67 | + | ||
68 | +test-pdf: $(FONTS) get-pdf .coverage | ||
58 | cd pdf; pub global run coverage:collect_coverage --port=$(COV_PORT) -o coverage.json --resume-isolates --wait-paused &\ | 69 | cd pdf; pub global run coverage:collect_coverage --port=$(COV_PORT) -o coverage.json --resume-isolates --wait-paused &\ |
59 | dart --enable-asserts --disable-service-auth-codes --enable-vm-service=$(COV_PORT) --pause-isolates-on-exit test/all_tests.dart | 70 | dart --enable-asserts --disable-service-auth-codes --enable-vm-service=$(COV_PORT) --pause-isolates-on-exit test/all_tests.dart |
60 | cd pdf; pub global run coverage:format_coverage --packages=.packages -i coverage.json --report-on lib --lcov --out lcov.info | 71 | cd pdf; pub global run coverage:format_coverage --packages=.packages -i coverage.json --report-on lib --lcov --out lcov.info |
61 | cd pdf; for EXAMPLE in $(shell cd pdf; find example -name '*.dart'); do dart $$EXAMPLE; done | 72 | cd pdf; for EXAMPLE in $(shell cd pdf; find example -name '*.dart'); do dart $$EXAMPLE; done |
62 | 73 | ||
63 | -test-printing: $(FONTS) .coverage | ||
64 | - cd printing; flutter packages get | 74 | +test-printing: $(FONTS) get-printing .coverage |
65 | cd printing; flutter test --coverage --coverage-path lcov.info | 75 | cd printing; flutter test --coverage --coverage-path lcov.info |
66 | 76 | ||
77 | +test-readme: $(FONTS) get-readme | ||
78 | + cd test; dart extract_readme.dart | ||
79 | + cd test; dartanalyzer readme.dart | ||
80 | + | ||
67 | test: test-pdf test-printing node_modules | 81 | test: test-pdf test-printing node_modules |
68 | cat pdf/lcov.info printing/lcov.info | node_modules/.bin/lcov-summary | 82 | cat pdf/lcov.info printing/lcov.info | node_modules/.bin/lcov-summary |
69 | 83 | ||
@@ -100,10 +114,8 @@ analyze: analyze-pdf analyze-printing | @@ -100,10 +114,8 @@ analyze: analyze-pdf analyze-printing | ||
100 | pub global activate dartfix | 114 | pub global activate dartfix |
101 | touch $@ | 115 | touch $@ |
102 | 116 | ||
103 | -fix: .dartfix | ||
104 | - cd pdf; pub get | 117 | +fix: get .dartfix |
105 | cd pdf; pub global run dartfix:fix --overwrite . | 118 | cd pdf; pub global run dartfix:fix --overwrite . |
106 | - cd printing; flutter packages get | ||
107 | cd printing; pub global run dartfix:fix --overwrite . | 119 | cd printing; pub global run dartfix:fix --overwrite . |
108 | 120 | ||
109 | .PHONY: test format format-dart format-clang clean publish-pdf publish-printing analyze | 121 | .PHONY: test format format-dart format-clang clean publish-pdf publish-printing analyze |
@@ -8,13 +8,16 @@ version: 1.0.0 | @@ -8,13 +8,16 @@ version: 1.0.0 | ||
8 | 8 | ||
9 | environment: | 9 | environment: |
10 | sdk: ">=2.1.0 <3.0.0" | 10 | sdk: ">=2.1.0 <3.0.0" |
11 | + flutter: "^1.2.0" | ||
11 | 12 | ||
12 | dependencies: | 13 | dependencies: |
13 | - pdf: | ||
14 | - printing: | 14 | + flutter: |
15 | + sdk: flutter | ||
15 | markdown: | 16 | markdown: |
16 | meta: | 17 | meta: |
17 | string_scanner: | 18 | string_scanner: |
19 | + pdf: | ||
20 | + printing: | ||
18 | path: | 21 | path: |
19 | image: | 22 | image: |
20 | path_provider: | 23 | path_provider: |
-
Please register or login to post a comment