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

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

services:
  - docker

addons:
  apt:
    packages:
      - alien
      - libaio1

cache:
  directories:
    - docker
  apt: true

env:
  global:
    - CORE_BRANCH=master
    - APP_NAME=notifications
  matrix:
    - DB=sqlite

branches:
  only:
    - master
    - /^stable\d+(\.\d+)?$/

before_install:
  - wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
  - . ./before_install.sh $APP_NAME $CORE_BRANCH $DB
  - sh -c "if [ -f ../server/data/nextcloud.log ]; then cat ../server/data/nextcloud.log; fi"

  # Add some output debugging information
  - cd ../server
  - ./occ check
  - ./occ status
  - ./occ app:list
  - ./occ app:enable $APP_NAME
  - ./occ app:list

  # Setup behat for integration tests
  - cd apps/$APP_NAME/
  - cd tests/Integration/
  - sh -c "if [ '$INTEGRATION' = '1' ]; then composer install; fi"
  - cd ../../

script:
  # Test the app
  - sh -c "if [ '$CODECHECK' = '1' ]; then find . -name \*.php -exec php -l \"{}\" \;; fi"
  - cd ../../
  - sh -c "if [ '$CODECHECK' = '1' ]; then ./occ app:check-code $APP_NAME -c private -c strong-comparison; fi"
  - sh -c "if [ '$CODECHECK' = '2' ]; then ./occ app:check-code $APP_NAME -c deprecation; fi"
  - cd apps/$APP_NAME/

  # Run phpunit tests
  - cd tests/Unit
  - sh -c "if [ '$INTEGRATION' != '1' -a '$JSTESTS' != '1' -a '$CODECHECK' != '1' -a '$CODECHECK' != '2' ]; then phpunit --configuration phpunit.xml; fi"
  - cd ../..

  # Integration tests
  - cd tests/Integration
  - sh -c "if [ '$INTEGRATION' = '1' ]; then bash run.sh; fi"
  - cd ../..

matrix:
  include:
    - php: 7.1
      env: DB=mysql
    - php: 7.1
      env: DB=pgsql
    - php: 7.1
      env: DB=oracle
    - php: 7.1
      env: DB=mysql;CODECHECK=1
    - php: 7.1
      env: DB=mysql;CODECHECK=2
    - php: 7.1
      env: DB=mysql;INTEGRATION=1
  allow_failures:
    - env: DB=mysql;CODECHECK=2
  fast_finish: true