Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
dart_pdf
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
David PHAM-VAN
2019-06-15 10:29:59 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a5c35a0885485a3d2a23cbf497aeb3e1fc300344
a5c35a08
1 parent
5f6123a3
Improve Makefile
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
8 deletions
.gitignore
Makefile
test/pubspec.yaml
.gitignore
View file @
a5c35a0
...
...
@@ -38,3 +38,7 @@ pdf/coverage.json
.coverage
package-lock.json
printing/lcov.info
test/readme.dart
test/android
test/ios
...
...
Makefile
View file @
a5c35a0
...
...
@@ -53,17 +53,31 @@ format-swift: $(SWFT_SRC)
node_modules
:
npm install lcov-summary
test-pdf
:
$(FONTS) .coverage
get-pdf
:
cd
pdf; pub get
get-printing
:
cd
printing; flutter packages get
cd
printing/example; flutter packages get
get-readme
:
cd test
; flutter packages get
get
:
get-pdf get-printing get-readme
test-pdf
:
$(FONTS) get-pdf .coverage
cd
pdf; pub global run coverage:collect_coverage --port
=
$(COV_PORT)
-o coverage.json --resume-isolates --wait-paused &
\
dart --enable-asserts --disable-service-auth-codes --enable-vm-service
=
$(COV_PORT)
--pause-isolates-on-exit
test
/all_tests.dart
cd
pdf; pub global run coverage:format_coverage --packages
=
.packages -i coverage.json --report-on lib --lcov --out lcov.info
cd
pdf;
for
EXAMPLE
in
$(
shell
cd
pdf; find example -name
'*.dart'
)
;
do
dart
$$
EXAMPLE;
done
test-printing
:
$(FONTS) .coverage
cd
printing; flutter packages get
test-printing
:
$(FONTS) get-printing .coverage
cd
printing; flutter
test
--coverage --coverage-path lcov.info
test-readme
:
$(FONTS) get-readme
cd test
; dart extract_readme.dart
cd test
; dartanalyzer readme.dart
test
:
test-pdf test-printing node_modules
cat pdf/lcov.info printing/lcov.info | node_modules/.bin/lcov-summary
...
...
@@ -100,10 +114,8 @@ analyze: analyze-pdf analyze-printing
pub global activate dartfix
touch
$@
fix
:
.dartfix
cd
pdf; pub get
fix
:
get .dartfix
cd
pdf; pub global run dartfix:fix --overwrite .
cd
printing; flutter packages get
cd
printing; pub global run dartfix:fix --overwrite .
.PHONY
:
test format format-dart format-clang clean publish-pdf publish-printing analyze
...
...
test/pubspec.yaml
View file @
a5c35a0
...
...
@@ -8,13 +8,16 @@ version: 1.0.0
environment
:
sdk
:
"
>=2.1.0
<3.0.0"
flutter
:
"
^1.2.0"
dependencies
:
pdf
:
printing
:
flutter
:
sdk
:
flutter
markdown
:
meta
:
string_scanner
:
pdf
:
printing
:
path
:
image
:
path_provider
:
...
...
Please
register
or
login
to post a comment