xref: /template/strap/.travis/.travis.yml (revision 04fd306c7c155fa133ebb3669986875d65988276)
1977ce05dSgerardnico# General doc
2977ce05dSgerardnico# https://www.ovh.nl/shared-hosting/persoonlijke-shared-hosting.xml
3977ce05dSgerardnico# and https://github.com/splitbrain/dokuwiki-travis
4977ce05dSgerardnico# and https://www.dokuwiki.org/devel:release_process
5977ce05dSgerardnico
6977ce05dSgerardnicobranches:
7977ce05dSgerardnico  only:
8977ce05dSgerardnico    - main
9977ce05dSgerardnico    - stable
10977ce05dSgerardnico
11977ce05dSgerardnico# https://docs.travis-ci.com/user/build-matrix/#excluding-jobs-with-env-value
12977ce05dSgerardnicojobs:
13977ce05dSgerardnico  include:
14977ce05dSgerardnico    # https://config.travis-ci.com/ref/job/if/condition
15*04fd306cSNickeau    # 7.4 and 8 does not work: https://github.com/splitbrain/dokuwiki/issues/3399
16*04fd306cSNickeau    - if: branch =~ ^main
17*04fd306cSNickeau      language: php
18*04fd306cSNickeau      php: "8.2"
19*04fd306cSNickeau      env: DOKUWIKI=stable # the last version of dokuwiki (master = dev, old-stable = previous)
20*04fd306cSNickeau    - if: branch =~ ^main
21*04fd306cSNickeau      language: php
22*04fd306cSNickeau      php: "8.0"
23*04fd306cSNickeau      env: DOKUWIKI=stable # the last version of dokuwiki (master = dev, old-stable = previous)
24977ce05dSgerardnico    - if: branch =~ ^main
25977ce05dSgerardnico      language: php
26977ce05dSgerardnico      php: "7.4"
27977ce05dSgerardnico      env: DOKUWIKI=stable # the last version of dokuwiki (master = dev, old-stable = previous)
28*04fd306cSNickeau#        -   language: php
29*04fd306cSNickeau#            php: "7.3"
30*04fd306cSNickeau#            env: DOKUWIKI=stable # the last version of dokuwiki (master = dev, old-stable = previous)
31*04fd306cSNickeau#        -   if: branch =~ ^main
32*04fd306cSNickeau#            language: php
33*04fd306cSNickeau#            env: DOKUWIKI=stable # the last version of dokuwiki (master = dev, old-stable = previous)
34*04fd306cSNickeau#            php: "7.2"
35977ce05dSgerardnico
36977ce05dSgerardnico
37977ce05dSgerardnicobefore_script:
38977ce05dSgerardnico  # - set | grep TRAVIS # env variable
39977ce05dSgerardnico  - bash .travis-boot.sh
40977ce05dSgerardnico  - bash boot.sh
41*04fd306cSNickeau  # to install jsdom and execute a page for the test
42*04fd306cSNickeau  - npm install --global yarn
43*04fd306cSNickeau  - yarn
44977ce05dSgerardnico
45977ce05dSgerardnicoscript:
46977ce05dSgerardnico  # with verbose, you see the configuration file used at the beginning
47*04fd306cSNickeau  - cd _test && ./phpunit.phar --stderr --group plugin_combo --verbose --debug --bootstrap ../lib/plugins/combo/_test/bootstrap.php
48*04fd306cSNickeau  - yarn test
49977ce05dSgerardnico
50977ce05dSgerardniconotifications:
51977ce05dSgerardnico  email:
52977ce05dSgerardnico    - support@combostrap.com
53977ce05dSgerardnico
54