-
Notifications
You must be signed in to change notification settings - Fork 80
/
.travis.yml
40 lines (31 loc) · 1.02 KB
/
.travis.yml
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
sudo: false
language: php
php:
# - 7.1
- 7.2
- 7.3
- 7.4
services:
- mysql
#matrix:
# allow_failures:
# - php: 7.4snapshot
before_install:
- composer self-update
- cp composer.json.dist composer.json
install:
- composer require xoops/base-requires:dev-master
- composer update
before_script:
- mysql -e 'create database xoops_test;'
- php console/console.php ci-bootstrap
- php console/console.php ci-install
- php console/console.php install-module avatars
- php console/console.php install-module page
script:
- xoops_lib/vendor/bin/phpunit
- wget https://github.com/diff-sniffer/git/releases/download/0.3.2/git-phpcs.phar
- php git-phpcs.phar $TRAVIS_COMMIT_RANGE
after_script:
- if [ "$TRAVIS_PHP_VERSION" != "7.4snapshot" ] && [ "$TRAVIS_PHP_VERSION" != "nightly" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi
- if [ "$TRAVIS_PHP_VERSION" != "7.4snapshot" ] && [ "$TRAVIS_PHP_VERSION" != "nightly" ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi