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: 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
@ -24,28 +21,28 @@ static_analysis: &static_analysis
name: "Static analysis" name: "Static analysis"
script: flutter analyze --no-current-package $TRAVIS_BUILD_DIR/lib script: flutter analyze --no-current-package $TRAVIS_BUILD_DIR/lib
build: &build #build: &build
name: "Build APK" # name: "Build APK"
language: android # language: android
android: # android:
components: # components:
- tools # - tools
- tools # - tools
- platform-tools # - platform-tools
- build-tools-28.0.3 # - build-tools-28.0.3
- android-28 # - 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
script: # script:
- jdk_switcher use openjdk8 # - jdk_switcher use openjdk8
- if [[ $TRAVIS_TAG == "" ]]; then flutter build apk; else flutter build apk --build-name $BUILD_NAME --build-number $BUILD_NUMBER; fi # - if [[ $TRAVIS_TAG == "" ]]; then flutter build apk; else flutter build apk --build-name $BUILD_NAME --build-number $BUILD_NUMBER; fi
jobs: jobs:
include: include:
- <<: *static_analysis - <<: *static_analysis
- stage: build # - stage: build
<<: *build # <<: *build
cache: cache:
directories: directories:
- $HOME/.pub-cache - $HOME/.pub-cache