Welcome to mirror list, hosted at ThFree Co, Russian Federation.

.drone.yml - github.com/nextcloud/talk-android.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 559e4041225be24e2cf364e9b742c7951ca1b457 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
kind: pipeline
type: docker
name: generic

steps:
  - name: generic
    image: ghcr.io/nextcloud/continuous-integration-android8:2
    commands:
      - ./gradlew --console=plain assembleGeneric

trigger:
  branch:
    - master
    - stable-*
  event:
    - pull_request
    - push

---
kind: pipeline
type: docker
name: gplay

steps:
  - name: gplay
    image: ghcr.io/nextcloud/continuous-integration-android8:2
    commands:
      - ./gradlew --console=plain assembleGplay

trigger:
  branch:
    - master
    - stable-*
  event:
    - push
    - pull_request

---
kind: pipeline
type: docker
name: tests

steps:
  - name: all
    image: ghcr.io/nextcloud/continuous-integration-android8:2
    privileged: true
    commands:
      - emulator -avd android -no-snapshot -gpu swiftshader_indirect -no-window -no-audio -skin 500x833 &
      - scripts/wait_for_emulator.sh
      - ./gradlew --console=plain testGplayDebugUnitTest connectedGplayDebugAndroidTest

services:
  - name: server
    image: nextcloudci/server:server-17
    environment:
      EVAL: "true"
    commands:
      - BRANCH='stable23' /usr/local/bin/initnc.sh
      - echo 127.0.0.1 server >> /etc/hosts
      - su www-data -c "OC_PASS=user1 php /var/www/html/occ user:add --password-from-env --display-name='User One' user1"
      - su www-data -c "OC_PASS=user2 php /var/www/html/occ user:add --password-from-env --display-name='User Two' user2"
      - su www-data -c "OC_PASS=user3 php /var/www/html/occ user:add --password-from-env --display-name='User Three' user3"
      - su www-data -c "php /var/www/html/occ user:setting user2 files quota 1G"
      - su www-data -c "php /var/www/html/occ group:add users"
      - su www-data -c "php /var/www/html/occ group:adduser users user1"
      - su www-data -c "php /var/www/html/occ group:adduser users user2"
      - su www-data -c "git clone -b stable23 https://github.com/nextcloud/spreed.git /var/www/html/apps/spreed/"
      - su www-data -c "php /var/www/html/occ app:enable spreed"
      - /usr/local/bin/run.sh

trigger:
  branch:
    - master
    - stable-*
  event:
    - push
    - pull_request

---
kind: pipeline
type: docker
name: analysis

steps:
  - name: analysis
    image: ghcr.io/nextcloud/continuous-integration-android8:2
    environment:
      GIT_USERNAME:
        from_secret: GIT_USERNAME
      GIT_TOKEN:
        from_secret: GIT_TOKEN
      LOG_USERNAME:
        from_secret: LOG_USERNAME
      LOG_PASSWORD:
        from_secret: LOG_PASSWORD
    commands:
      - export BRANCH=$(scripts/analysis/getBranchName.sh $GIT_USERNAME $GIT_TOKEN $DRONE_PULL_REQUEST)
      - scripts/analysis/analysis-wrapper.sh $GIT_USERNAME $GIT_TOKEN $BRANCH $LOG_USERNAME $LOG_PASSWORD $DRONE_BUILD_NUMBER $DRONE_PULL_REQUEST

  - name: notify
    image: drillster/drone-email
    host: $EMAIL_HOST
    port: 587
    username: $EMAIL_USERNAME
    password: $EMAIL_PASSWORD
    from: nextcloud-drone@kaminsky.me
    skip_verify: true
    recipients_only: true
    recipients: [ $EMAIL_RECIPIENTS ]
    environment:
      EMAIL_USERNAME:
        from_secret: EMAIL_USERNAME
      EMAIL_PASSWORD:
        from_secret: EMAIL_PASSWORD
      EMAIL_RECIPIENTS:
        from_secret: EMAIL_RECIPIENTS
      EMAIL_HOST:
        from_secret: EMAIL_HOST
    when:
      event:
        - push
      status:
        - failure
      branch:
        - master

trigger:
  branch:
    - master
    - stable-*
  event:
    - push
    - pull_request