1# General doc
2# https://www.ovh.nl/shared-hosting/persoonlijke-shared-hosting.xml
3# and https://github.com/splitbrain/dokuwiki-travis
4# and https://www.dokuwiki.org/devel:release_process
5
6branches:
7    only:
8        - main
9        - stable
10
11# https://docs.travis-ci.com/user/build-matrix/#excluding-jobs-with-env-value
12jobs:
13    include:
14        # https://config.travis-ci.com/ref/job/if/condition
15        # 7.4 and 9 does not work: https://github.com/splitbrain/dokuwiki/issues/3399
16#        -   if: branch =~ ^main
17#            language: php
18#            php: "8.0"
19#            env: DOKUWIKI=stable # the last version of dokuwiki (master = dev, old-stable = previous)
20        -   if: branch =~ ^main
21            language: php
22            php: "7.4"
23            env: DOKUWIKI=stable # the last version of dokuwiki (master = dev, old-stable = previous)
24        -   language: php
25            php: "7.3"
26            env: DOKUWIKI=stable # the last version of dokuwiki (master = dev, old-stable = previous)
27        -   if: branch =~ ^main
28            language: php
29            env: DOKUWIKI=stable # the last version of dokuwiki (master = dev, old-stable = previous)
30            php: "7.2"
31
32
33before_script:
34    # - set | grep TRAVIS # env variable
35    - bash .travis-boot.sh
36    - bash boot.sh
37
38script:
39    # with verbose, you see the configuration file used at the beginning
40    - cd _test && ./phpunit.phar --stderr --group plugin_combo --verbose --debug
41
42notifications:
43    email:
44        - support@combostrap.com
45
46