Skip to content

Commit

Permalink
Added additional device and disabled debug banner
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcc007 committed Feb 12, 2019
1 parent 843f3ad commit 536d870
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
7 changes: 2 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ jobs:
directories:
- $HOME/screenshots

before_deploy:
# - tar cvzf screenshots.tar.gz ios/fastlane/screenshots android/fastlane/metadata/android/*/images/
# - tar cvzf $HOME/screenshots/screenshots.tar.gz ios/fastlane/screenshots
# - zip -r $HOME/screenshots/screenshots.zip ios/fastlane/screenshots
# deploy draft of first artifact
deploy:
provider: releases
Expand All @@ -56,10 +52,11 @@ jobs:

- stage: Publish screenshots
# env: Publish screenshots to GitHub
# get artifacts from previous screenshots run
cache:
directories:
- $HOME/screenshots
# deploy other artifact (and mark both artifacts as published)
# deploy second artifact (and mark both artifacts as published)
deploy:
provider: releases
draft: false
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ To capture screenshots in your tests:
````
Note: make sure your screenshot names are unique across all your tests.

Note: to turn off the debug banner on your screens, in you MaterialApp() widget pass:
Note: to turn off the debug banner on your screens, in your integration test's main(), call:
````dart
debugShowCheckedModeBanner: false,
WidgetsApp.debugAllowBannerOverride = false; // remove debug banner for screenshots
````

# Configuration
Expand Down
2 changes: 1 addition & 1 deletion example/screenshots.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ locales:
devices:
ios:
- iPhone X
# - iPad Pro (12.9-inch) (2nd generation)
- iPad Pro (12.9-inch) (2nd generation)
android:
# - Nexus 6P

Expand Down
1 change: 1 addition & 0 deletions example/test_driver/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ void main() {
// Enable integration testing with the Flutter Driver extension.
// See https://flutter.io/testing/ for more info.
enableFlutterDriverExtension();
WidgetsApp.debugAllowBannerOverride = false; // remove debug banner
runApp(MyApp());
}

0 comments on commit 536d870

Please sign in to comment.