blob: ce0f993afa61a9298b62f090b7d3fd03f6439a41 [file] [log] [blame]
Devon Carew26ceabe2014-12-11 11:44:53 -08001#!/bin/bash
2
3# Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
4# for details. All rights reserved. Use of this source code is governed by a
5# BSD-style license that can be found in the LICENSE file.
6
7# Fast fail the script on failures.
8set -e
9
Devon Carew26ceabe2014-12-11 11:44:53 -080010# Verify that the libraries are error free.
Devon Carewbc1b7782018-07-16 07:01:42 -070011dartanalyzer --fatal-warnings .
Devon Carew26ceabe2014-12-11 11:44:53 -080012
13# Run the tests.
Devon Carew4bf08152018-06-21 18:57:25 -070014dart --enable-asserts test/all.dart
Devon Carew823bd7d2015-02-10 10:31:46 -080015
Devon Carewb1fa88f2014-12-21 08:48:52 -080016# Measure the size of the compiled JS, for the dart:html version of the library.
Devon Carew167561c2016-03-09 17:31:46 -080017dart tool/grind.dart build
Devon Carewb1fa88f2014-12-21 08:48:52 -080018
Devon Carew55ee3032014-12-16 15:47:11 -080019# Install dart_coveralls; gather and send coverage data.
Devon Carewec654872014-12-18 11:16:19 -080020if [ "$REPO_TOKEN" ]; then
Devon Carewec654872014-12-18 11:16:19 -080021 pub global activate dart_coveralls
Devon Carew9dcc0742014-12-31 10:11:29 -080022 pub global run dart_coveralls report \
23 --token $REPO_TOKEN \
24 --retry 2 \
25 --exclude-test-files \
26 test/all.dart
Devon Carewec654872014-12-18 11:16:19 -080027fi