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

.travis.yml - github.com/nextcloud/registration.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: daf1551823654f6c57576976b1640269aeae911c (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
sudo: false
language: php
php:
  - 7.1
  - 7.2
  - 7.3

cache:
  directories:
    - $HOME/.composer/cache/files

services:
  - mysql
  - postgresql

addons:
  apt:
    packages:
    - libxml2-utils

env:
  global:
    - PHP_COVERAGE=FALSE
  matrix:
    # Nextcloud 16+
    - CORE_TYPE=nextcloud CORE_BRANCH=master    DB=sqlite
    - CORE_TYPE=nextcloud CORE_BRANCH=stable18  DB=sqlite
    - CORE_TYPE=nextcloud CORE_BRANCH=stable17  DB=sqlite
    - CORE_TYPE=nextcloud CORE_BRANCH=stable16  DB=sqlite

    - CORE_TYPE=nextcloud CORE_BRANCH=master    DB=mysql
    - CORE_TYPE=nextcloud CORE_BRANCH=stable18  DB=mysql
    - CORE_TYPE=nextcloud CORE_BRANCH=stable17  DB=mysql
    - CORE_TYPE=nextcloud CORE_BRANCH=stable16  DB=mysql

    - CORE_TYPE=nextcloud CORE_BRANCH=master    DB=pgsql
    - CORE_TYPE=nextcloud CORE_BRANCH=stable18  DB=pgsql
    - CORE_TYPE=nextcloud CORE_BRANCH=stable17  DB=pgsql
    - CORE_TYPE=nextcloud CORE_BRANCH=stable16  DB=pgsql

    # ownCloud 10.4+
    # ownCloud does not seem to maintain old stable branches anymore, so I can only test master
    - CORE_TYPE=owncloud CORE_BRANCH=master     DB=sqlite

    - CORE_TYPE=owncloud CORE_BRANCH=master     DB=mysql

    - CORE_TYPE=owncloud CORE_BRANCH=master     DB=pgsql

matrix:
  fast_finish: true
  exclude:

  include:

before_install:
  # XDebug is only needed if we report coverage -> speeds up other builds
  - if [[ "$PHP_COVERAGE" = "FALSE" ]]; then phpenv config-rm xdebug.ini; fi

install:
  - . ./tests/scripts/core-download.sh
  - . ${BUILD_APP_MODULE_DIR}/tests/scripts/core-database.sh
  - . ${BUILD_APP_MODULE_DIR}/tests/scripts/core-setup.sh

script:
  # Check info.xml schema validity
  - . ${BUILD_APP_MODULE_DIR}/tests/scripts/lint-appinfo.sh

  # Check PHP syntax errors
  - . ${BUILD_APP_MODULE_DIR}/tests/scripts/lint-php.sh

  # Run app code checker but do not fail, as we have to use private API for now
  - . ${BUILD_APP_MODULE_DIR}/tests/scripts/app-check-code.sh || true

  # Run PHP tests
  - . ${BUILD_APP_MODULE_DIR}/tests/scripts/phpunit.sh