For now disable building APK with Travis CI

This commit is contained in:
Varakh 2021-05-08 15:00:02 +02:00
parent 79593bd288
commit 9ec215cbf4

View file

@ -8,9 +8,6 @@ addons:
env:
global:
- FLUTTER_CHANNEL=stable
- ANDROID_API_LEVEL=28
- ANDROID_BUILD_TOOLS_VERSION=28.0.3
- ANDROID_ABI=armeabi-v7a
install:
- git clone https://github.com/flutter/flutter.git -b $FLUTTER_CHANNEL
- export PATH=$(pwd)/flutter/bin:$PATH
@ -24,28 +21,28 @@ static_analysis: &static_analysis
name: "Static analysis"
script: flutter analyze --no-current-package $TRAVIS_BUILD_DIR/lib
build: &build
name: "Build APK"
language: android
android:
components:
- tools
- tools
- platform-tools
- build-tools-28.0.3
- android-28
before_script:
- export BUILD_NAME=$TRAVIS_TAG
- export BUILD_NUMBER=$TRAVIS_BUILD_NUMBER
script:
- jdk_switcher use openjdk8
- if [[ $TRAVIS_TAG == "" ]]; then flutter build apk; else flutter build apk --build-name $BUILD_NAME --build-number $BUILD_NUMBER; fi
#build: &build
# name: "Build APK"
# language: android
# android:
# components:
# - tools
# - tools
# - platform-tools
# - build-tools-28.0.3
# - android-28
# before_script:
# - export BUILD_NAME=$TRAVIS_TAG
# - export BUILD_NUMBER=$TRAVIS_BUILD_NUMBER
# script:
# - jdk_switcher use openjdk8
# - if [[ $TRAVIS_TAG == "" ]]; then flutter build apk; else flutter build apk --build-name $BUILD_NAME --build-number $BUILD_NUMBER; fi
jobs:
include:
- <<: *static_analysis
- stage: build
<<: *build
# - stage: build
# <<: *build
cache:
directories:
- $HOME/.pub-cache