forked from creativecreatorormaybenot/wakelock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
105 lines (80 loc) · 2.85 KB
/
.travis.yml
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
matrix:
include:
- stage: Format checking
name: Dart code
os: linux
dist: trusty
language: generic
install:
- git clone -b master https://github.com/flutter/flutter.git
- ./flutter/bin/flutter --version
before_script:
- export PATH=$HOME/.pub-cache/bin:$PWD/flutter/bin:$PWD/flutter/bin/cache/dart-sdk/bin:$PATH
script:
- flutter format lib example --set-exit-if-changed --fix
- stage: Code analysis
name: Dart code
os: linux
dist: trusty
language: generic
before_install:
- cd ..
install:
- git clone -b master https://github.com/flutter/flutter.git
- ./flutter/bin/flutter --version
before_script:
- export PATH=$HOME/.pub-cache/bin:$PWD/flutter/bin:$PWD/flutter/bin/cache/dart-sdk/bin:$PATH
- cd wakelock
- flutter packages get
script:
- flutter analyze
- stage: Integration testing
name: iOS
os: osx
osx_image: xcode10.2
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=$HOME/.pub-cache/bin:$PWD/flutter/bin:$PWD/flutter/bin/cache/dart-sdk/bin:$PATH
- flutter doctor -v
- cd example
script:
- travis_retry flutter driver test_driver/app.dart
exclude: # Currently excluding the Android test as Flutter seems to require Vulkan (https://travis-ci.com/creativecreatorormaybenot/wakelock/jobs/214156381).
- name: Android
os: linux
dist: trusty
sudo: true
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=$HOME/.pub-cache/bin:$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 doctor -v
- cd example
script:
- flutter driver test_driver/app.dart --enable-software-rendering