Showing
1 changed file
with
68 additions
and
27 deletions
| 1 | +os: linux | ||
| 2 | +dist: trusty | ||
| 1 | sudo: true | 3 | sudo: true |
| 4 | +language: generic | ||
| 2 | 5 | ||
| 3 | matrix: | 6 | matrix: |
| 4 | - exclude: # excluding Android test as Flutter seems to require Vulkan https://travis-ci.com/creativecreatorormaybenot/wakelock/jobs/214156381 | ||
| 5 | - - stage: Integration Testing | ||
| 6 | - | ||
| 7 | - name: Android | ||
| 8 | - | ||
| 9 | - os: linux | ||
| 10 | - dist: trusty | ||
| 11 | - language: android | 7 | + include: |
| 8 | + - stage: Check Format | ||
| 12 | 9 | ||
| 13 | - android: | ||
| 14 | - components: | ||
| 15 | - - tools | ||
| 16 | - - platform-tools | 10 | + name: Dart code |
| 17 | 11 | ||
| 18 | - - build-tools-28.0.3 | ||
| 19 | - - android-28 | ||
| 20 | - - android-24 | 12 | + install: |
| 13 | + - git clone -b master https://github.com/flutter/flutter.git | ||
| 14 | + - ./flutter/bin/flutter --version | ||
| 15 | + before_script: | ||
| 16 | + - export PATH="$PATH":"$HOME/.pub-cache/bin" | ||
| 17 | + - export PATH=$PWD/flutter/bin:$PWD/flutter/bin/cache/dart-sdk/bin:$PATH | ||
| 18 | + script: | ||
| 19 | + - flutter format . --set-exit-if-changed --fix | ||
| 21 | 20 | ||
| 22 | - - extra-google-m2repository | ||
| 23 | - - extra-android-m2repository | 21 | + - stage: Code analysis |
| 24 | 22 | ||
| 25 | - - sys-img-armeabi-v7a-android-24 | 23 | + name: Dart code (plugin) |
| 26 | 24 | ||
| 27 | install: | 25 | install: |
| 28 | - git clone -b master https://github.com/flutter/flutter.git | 26 | - git clone -b master https://github.com/flutter/flutter.git |
| @@ -30,23 +28,28 @@ matrix: | @@ -30,23 +28,28 @@ matrix: | ||
| 30 | before_script: | 28 | before_script: |
| 31 | - export PATH="$PATH":"$HOME/.pub-cache/bin" | 29 | - export PATH="$PATH":"$HOME/.pub-cache/bin" |
| 32 | - export PATH=$PWD/flutter/bin:$PWD/flutter/bin/cache/dart-sdk/bin:$PATH | 30 | - export PATH=$PWD/flutter/bin:$PWD/flutter/bin/cache/dart-sdk/bin:$PATH |
| 31 | + script: | ||
| 32 | + - flutter analyze | ||
| 33 | 33 | ||
| 34 | - - echo no | android create avd --force -n test -t android-24 --abi armeabi-v7a | ||
| 35 | - - emulator -avd test -no-window & | ||
| 36 | - - android-wait-for-emulator | ||
| 37 | - - adb shell input keyevent 82 & | 34 | + - name: Dart code (example) |
| 38 | 35 | ||
| 39 | - - flutter doctor -v | 36 | + install: |
| 37 | + - git clone -b master https://github.com/flutter/flutter.git | ||
| 38 | + - ./flutter/bin/flutter --version | ||
| 39 | + before_script: | ||
| 40 | + - export PATH="$PATH":"$HOME/.pub-cache/bin" | ||
| 41 | + - export PATH=$PWD/flutter/bin:$PWD/flutter/bin/cache/dart-sdk/bin:$PATH | ||
| 40 | 42 | ||
| 41 | - cd example | 43 | - cd example |
| 42 | script: | 44 | script: |
| 43 | - - flutter driver test_driver/app.dart | ||
| 44 | - include: | ||
| 45 | - - name: iOS | 45 | + - flutter analyze |
| 46 | + | ||
| 47 | + - stage: Integration Testing | ||
| 48 | + | ||
| 49 | + name: iOS | ||
| 46 | 50 | ||
| 47 | os: osx | 51 | os: osx |
| 48 | osx_image: xcode10.2 | 52 | osx_image: xcode10.2 |
| 49 | - language: generic | ||
| 50 | 53 | ||
| 51 | before_install: | 54 | before_install: |
| 52 | - open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app | 55 | - open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app |
| @@ -69,3 +72,41 @@ matrix: | @@ -69,3 +72,41 @@ matrix: | ||
| 69 | - cd example | 72 | - cd example |
| 70 | script: | 73 | script: |
| 71 | - flutter driver test_driver/app.dart | 74 | - flutter driver test_driver/app.dart |
| 75 | + exclude: # excluding Android test as Flutter seems to require Vulkan https://travis-ci.com/creativecreatorormaybenot/wakelock/jobs/214156381 | ||
| 76 | + - name: Android | ||
| 77 | + | ||
| 78 | + os: linux | ||
| 79 | + dist: trusty | ||
| 80 | + language: android | ||
| 81 | + | ||
| 82 | + android: | ||
| 83 | + components: | ||
| 84 | + - tools | ||
| 85 | + - platform-tools | ||
| 86 | + | ||
| 87 | + - build-tools-28.0.3 | ||
| 88 | + - android-28 | ||
| 89 | + - android-24 | ||
| 90 | + | ||
| 91 | + - extra-google-m2repository | ||
| 92 | + - extra-android-m2repository | ||
| 93 | + | ||
| 94 | + - sys-img-armeabi-v7a-android-24 | ||
| 95 | + | ||
| 96 | + install: | ||
| 97 | + - git clone -b master https://github.com/flutter/flutter.git | ||
| 98 | + - ./flutter/bin/flutter --version | ||
| 99 | + before_script: | ||
| 100 | + - export PATH="$PATH":"$HOME/.pub-cache/bin" | ||
| 101 | + - export PATH=$PWD/flutter/bin:$PWD/flutter/bin/cache/dart-sdk/bin:$PATH | ||
| 102 | + | ||
| 103 | + - echo no | android create avd --force -n test -t android-24 --abi armeabi-v7a | ||
| 104 | + - emulator -avd test -no-window & | ||
| 105 | + - android-wait-for-emulator | ||
| 106 | + - adb shell input keyevent 82 & | ||
| 107 | + | ||
| 108 | + - flutter doctor -v | ||
| 109 | + | ||
| 110 | + - cd example | ||
| 111 | + script: | ||
| 112 | + - flutter driver test_driver/app.dart |
-
Please register or login to post a comment