Skip to content

Commit

Permalink
Bring old Travis script over as a local_test.sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartmorgan committed May 12, 2021
1 parent 2d678c5 commit b3b176e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
19 changes: 19 additions & 0 deletions packages/flutter_image/run_tests.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b3b176e

Please sign in to comment.