aboutsummaryrefslogtreecommitdiff
path: root/wallet/.gitlab-ci.yml
blob: aedecb01a63746543e4ed9841f22cd12e48a60b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
wallet_test:
  stage: test
  only:
    changes:
      - wallet/**/*
      - taler-kotlin-common/**/*
      - taler-kotlin-android/**/*
      - build.gradle
  script: ./gradlew :wallet:check :wallet:assembleRelease
  artifacts:
    paths:
      - wallet/build/reports/lint-results.html
    expire_in: 1 week

wallet_deploy_nightly:
  stage: deploy
  resource_group: deploy_nightly
  only:
    changes:
      - wallet/**/*
    refs:
      - master
  needs: ["wallet_test"]
  script:
    # Ensure that key exists
    - test -z "$DEBUG_KEYSTORE" && exit 0
    # Build the APK
    - ./gradlew :wallet:assembleNightlyRelease
    # Rename APK, so fdroid nightly accepts it (looks for *-debug.apk)
    - mv wallet/build/outputs/apk/nightly/release/*.apk wallet-debug.apk
    # install fdroidserver and dependencies for nightly publishing
    - apt update && apt-get -qy install --no-install-recommends python3-pip openssh-client rsync
    - python3 -m pip install --upgrade pip wheel setuptools
    - python3 -m pip install git+https://gitlab.com/fdroid/fdroidserver.git
    - fdroid --version
    - CI_PROJECT_URL="https://gitlab.com/gnu-taler/fdroid-repo" CI_PROJECT_PATH="gnu-taler/fdroid-repo" fdroid nightly -v --archive-older 6