Skip to content

Adding Travis config for jsonexample. #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 29, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
os:
- linux
sudo: false
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libstdc++6
- fonts-droid
git:
depth: 3
env:
- FLUTTER_VERSION=beta
- FLUTTER_VERSION=dev
matrix:
allow_failures:
- env: FLUTTER_VERSION=dev
before_script:
- git clone https://github.com/flutter/flutter.git -b $FLUTTER_VERSION
- ./flutter/bin/flutter doctor
- chmod +x travis_script.sh
script:
- ./travis_script.sh
cache:
directories:
- $HOME/shared/.pub-cache
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
import 'package:flutter_test/flutter_test.dart';

void main() {
testWidgets('Counter increments smoke test', (WidgetTester tester) async {});
test('This test always passes.', () {});
}
9 changes: 9 additions & 0 deletions travis_script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
set -e

echo "== Testing 'jsonexample' on Flutter's $FLUTTER_VERSION channel =="

pushd jsonexample
../flutter/bin/flutter test
popd

echo "-- Success --"