Skip to content

Commit

Permalink
Fix travis
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelMarner committed Mar 22, 2021
1 parent 9031269 commit 51f3ed8
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions tool/travis.sh
Expand Up @@ -8,29 +8,30 @@
set -e

# Run pub get to fetch packages.
pub get
pub global activate coverage
dart pub get
dart pub global activate coverage

# Run the tests.
echo "Running tests..."
pub run test --reporter expanded
# echo "Running tests..."
# dart run test --reporter expanded

# Gather coverage and upload to Coveralls.
OBS_PORT=9292
echo "Collecting coverage on port $OBS_PORT..."

# Start tests in one VM.
dart \
--enable-vm-service=$OBS_PORT \
--pause-isolates-on-exit \
test/test_all.dart &

# Run the coverage collector to generate the JSON coverage report.
collect_coverage \
dart pub global run coverage:collect_coverage \
--port=$OBS_PORT \
--out=var/coverage.json \
--wait-paused \
--resume-isolates
--resume-isolates &

# Start tests in one VM.
dart \
--disable-service-auth-codes \
--enable-vm-service=$OBS_PORT \
--pause-isolates-on-exit \
test/test_all.dart

echo "Generating LCOV report..."
format_coverage \
Expand Down

0 comments on commit 51f3ed8

Please sign in to comment.