aboutsummaryrefslogtreecommitdiffhomepage
path: root/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml29
1 files changed, 19 insertions, 10 deletions
diff --git a/.travis.yml b/.travis.yml
index f466c317..d7460947 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,8 +1,16 @@
1sudo: false 1dist: bionic
2dist: trusty
3 2
4matrix: 3matrix:
5 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
6 - language: php 14 - language: php
7 php: 7.4 15 php: 7.4
8 - language: php 16 - language: php
@@ -11,23 +19,22 @@ matrix:
11 php: 7.2 19 php: 7.2
12 - language: php 20 - language: php
13 php: 7.1 21 php: 7.1
22 # jobs for frontend builds
14 - language: node_js 23 - language: node_js
15 node_js: 8 24 node_js: 10
16 cache: 25 cache:
17 yarn: true 26 yarn: true
18 directories: 27 directories:
19 - $HOME/.cache/yarn 28 - $HOME/.cache/yarn
20
21 install: 29 install:
22 - yarn install 30 - yarn install
23
24 before_script: 31 before_script:
25 - PATH=${PATH//:\.\/node_modules\/\.bin/} 32 - PATH=${PATH//:\.\/node_modules\/\.bin/}
26
27 script: 33 script:
28 - yarn run build # Just to be sure that the build isn't broken 34 - yarn run build # verify successful frontend builds
29 - make eslint 35 - make eslint # javascript static analysis
30 - make sasslint 36 - make sasslint # linter for SASS syntax
37 # jobs for documentation builds
31 - language: python 38 - language: python
32 python: 3.6 39 python: 3.6
33 cache: 40 cache:
@@ -43,7 +50,9 @@ cache:
43 - $HOME/.composer/cache 50 - $HOME/.composer/cache
44 51
45install: 52install:
46 - 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
47 56
48before_script: 57before_script:
49 - PATH=${PATH//:\.\/node_modules\/\.bin/} 58 - PATH=${PATH//:\.\/node_modules\/\.bin/}