|
1 | 1 | jobs:
|
2 | 2 | include:
|
3 | 3 |
|
4 |
| - - stage: Unit Testing |
| 4 | + - stage: Testing |
5 | 5 | language: generic
|
6 | 6 | os: linux
|
7 | 7 | env: All unit and widget tests
|
|
25 | 25 | directories:
|
26 | 26 | - $HOME/.pub-cache
|
27 | 27 |
|
28 |
| - - &integration-test-staging |
29 |
| - stage: Integration Testing |
| 28 | + - &integration-test |
| 29 | + stage: Testing |
30 | 30 | sudo: true
|
31 | 31 | dist: trusty
|
32 | 32 | language: generic
|
|
51 | 51 | # Platform tools
|
52 | 52 | - sdkmanager "emulator" "tools" "platform-tools" > /dev/null
|
53 | 53 | - sdkmanager --list | head -15
|
| 54 | + |
| 55 | + # Download a pinned version of the emulator since upgrades can cause issues |
| 56 | + - ${ANDROID_HOME}/emulator/emulator -version |
| 57 | + - emulator_version=5264690 |
| 58 | + - curl -fo emulator.zip "https://dl.google.com/android/repository/emulator-linux-$emulator_version.zip" |
| 59 | + - rm -rf "${ANDROID_HOME}/emulator" |
| 60 | + - unzip -q emulator.zip -d "${ANDROID_HOME}" |
| 61 | + - rm -f emulator.zip |
| 62 | + - ${ANDROID_HOME}/emulator/emulator -version |
| 63 | + |
54 | 64 | # install older packages (for emulator)
|
55 | 65 | - sdkmanager "build-tools;25.0.2" "platforms;android-25" > /dev/null
|
56 | 66 | # Create and start emulator.
|
|
82 | 92 | - $HOME/.pub-cache
|
83 | 93 | - $HOME/.gradle
|
84 | 94 |
|
85 |
| - - <<: *integration-test-staging |
| 95 | + - <<: *integration-test |
86 | 96 | os: osx
|
87 | 97 | # use oldest flutter supported version of xcode
|
88 | 98 | osx_image: xcode8.0
|
@@ -115,131 +125,131 @@ jobs:
|
115 | 125 | directories:
|
116 | 126 | - $HOME/.pub-cache
|
117 | 127 |
|
118 |
| - - <<: *integration-test-staging |
| 128 | + - <<: *integration-test |
119 | 129 | os: linux
|
120 | 130 | env: built_redux_android
|
121 | 131 | script: travis_retry ./scripts/ci.sh ./built_redux
|
122 |
| - - <<: *integration-test-staging |
| 132 | + - <<: *integration-test |
123 | 133 | os: osx
|
124 | 134 | osx_image: xcode8.0
|
125 | 135 | env: built_redux_ios
|
126 | 136 | before_install: *before_install_osx
|
127 | 137 | script: travis_retry ./scripts/ci.sh ./built_redux
|
128 |
| - - <<: *integration-test-staging |
| 138 | + - <<: *integration-test |
129 | 139 | os: linux
|
130 | 140 | env: bloc_library_android
|
131 | 141 | script: travis_retry ./scripts/ci.sh ./bloc_library
|
132 |
| - - <<: *integration-test-staging |
| 142 | + - <<: *integration-test |
133 | 143 | os: osx
|
134 | 144 | osx_image: xcode8.0
|
135 | 145 | env: bloc_library_ios
|
136 | 146 | before_install: *before_install_osx
|
137 | 147 | script: travis_retry ./scripts/ci.sh ./bloc_library
|
138 |
| - - <<: *integration-test-staging |
| 148 | + - <<: *integration-test |
139 | 149 | os: linux
|
140 | 150 | env: firestore_redux_android
|
141 | 151 | script: travis_retry ./scripts/ci.sh ./firestore_redux
|
142 |
| - - <<: *integration-test-staging |
| 152 | + - <<: *integration-test |
143 | 153 | os: osx
|
144 | 154 | osx_image: xcode8.0
|
145 | 155 | env: firestore_redux_ios
|
146 | 156 | before_install: *before_install_osx
|
147 | 157 | script: travis_retry ./scripts/ci.sh ./firestore_redux
|
148 |
| - - <<: *integration-test-staging |
| 158 | + - <<: *integration-test |
149 | 159 | os: linux
|
150 | 160 | env: frideos_library_android
|
151 | 161 | script: travis_retry ./scripts/ci.sh ./frideos_library
|
152 |
| - - <<: *integration-test-staging |
| 162 | + - <<: *integration-test |
153 | 163 | os: osx
|
154 | 164 | osx_image: xcode8.0
|
155 | 165 | env: frideos_library_ios
|
156 | 166 | before_install: *before_install_osx
|
157 | 167 | script: travis_retry ./scripts/ci.sh ./frideos_library
|
158 |
| - - <<: *integration-test-staging |
| 168 | + - <<: *integration-test |
159 | 169 | os: linux
|
160 | 170 | env: inherited_widget_android
|
161 | 171 | script: travis_retry ./scripts/ci.sh ./inherited_widget
|
162 |
| - - <<: *integration-test-staging |
| 172 | + - <<: *integration-test |
163 | 173 | os: osx
|
164 | 174 | osx_image: xcode8.0
|
165 | 175 | env: inherited_widget_ios
|
166 | 176 | before_install: *before_install_osx
|
167 | 177 | script: travis_retry ./scripts/ci.sh ./inherited_widget
|
168 |
| - - <<: *integration-test-staging |
| 178 | + - <<: *integration-test |
169 | 179 | os: linux
|
170 | 180 | env: mvc_android
|
171 | 181 | script: travis_retry ./scripts/ci.sh ./mvc
|
172 |
| - - <<: *integration-test-staging |
| 182 | + - <<: *integration-test |
173 | 183 | os: osx
|
174 | 184 | osx_image: xcode8.0
|
175 | 185 | env: mvc_ios
|
176 | 186 | before_install: *before_install_osx
|
177 | 187 | script: travis_retry ./scripts/ci.sh ./mvc
|
178 |
| - - <<: *integration-test-staging |
| 188 | + - <<: *integration-test |
179 | 189 | os: linux
|
180 | 190 | env: mvi_flutter_android
|
181 | 191 | script: travis_retry ./scripts/ci.sh ./mvi_flutter
|
182 |
| - - <<: *integration-test-staging |
| 192 | + - <<: *integration-test |
183 | 193 | os: osx
|
184 | 194 | osx_image: xcode8.0
|
185 | 195 | env: mvi_flutter_ios
|
186 | 196 | before_install: *before_install_osx
|
187 | 197 | script: travis_retry ./scripts/ci.sh ./mvi_flutter
|
188 |
| - - <<: *integration-test-staging |
| 198 | + - <<: *integration-test |
189 | 199 | os: linux
|
190 | 200 | env: mvu_android
|
191 | 201 | script: travis_retry ./scripts/ci.sh ./mvu
|
192 |
| - - <<: *integration-test-staging |
| 202 | + - <<: *integration-test |
193 | 203 | os: osx
|
194 | 204 | osx_image: xcode8.0
|
195 | 205 | env: mvu_ios
|
196 | 206 | before_install: *before_install_osx
|
197 | 207 | script: travis_retry ./scripts/ci.sh ./mvu
|
198 |
| - - <<: *integration-test-staging |
| 208 | + - <<: *integration-test |
199 | 209 | os: linux
|
200 | 210 | env: redurx_android
|
201 | 211 | script: travis_retry ./scripts/ci.sh ./redurx
|
202 |
| - - <<: *integration-test-staging |
| 212 | + - <<: *integration-test |
203 | 213 | os: osx
|
204 | 214 | osx_image: xcode8.0
|
205 | 215 | env: redurx_ios
|
206 | 216 | before_install: *before_install_osx
|
207 | 217 | script: travis_retry ./scripts/ci.sh ./redurx
|
208 |
| - - <<: *integration-test-staging |
| 218 | + - <<: *integration-test |
209 | 219 | os: linux
|
210 | 220 | env: redux_android
|
211 | 221 | script: travis_retry ./scripts/ci.sh ./redux
|
212 |
| - - <<: *integration-test-staging |
| 222 | + - <<: *integration-test |
213 | 223 | os: osx
|
214 | 224 | osx_image: xcode8.0
|
215 | 225 | env: redux_ios
|
216 | 226 | before_install: *before_install_osx
|
217 | 227 | script: travis_retry ./scripts/ci.sh ./redux
|
218 |
| - - <<: *integration-test-staging |
| 228 | + - <<: *integration-test |
219 | 229 | os: linux
|
220 | 230 | env: scoped_model_android
|
221 | 231 | script: travis_retry ./scripts/ci.sh ./scoped_model
|
222 |
| - - <<: *integration-test-staging |
| 232 | + - <<: *integration-test |
223 | 233 | os: osx
|
224 | 234 | osx_image: xcode8.0
|
225 | 235 | env: scoped_model_ios
|
226 | 236 | before_install: *before_install_osx
|
227 | 237 | script: travis_retry ./scripts/ci.sh ./scoped_model
|
228 |
| - - <<: *integration-test-staging |
| 238 | + - <<: *integration-test |
229 | 239 | os: linux
|
230 | 240 | env: simple_bloc_flutter_android
|
231 | 241 | script: travis_retry ./scripts/ci.sh ./simple_bloc_flutter
|
232 |
| - - <<: *integration-test-staging |
| 242 | + - <<: *integration-test |
233 | 243 | os: osx
|
234 | 244 | osx_image: xcode8.0
|
235 | 245 | env: simple_bloc_flutter_ios
|
236 | 246 | before_install: *before_install_osx
|
237 | 247 | script: travis_retry ./scripts/ci.sh ./simple_bloc_flutter
|
238 |
| - - <<: *integration-test-staging |
| 248 | + - <<: *integration-test |
239 | 249 | os: linux
|
240 | 250 | env: vanilla_android
|
241 | 251 | script: travis_retry ./scripts/ci.sh ./vanilla
|
242 |
| - - <<: *integration-test-staging |
| 252 | + - <<: *integration-test |
243 | 253 | os: osx
|
244 | 254 | osx_image: xcode8.0
|
245 | 255 | env: vanilla_ios
|
|
0 commit comments