Skip to content

Commit 9baa263

Browse files
committed
Update scripts
1 parent c41d033 commit 9baa263

8 files changed

Lines changed: 28 additions & 26 deletions

File tree

scripts/benchmark.bat

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ call dart test -p vm || goto :error
44
if not exist "build" mkdir build || goto :error
55
call dart compile exe .\benchmark\benchmark.dart -o .\build\benchmark.exe || goto :error
66
call .\build\benchmark.exe BENCHMARK.md || goto :error
7+
8+
call echo|set /p="> All benchmarks are done on _AMD Ryzen 7 5800X_ processor and _3200MHz_ RAM using compiled _exe_">> BENCHMARK.md
9+
call echo.>> BENCHMARK.md
710
call echo|set /p=">">> BENCHMARK.md
11+
call echo.>> BENCHMARK.md
812
call echo|set /p="> ">> BENCHMARK.md
913
call dart --version >> BENCHMARK.md
1014

scripts/benchmark.sh

100644100755
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
#!/bin/sh
22
set -ex
3+
34
dart test -p vm
45
mkdir -p build
56
dart compile exe ./benchmark/benchmark.dart -o ./build/benchmark
67
chmod +x ./build/benchmark
78
./build/benchmark BENCHMARK.md
8-
echo ">" >> BENCHMARK.md
9-
echo "> $(dart --version)" >> BENCHMARK.md
9+
10+
printf "> All benchmarks are done on 36GB _Apple M3 Pro_ using compiled _exe_\n" >> BENCHMARK.md
11+
printf ">\n" >> BENCHMARK.md
12+
printf "> $(dart --version)\n" >> BENCHMARK.md

scripts/coverage.bat

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
@echo off
2-
rd /s /q "coverage" || goto :error
2+
rd /s /q "coverage" 2>nul
33
mkdir "coverage" || goto :error
44

5-
call dart test -p vm --coverage="./coverage" --reporter json | tojunit > "./coverage/junit.xml" || goto :error
5+
call dart test -p vm --coverage="./coverage" || goto :error
66
call dart pub global run coverage:format_coverage --lcov --in="./coverage/test" --out="./coverage/lcov.info" --report-on="./lib" || goto :error
77
call dart pub global run cobertura convert
88
call dart pub global run cobertura show
9+
call dart test -p vm --reporter json | tojunit > "./coverage/junit.xml"
910

1011
goto :EOF
1112

scripts/coverage.sh

100644100755
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#!/bin/sh
22
set -ex
3-
rm -rf coverage
3+
rm -rf coverage || echo '' >/dev/null
44
mkdir -p coverage
5-
dart test -p vm --coverage="./coverage" --reporter json | tojunit > "./coverage/junit.xml"
5+
dart test -p vm --coverage="./coverage"
66
dart pub global run coverage:format_coverage --lcov --in="./coverage/test" --out="./coverage/lcov.info" --report-on="./lib"
77
dart pub global run cobertura convert
88
dart pub global run cobertura show
9+
dart test -p vm --reporter json | tojunit > "./coverage/junit.xml"

scripts/globals.bat

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
@echo off
2+
3+
call dart pub global activate pana
4+
call dart pub global activate coverage
5+
call dart pub global activate cobertura
6+
call dart pub global activate junitreport

scripts/globals.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
set -ex
3+
4+
dart pub global activate pana
5+
dart pub global activate coverage
6+
dart pub global activate cobertura
7+
dart pub global activate junitreport

scripts/prepublish.bat

Lines changed: 0 additions & 13 deletions
This file was deleted.

scripts/prepublish.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)