diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-10-13 12:05:08 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2020-10-13 12:05:08 +0200 |
commit | b6f678a5a1d15acf284ebcec16c905e976671ce1 (patch) | |
tree | 33c7da831482ed79c44896ef19c73c72ada84f2e /.travis.yml | |
parent | b14687036b9b800681197f51fdc47e62f0c88e2e (diff) | |
parent | 1c1520b6b98ab20201bfe15577782a52320339df (diff) | |
download | Shaarli-b6f678a5a1d15acf284ebcec16c905e976671ce1.tar.gz Shaarli-b6f678a5a1d15acf284ebcec16c905e976671ce1.tar.zst Shaarli-b6f678a5a1d15acf284ebcec16c905e976671ce1.zip |
Merge branch 'v0.12' into latest
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/.travis.yml b/.travis.yml index d1415423..d7460947 100644 --- a/.travis.yml +++ b/.travis.yml | |||
@@ -1,31 +1,40 @@ | |||
1 | sudo: false | 1 | dist: bionic |
2 | dist: trusty | ||
3 | 2 | ||
4 | matrix: | 3 | matrix: |
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 | ||
14 | - language: php | ||
15 | php: 7.4 | ||
6 | - language: php | 16 | - language: php |
7 | php: 7.3 | 17 | php: 7.3 |
8 | - language: php | 18 | - language: php |
9 | php: 7.2 | 19 | php: 7.2 |
10 | - language: php | 20 | - language: php |
11 | php: 7.1 | 21 | php: 7.1 |
22 | # jobs for frontend builds | ||
12 | - language: node_js | 23 | - language: node_js |
13 | node_js: 8 | 24 | node_js: 10 |
14 | cache: | 25 | cache: |
15 | yarn: true | 26 | yarn: true |
16 | directories: | 27 | directories: |
17 | - $HOME/.cache/yarn | 28 | - $HOME/.cache/yarn |
18 | |||
19 | install: | 29 | install: |
20 | - yarn install | 30 | - yarn install |
21 | |||
22 | before_script: | 31 | before_script: |
23 | - PATH=${PATH//:\.\/node_modules\/\.bin/} | 32 | - PATH=${PATH//:\.\/node_modules\/\.bin/} |
24 | |||
25 | script: | 33 | script: |
26 | - yarn run build # Just to be sure that the build isn't broken | 34 | - yarn run build # verify successful frontend builds |
27 | - make eslint | 35 | - make eslint # javascript static analysis |
28 | - make sasslint | 36 | - make sasslint # linter for SASS syntax |
37 | # jobs for documentation builds | ||
29 | - language: python | 38 | - language: python |
30 | python: 3.6 | 39 | python: 3.6 |
31 | cache: | 40 | cache: |
@@ -41,7 +50,9 @@ cache: | |||
41 | - $HOME/.composer/cache | 50 | - $HOME/.composer/cache |
42 | 51 | ||
43 | install: | 52 | install: |
44 | - 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 | ||
45 | 56 | ||
46 | before_script: | 57 | before_script: |
47 | - PATH=${PATH//:\.\/node_modules\/\.bin/} | 58 | - PATH=${PATH//:\.\/node_modules\/\.bin/} |