#!/bin/bash set -e # bail on error # Prerequisite: ./tool/build_sdk.sh has been run. # Install dart_coveralls; gather and send coverage data. if test $COVERALLS_TOKEN && test $TRAVIS_DART_VERSION = "dev" { echo "*** Running dart_coveralls" pub global run dart_coveralls report \ --token $COVERALLS_TOKEN \ --retry 2 \ --throw-on-connectivity-error \ --exclude-test-files \ test/all_tests.dart echo "*** Done running dart_coveralls" } (CommandList children: [ (C {(set)} {(-e)}) (If arms: [ (if_arm cond: [ (Sentence child: (AndOr children: [ (C {(Lit_Other "[")} {(DQ ($ VSub_Name "$COVERALLS_TOKEN"))} {(Lit_Other "]")}) (C {(Lit_Other "[")} {(DQ ($ VSub_Name "$TRAVIS_DART_VERSION"))} {(Lit_Other "=")} {(DQ (dev))} {(Lit_Other "]")} ) ] op_id: Op_DAmp ) terminator: ) ] action: [ (C {(echo)} {(DQ ("*** Running dart_coveralls"))}) (C {(pub)} {(global)} {(run)} {(dart_coveralls)} {(report)} {(--token)} {($ VSub_Name "$COVERALLS_TOKEN")} {(--retry)} {(2)} {(--throw-on-connectivity-error)} {(--exclude-test-files)} {(test/all_tests.dart)} ) (C {(echo)} {(DQ ("*** Done running dart_coveralls"))}) ] spids: [-1 45] ) ] spids: [-1 96] ) ] )