.travis.yml
1.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
sudo: true
matrix:
include: # (not) excluding Android test as Flutter seems to require Vulkan https://travis-ci.com/creativecreatorormaybenot/wakelock/jobs/214156381
- stage: Integration Testing
name: Android
os: linux
dist: trusty
language: android
android:
components:
- tools
- platform-tools
- build-tools-28.0.3
- android-28
- android-24
- extra-google-m2repository
- extra-android-m2repository
- sys-img-armeabi-v7a-android-24
install:
- git clone -b master https://github.com/flutter/flutter.git
- ./flutter/bin/flutter --version
before_script:
- export PATH="$PATH":"$HOME/.pub-cache/bin"
- export PATH=$PWD/flutter/bin:$PWD/flutter/bin/cache/dart-sdk/bin:$PATH
- echo no | android create avd --force -n test -t android-24 --abi armeabi-v7a
- emulator -avd test -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &
- flutter precache
- flutter doctor -v
- cd example
script:
- flutter driver test_driver/app.dart
- name: iOS
os: osx
osx_image: xcode10.2
language: generic
before_install:
- open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app
- export HOMEBREW_NO_AUTO_UPDATE=1
install:
- brew install libimobiledevice
- brew install ideviceinstaller
- brew install ios-deploy
- brew install cocoapods || echo 'ignore exit(1)'
- brew link --overwrite cocoapods
- git clone -b master https://github.com/flutter/flutter.git
- ./flutter/bin/flutter --version
before_script:
- export PATH="$PATH":"$HOME/.pub-cache/bin"
- export PATH=$PWD/flutter/bin:$PWD/flutter/bin/cache/dart-sdk/bin:$PATH
- flutter doctor -v
- cd example
script:
- flutter driver test_driver/app.dart