aboutsummaryrefslogtreecommitdiffhomepage
path: root/.travis.yml
blob: d7460947383a0e595f472908da81ffcec78ef040 (plain) (blame)
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
dist: bionic

matrix:
  include:
    # jobs for each supported php version
    - language: php
      php: nightly # PHP 8.0
      install:
        - composer self-update --2
        - composer update --ignore-platform-req=php
        - composer remove --dev --ignore-platform-req=php phpunit/phpunit
        - composer require --dev --ignore-platform-req=php phpunit/php-text-template ^2.0
        - composer require --dev --ignore-platform-req=php phpunit/phpunit ^9.0
    - language: php
      php: 7.4
    - language: php
      php: 7.3
    - language: php
      php: 7.2
    - language: php
      php: 7.1
    # jobs for frontend builds
    - language: node_js
      node_js: 10
      cache:
        yarn: true
        directories:
          - $HOME/.cache/yarn
      install:
        - yarn install
      before_script:
        - PATH=${PATH//:\.\/node_modules\/\.bin/}
      script:
        - yarn run build # verify successful frontend builds
        - make eslint # javascript static analysis
        - make sasslint # linter for SASS syntax
    # jobs for documentation builds
    - language: python
      python: 3.6
      cache:
        directories:
          - $HOME/.cache/pip
      install:
        - pip install mkdocs
      script:
        - mkdocs build --clean

cache:
  directories:
    - $HOME/.composer/cache

install:
  # install/update composer and php dependencies
  - composer config --unset platform && composer config platform.php $TRAVIS_PHP_VERSION
  - composer update

before_script:
  - PATH=${PATH//:\.\/node_modules\/\.bin/}

script:
  - make clean
  - make check_permissions
  - make all_tests