Skip to content

Commit d17f968

Browse files
authored
Adding Travis config for jsonexample. (#4)
1 parent 85f4d3f commit d17f968

File tree

3 files changed

+37
-1
lines changed

3 files changed

+37
-1
lines changed

.travis.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
os:
2+
- linux
3+
sudo: false
4+
addons:
5+
apt:
6+
sources:
7+
- ubuntu-toolchain-r-test
8+
packages:
9+
- libstdc++6
10+
- fonts-droid
11+
git:
12+
depth: 3
13+
env:
14+
- FLUTTER_VERSION=beta
15+
- FLUTTER_VERSION=dev
16+
matrix:
17+
allow_failures:
18+
- env: FLUTTER_VERSION=dev
19+
before_script:
20+
- git clone https://github.com/flutter/flutter.git -b $FLUTTER_VERSION
21+
- ./flutter/bin/flutter doctor
22+
- chmod +x travis_script.sh
23+
script:
24+
- ./travis_script.sh
25+
cache:
26+
directories:
27+
- $HOME/shared/.pub-cache

jsonexample/test/widget_test.dart renamed to jsonexample/test/main_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
import 'package:flutter_test/flutter_test.dart';
66

77
void main() {
8-
testWidgets('Counter increments smoke test', (WidgetTester tester) async {});
8+
test('This test always passes.', () {});
99
}

travis_script.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
set -e
2+
3+
echo "== Testing 'jsonexample' on Flutter's $FLUTTER_VERSION channel =="
4+
5+
pushd jsonexample
6+
../flutter/bin/flutter test
7+
popd
8+
9+
echo "-- Success --"

0 commit comments

Comments
 (0)