Bring old Travis script over as a local_test.sh script

This commit is contained in:
Stuart Morgan
2021-05-12 12:04:18 -04:00
parent 2d678c57e2
commit b3b176e007
2 changed files with 21 additions and 1 deletions

View File

@ -39,7 +39,8 @@ task:
depends_on:
- format+analyze
- name: test
script: ./script/tool_runner.sh test
# Exclude flutter_image; its tests need a test server, so are run via local_tests.sh
script: ./script/tool_runner.sh test --exclude=flutter_image
depends_on:
- format+analyze
- name: build-apks+java-test

View File

@ -0,0 +1,19 @@
#!/bin/bash
# Copyright 2013 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Fast fail the script on failures.
set -e
# Print commands to stdout
set -x
flutter packages get
flutter analyze lib/ test/
dart test/network_test_server.dart &
SERVER_PID=$!
sleep 2
flutter test
kill $SERVER_PID