Skip to content
代码片段 群组 项目
选择Git版本
  • et-recusandae-deleniti-voluptas-consectetur
  • master 默认 受保护
  • 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123
  • 012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678
  • 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456782
  • b2
  • b1
  • 58-testr
  • 58-testr-2
  • et-laudantium-voluptas-quos-pariatur
  • 17-1-stable-jh-patch-1
  • ea-dolor-quia-et-sint
  • main-jh
  • laudantium-unde-et-iste-et
  • ipsum-consequatur-et-in-et
  • sapiente-et-possimus-neque-est
  • qui-in-quod-nam-voluptatem
  • aut-deleniti-est-voluptatum-repellat
  • modi-et-quam-sunt-consequatur
  • voluptatem-quia-fugit-ut-perferendis
  • at-adipisci-ducimus-qui-nihil
  • v17.1.1-ee
22 个结果

README.md

Blame
  • .gitlab-ci.yml 1.36 KiB
    image: cirrusci/flutter
    
    stages:
      - check
      - build
      - deploy
    
    code_quality:
      stage: check
      before_script:
        - flutter pub global activate flutter_analyze_reporter
        - export PATH="$PATH:$HOME/.pub-cache/bin"
      script:
        - flutter pub get
        - flutter_analyze_reporter --output=report.json --reporter=gitlab
      artifacts:
        reports:
          codequality: report.json
    
    check:
      stage: check
      script:
        - sh ./scripts/check-all
      coverage: '/lines\.*: \d+\.\d+\%/'
      artifacts:
        name: "test-coverage-report-$CI_COMMIT_SHORT_SHA"
        paths:
          - coverage
        expire_in: 5 days
    
    build-android:
      extends: check
      stage: build
      script:
        - flutter build apk --dart-define=REQUEST_ENV=prod_env
        - export VERSION_APK=$(/opt/android-sdk-linux/build-tools/30.0.3/aapt2 dump badging build/app/outputs/flutter-apk/app-release.apk | grep "versionName" | sed -e "s/.*versionName='//" -e "s/' .*//")
      artifacts:
        paths:
          - build/app/outputs/flutter-apk/app-release.apk
        expire_in: 2 days
    
    build-ios:
      extends: check
      stage: build
      script:
    #    - flutter build ipa
        - echo "Hello World."
    
    upload-apk:
      stage: deploy
      script:
        - 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file build/app/outputs/flutter-apk/app-release.apk "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/jihu-gitlab-app/${VERSION_APK}/app-release.apk"'
      only:
        - main