-
-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First attempt at code coverage
- Loading branch information
Showing
6 changed files
with
168 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,23 @@ | ||
language: bash | ||
os: | ||
- linux | ||
- osx | ||
sudo: false | ||
addons: | ||
apt: | ||
# Flutter depends on /usr/lib/x86_64-linux-gnu/libstdc++.so.6 version GLIBCXX_3.4.18 | ||
sources: | ||
- ubuntu-toolchain-r-test # if we don't specify this, the libstdc++6 we get is the wrong version | ||
packages: | ||
- libstdc++6 | ||
- fonts-droid | ||
before_script: | ||
- git clone https://github.com/flutter/flutter.git -b beta | ||
- ./flutter/bin/flutter doctor | ||
- cd .. | ||
- git clone https://github.com/flutter/flutter.git -b master | ||
- export PATH=$PATH:$PWD/flutter/bin | ||
- export PATH=$PATH:$PWD/flutter/bin/cache/dart-sdk/bin | ||
- flutter doctor | ||
- cd - | ||
script: | ||
- ./flutter/bin/flutter test | ||
# abort on error | ||
- set -e | ||
- flutter packages get | ||
- flutter format --set-exit-if-changed lib example | ||
- flutter analyze lib example | ||
- flutter test --no-pub --coverage | ||
# export coverage | ||
- bash <(curl -s https://codecov.io/bash) | ||
cache: | ||
directories: | ||
- $HOME/.pub-cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
coverage: | ||
flutter test --no-pub --coverage && genhtml -o coverage coverage/lcov.info && open coverage/index.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,147 @@ | ||
# Generated by pub | ||
# See https://www.dartlang.org/tools/pub/glossary#lockfile | ||
packages: | ||
async: | ||
dependency: transitive | ||
description: | ||
name: async | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "2.0.8" | ||
boolean_selector: | ||
dependency: transitive | ||
description: | ||
name: boolean_selector | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "1.0.4" | ||
charcode: | ||
dependency: transitive | ||
description: | ||
name: charcode | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "1.1.2" | ||
collection: | ||
dependency: transitive | ||
description: | ||
name: collection | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "1.14.11" | ||
connectivity: | ||
dependency: "direct main" | ||
description: | ||
name: connectivity | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "0.3.1" | ||
flutter: | ||
dependency: "direct main" | ||
description: flutter | ||
source: sdk | ||
version: "0.0.0" | ||
flutter_test: | ||
dependency: "direct dev" | ||
description: flutter | ||
source: sdk | ||
version: "0.0.0" | ||
matcher: | ||
dependency: transitive | ||
description: | ||
name: matcher | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "0.12.3+1" | ||
meta: | ||
dependency: transitive | ||
description: | ||
name: meta | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "1.1.6" | ||
path: | ||
dependency: transitive | ||
description: | ||
name: path | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "1.6.2" | ||
pedantic: | ||
dependency: transitive | ||
description: | ||
name: pedantic | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "1.4.0" | ||
quiver: | ||
dependency: transitive | ||
description: | ||
name: quiver | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "2.0.1" | ||
sky_engine: | ||
dependency: transitive | ||
description: flutter | ||
source: sdk | ||
version: "0.0.99" | ||
source_span: | ||
dependency: transitive | ||
description: | ||
name: source_span | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "1.5.3" | ||
stack_trace: | ||
dependency: transitive | ||
description: | ||
name: stack_trace | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "1.9.3" | ||
stream_channel: | ||
dependency: transitive | ||
description: | ||
name: stream_channel | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "1.6.8" | ||
string_scanner: | ||
dependency: transitive | ||
description: | ||
name: string_scanner | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "1.0.4" | ||
term_glyph: | ||
dependency: transitive | ||
description: | ||
name: term_glyph | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "1.1.0" | ||
test_api: | ||
dependency: transitive | ||
description: | ||
name: test_api | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "0.2.2" | ||
typed_data: | ||
dependency: transitive | ||
description: | ||
name: typed_data | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "1.1.6" | ||
vector_math: | ||
dependency: transitive | ||
description: | ||
name: vector_math | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "2.0.8" | ||
sdks: | ||
dart: ">=2.1.0 <3.0.0" | ||
flutter: ">=0.1.4 <2.0.0" |