aboutsummaryrefslogtreecommitdiffhomepage
path: root/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml26
1 files changed, 18 insertions, 8 deletions
diff --git a/.travis.yml b/.travis.yml
index d04a45d1..d7460947 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,6 +2,15 @@ dist: bionic
2 2
3matrix: 3matrix:
4 include: 4 include:
5 # jobs for each supported php version
6 - language: php
7 php: nightly # PHP 8.0
8 install:
9 - composer self-update --2
10 - composer update --ignore-platform-req=php
11 - composer remove --dev --ignore-platform-req=php phpunit/phpunit
12 - composer require --dev --ignore-platform-req=php phpunit/php-text-template ^2.0
13 - composer require --dev --ignore-platform-req=php phpunit/phpunit ^9.0
5 - language: php 14 - language: php
6 php: 7.4 15 php: 7.4
7 - language: php 16 - language: php
@@ -10,23 +19,22 @@ matrix:
10 php: 7.2 19 php: 7.2
11 - language: php 20 - language: php
12 php: 7.1 21 php: 7.1
22 # jobs for frontend builds
13 - language: node_js 23 - language: node_js
14 node_js: 8 24 node_js: 10
15 cache: 25 cache:
16 yarn: true 26 yarn: true
17 directories: 27 directories:
18 - $HOME/.cache/yarn 28 - $HOME/.cache/yarn
19
20 install: 29 install:
21 - yarn install 30 - yarn install
22
23 before_script: 31 before_script:
24 - PATH=${PATH//:\.\/node_modules\/\.bin/} 32 - PATH=${PATH//:\.\/node_modules\/\.bin/}
25
26 script: 33 script:
27 - yarn run build # Just to be sure that the build isn't broken 34 - yarn run build # verify successful frontend builds
28 - make eslint 35 - make eslint # javascript static analysis
29 - make sasslint 36 - make sasslint # linter for SASS syntax
37 # jobs for documentation builds
30 - language: python 38 - language: python
31 python: 3.6 39 python: 3.6
32 cache: 40 cache:
@@ -42,7 +50,9 @@ cache:
42 - $HOME/.composer/cache 50 - $HOME/.composer/cache
43 51
44install: 52install:
45 - composer install --prefer-dist 53 # install/update composer and php dependencies
54 - composer config --unset platform && composer config platform.php $TRAVIS_PHP_VERSION
55 - composer update
46 56
47before_script: 57before_script:
48 - PATH=${PATH//:\.\/node_modules\/\.bin/} 58 - PATH=${PATH//:\.\/node_modules\/\.bin/}