Skip to content
Snippets Groups Projects
.drone.yml 53.68 KiB
kind: pipeline
name: jsunit

steps:
- name: jsunit
  image: nextcloudci/jsunit:jsunit-5
  commands:
    - ./autotest-js.sh
    - curl -o codecov.sh https://codecov.io/bash
    - sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5; fi"
    - sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5; fi"

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

---
kind: pipeline
name: checkers

steps:
- name: submodules
  image: docker:git
  commands:
    - git submodule update --init
- name: checkers
  image: nextcloudci/php7.2:php7.2-13
  commands:
    - ./autotest-checkers.sh
  secrets: [ github_token ]

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

#---
#kind: pipeline
#name: syntax-and-phan
#
#steps:
#- name: submodules
#  image: docker:git
#  commands:
#    - git submodule update --init
#- name: phan
#  image: nextcloudci/php7.2:php7.2-13
#  commands:
#    - composer install
#    - composer require --dev "phan/phan:0.11.1"
#    - ./lib/composer/phan/phan/phan -k build/.phan/config.php
#    - php ./build/.phan/plugin-checker.php
#
#trigger:
#  branch:
#    - master
#    - stable*
#  event:
#    - pull_request
#    - push

---
kind: pipeline