Adding Travis config for jsonexample. (#4)

pull/5/head
Andrew Brogdon 6 years ago committed by GitHub
parent 85f4d3f18b
commit d17f968932
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

@ -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.', () {});
}

@ -0,0 +1,9 @@
set -e
echo "== Testing 'jsonexample' on Flutter's $FLUTTER_VERSION channel =="
pushd jsonexample
../flutter/bin/flutter test
popd
echo "-- Success --"
Loading…
Cancel
Save