File: .travis.yml

package info (click to toggle)
icingaweb2-module-director 1.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 8,464 kB
  • sloc: php: 60,573; sql: 7,643; javascript: 585; sh: 365; xml: 37; makefile: 18
file content (44 lines) | stat: -rw-r--r-- 946 bytes parent folder | download
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
language: php
php:
  - '5.4'
  - '5.5'
  - '5.6'
  - '7.0'
  - '7.1'
  - '7.2'
  - '7.3'
  - nightly

services:
  - mysql
  - postgresql

cache:
  directories:
    - vendor

matrix:
  fast_finish: true
  include:
    - env: CHECK=phpcs
      php: nightly # Note: will be allowed failure
    - env: CHECK=phpcs
      php: '7.0'
    - env: CHECK=phpcs
      php: '5.4'
  allow_failures:
    - php: nightly
    - php: '7.3'

env:
  - CHECK=phpunit DB=mysql DIRECTOR_TESTDB_RES="Director MySQL TestDB" DIRECTOR_TESTDB="director_test"
  - CHECK=phpunit DB=pgsql DIRECTOR_TESTDB_RES="Director PostgreSQL TestDB" DIRECTOR_TESTDB="director_test"
    DIRECTOR_TESTDB_USER="director_test"

before_script:
  - ./test/setup_vendor.sh
  - '[ "$CHECK" != phpunit ] || ./test/travis-prepare.sh'

script:
  - '[ "$CHECK" != phpcs ] || php vendor/phpcs.phar'
  - '[ "$CHECK" != phpunit ] || php vendor/phpunit.phar --testdox || php vendor/phpunit.phar --verbose'