Use JDK Switcher to switch to OpenJDK8 in bionic image of Travis CI

This commit is contained in:
Varakh 2021-05-08 14:53:12 +02:00
parent 707520b44c
commit 79593bd288

View file

@ -8,6 +8,9 @@ addons:
env: env:
global: global:
- FLUTTER_CHANNEL=stable - FLUTTER_CHANNEL=stable
- ANDROID_API_LEVEL=28
- ANDROID_BUILD_TOOLS_VERSION=28.0.3
- ANDROID_ABI=armeabi-v7a
install: install:
- git clone https://github.com/flutter/flutter.git -b $FLUTTER_CHANNEL - git clone https://github.com/flutter/flutter.git -b $FLUTTER_CHANNEL
- export PATH=$(pwd)/flutter/bin:$PATH - export PATH=$(pwd)/flutter/bin:$PATH
@ -26,10 +29,11 @@ build: &build
language: android language: android
android: android:
components: components:
- tools
- tools - tools
- platform-tools - platform-tools
- build-tools-29 - build-tools-28.0.3
- android-29 - android-28
before_script: before_script:
- export BUILD_NAME=$TRAVIS_TAG - export BUILD_NAME=$TRAVIS_TAG
- export BUILD_NUMBER=$TRAVIS_BUILD_NUMBER - export BUILD_NUMBER=$TRAVIS_BUILD_NUMBER