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

This commit is contained in:
Varakh 2021-05-08 14:42:22 +02:00
parent 57a502f0c3
commit 707520b44c

View file

@ -9,7 +9,7 @@ env:
global: global:
- FLUTTER_CHANNEL=stable - FLUTTER_CHANNEL=stable
install: install:
- git clone https://github.com/flutter/flutter.git -b $FLUTTER_CHANNEL --depth 1 - git clone https://github.com/flutter/flutter.git -b $FLUTTER_CHANNEL
- export PATH=$(pwd)/flutter/bin:$PATH - export PATH=$(pwd)/flutter/bin:$PATH
- export PATH=$(pwd)/flutter/bin/cache/dart-sdk/bin:$PATH - export PATH=$(pwd)/flutter/bin/cache/dart-sdk/bin:$PATH
- flutter doctor -v - flutter doctor -v
@ -27,10 +27,8 @@ build: &build
android: android:
components: components:
- tools - tools
- tools # See (https://github.com/travis-ci/travis-ci/issues/6040#issuecomment-219367943)
- platform-tools - platform-tools
- build-tools-28.0.3 - build-tools-29
- android-27 # Breaks the build if not present (https://github.com/flutter/flutter/pull/26798#issuecomment-455758159)
- android-29 - android-29
before_script: before_script:
- export BUILD_NAME=$TRAVIS_TAG - export BUILD_NAME=$TRAVIS_TAG