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

.travis.yml - github.com/undo-ransomware/ransomware_detection.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f1511c9015d3825ff93ed8d1465170efde953061 (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
language: php

env:
  global:
    - CORE_BRANCH=stable19
    - APP_NAME=ransomware_detection

services:
  - mysql
  - postgresql

branches:
  only:
    - master
    - develop
    - /^feature.*$/

before_install:
  - wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
  - . ./before_install.sh $APP_NAME $CORE_BRANCH $DB
  - cd ../server
  - ./occ check
  - ./occ status
  - ./occ app:enable $APP_NAME
  - ./occ app:list

jobs:
  fast_finish: true
  allow_failures:
    - env: "CHECKSTYLE=2"
  include:
    - stage: test
      php: 7.2
      env: 
        - DB=mysql
      script: 
        - cd apps/$APP_NAME/
        - phpunit --configuration phpunit.xml
    - stage: test
      php: 7.2
      env: 
        - DB=pgsql
      script: 
        - cd apps/$APP_NAME/
        - phpunit --configuration phpunit.xml
    - stage: test
      php: 7.2
      env: 
        - DB=mysql
      script: 
        - cd apps/$APP_NAME/
        - phpunit --configuration phpunit.xml
    - stage: test
      php: 7.2
      env: 
        - DB=mysql
        - CHECKSTYLE=1
      script: 
        - ./occ app:check-code $APP_NAME -c private -c strong-comparison
    - stage: test
      php: 7.2
      env: 
        - DB=mysql
        - CHECKSTYLE=2
      script: 
        - ./occ app:check-code $APP_NAME -c deprecation
    - stage: report
      php: 7.2
      env:
        - DB=sqlite
      script:
        - cd tests
        - wget https://codecov.io/bash -O codecov.sh
        - bash codecov.sh
    - stage: build
      php: 7.2
      env: 
        - DB=sqlite
      script:
        - cd apps/$APP_NAME/
        - make appstore

stages:
  - test
  - report
  - build
  - name: deploy
    if: tag =~ ^[0-9]+\.[0-9]+(\.[0-9]+)?(-[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?$