mirror of
https://github.com/flutter/packages.git
synced 2025-07-01 23:51:55 +08:00
Bring old Travis script over as a local_test.sh script
This commit is contained in:
@ -39,7 +39,8 @@ task:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- format+analyze
|
- format+analyze
|
||||||
- name: test
|
- 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:
|
depends_on:
|
||||||
- format+analyze
|
- format+analyze
|
||||||
- name: build-apks+java-test
|
- name: build-apks+java-test
|
||||||
|
19
packages/flutter_image/run_tests.sh
Executable file
19
packages/flutter_image/run_tests.sh
Executable 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
|
Reference in New Issue
Block a user