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 8 does not work: https://github.com/splitbrain/dokuwiki/issues/3399
16    - if: branch =~ ^main
17      language: php
18      php: "8.2"
19      env: DOKUWIKI=stable # the last version of dokuwiki (master = dev, old-stable = previous)
20    - if: branch =~ ^main
21      language: php
22      php: "8.0"
23      env: DOKUWIKI=stable # the last version of dokuwiki (master = dev, old-stable = previous)
24    - if: branch =~ ^main
25      language: php
26      php: "7.4"
27      env: DOKUWIKI=stable # the last version of dokuwiki (master = dev, old-stable = previous)
28#        -   language: php
29#            php: "7.3"
30#            env: DOKUWIKI=stable # the last version of dokuwiki (master = dev, old-stable = previous)
31#        -   if: branch =~ ^main
32#            language: php
33#            env: DOKUWIKI=stable # the last version of dokuwiki (master = dev, old-stable = previous)
34#            php: "7.2"
35
36
37before_script:
38  # - set | grep TRAVIS # env variable
39  - bash .travis-boot.sh
40  - bash boot.sh
41  # to install jsdom and execute a page for the test
42  - npm install --global yarn
43  - yarn
44
45script:
46  # with verbose, you see the configuration file used at the beginning
47  - cd _test && ./phpunit.phar --stderr --group plugin_combo --verbose --debug --bootstrap ../lib/plugins/combo/_test/bootstrap.php
48  - yarn test
49
50notifications:
51  email:
52    - support@combostrap.com
53
54