Repository navigation
Expand file tree
/
Copy pathcustomer_testing.sh
More file actions
executable file
·70 lines (53 loc) · 1.81 KB
/
Copy pathcustomer_testing.sh
File metadata and controls
executable file
·70 lines (53 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/bin/bash
# Copyright 2013 The Flutter Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# This file is used by
# https://github.com/flutter/tests/tree/master/registry/flutter_packages.test
# to run the tests of certain packages in this repository as a presubmit
# for the flutter/flutter repository.
# Changes to this file (and any tests in this repository) are only honored
# after the commit hash in the "flutter_packages.test" mentioned above has been
# updated.
# Remember to also update the Windows version (customer_testing.bat) when
# changing this file.
set -e
# ANIMATIONS PACKAGE
pushd packages/animations
flutter analyze --no-fatal-infos
flutter test
popd
# CUPERTINO_UI PACKAGE
pushd packages/cupertino_ui
flutter analyze --no-fatal-infos
if [[ "$OSTYPE" == "linux-gnu" ]]; then
flutter test
fi
popd
# MATERIAL_UI PACKAGE
pushd packages/material_ui
# Update the subpackages so that the analysis doesn't get confused.
pushd test_apps/a11y_assessments; flutter packages get; popd
pushd tool/gen_defaults; dart pub get; popd
flutter analyze --no-fatal-infos
if [[ "$OSTYPE" == "linux-gnu" ]]; then
flutter test
fi
popd
# RFW PACKAGE
pushd packages/rfw
# Update the subpackages so that the analysis doesn't get confused.
pushd example/remote; flutter packages get; popd
pushd test_coverage; dart pub get; popd
flutter analyze --no-fatal-infos
if [[ "$OSTYPE" == "linux-gnu" ]]; then
# We only run the full tests on Linux because golden files differ
# from platform to platform.
flutter test
fi
# The next script verifies that the coverage is not regressed; it does
# not verify goldens. (It does run all the tests though, so it still
# catches logic issues on other platforms, just not issue that only
# affect golden files.)
./run_tests.sh
popd