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

.drone.yml - github.com/nextcloud/user_saml.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b78bb1e8d83160af41f60a9cbde547fc4d8c657c (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
kind: pipeline
name: compatibility

clone:
  depth: 1

steps:
  - name: app-code-check
    image: nextcloudci/php7.2:php7.2-13
    environment:
      APP_NAME: user_saml
      CORE_BRANCH: stable18
      DB: sqlite
    commands:
      - wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
      - bash ./before_install.sh $APP_NAME $CORE_BRANCH $DB
      - cd ../server
      - ./occ app:check-code $APP_NAME -c strong-comparison -c deprecation
      - cd apps/$APP_NAME/

trigger:
  branch:
    - stable-3.1
  event:
    - pull_request
    - push

type: docker

---
kind: pipeline
name: tests-18

clone:
    depth: 1

steps:
    - name: php7.2
      image: nextcloudci/php7.2:php7.2-13
      environment:
          APP_NAME: user_saml
          CORE_BRANCH: stable18
          DB: sqlite
      commands:
          - wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
          - bash ./before_install.sh $APP_NAME $CORE_BRANCH $DB
          - cd ../server/apps/$APP_NAME
          - cd tests/unit/
          - phpunit --configuration phpunit.xml
    - name: php7.3-stable18
      image: nextcloudci/php7.3:php7.3-5
      environment:
          APP_NAME: user_saml
          CORE_BRANCH: stable18
          DB: sqlite
      commands:
          - wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
          - bash ./before_install.sh $APP_NAME $CORE_BRANCH $DB
          - cd ../server/apps/$APP_NAME
          - cd tests/unit/
          - phpunit --configuration phpunit.xml

    - name: integration-tests-stable18
      image: nextcloudci/user_saml_shibboleth-php7.2:user_saml_shibboleth_php7.2-3
      environment:
          CORE_BRANCH: stable18
      commands:
          - /start.sh &
          - sleep 7
          - rm -rf /var/www/html
          - cd /var/www/
          - git clone --depth 1 -b $CORE_BRANCH https://github.com/nextcloud/server html
          - cd /var/www/html && git submodule update --init
          # use local clone
          - cp -r /drone/src /var/www/html/apps/user_saml
          - scl enable rh-php72 "bash -c 'php /var/www/html/occ maintenance:install --database sqlite --admin-pass password; php /var/www/html/occ app:enable user_saml'"
          - chown -R apache:apache /var/www/html/
          - scl enable rh-php72 "bash -c 'cd /var/www/html/apps/user_saml/tests/integration && vendor/bin/behat'"

trigger:
    branch:
        - stable-3.1
    event:
        - pull_request
        - push

type: docker