]> git.immae.eu Git - github/shaarli/Shaarli.git/blob - .travis.yml
Run CI against PHP 8.0
[github/shaarli/Shaarli.git] / .travis.yml
1 dist: bionic
2
3 matrix:
4 include:
5 # jobs for each supported php version
6 - language: php
7 php: nightly # PHP 8.0
8 - language: php
9 php: 7.4
10 - language: php
11 php: 7.3
12 - language: php
13 php: 7.2
14 - language: php
15 php: 7.1
16 # jobs for frontend builds
17 - language: node_js
18 node_js: 10
19 cache:
20 yarn: true
21 directories:
22 - $HOME/.cache/yarn
23 install:
24 - yarn install
25 before_script:
26 - PATH=${PATH//:\.\/node_modules\/\.bin/}
27 script:
28 - yarn run build # verify successful frontend builds
29 - make eslint # javascript static analysis
30 - make sasslint # linter for SASS syntax
31 # jobs for documentation builds
32 - language: python
33 python: 3.6
34 cache:
35 directories:
36 - $HOME/.cache/pip
37 install:
38 - pip install mkdocs
39 script:
40 - mkdocs build --clean
41
42 cache:
43 directories:
44 - $HOME/.composer/cache
45
46 install:
47 # install/update composer and php dependencies
48 - if [[ $TRAVIS_PHP_VERSION == "nightly" ]]; then export TRAVIS_PHP_VERSION="8.0.0"; fi
49 - composer config --unset platform && composer config platform.php $TRAVIS_PHP_VERSION
50 - composer update
51
52 before_script:
53 - PATH=${PATH//:\.\/node_modules\/\.bin/}
54
55 script:
56 - make clean
57 - make check_permissions
58 - make all_tests