forked from XOOPS/XoopsCore
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
37 lines (29 loc) · 1.05 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
sudo: false
language: php
php:
- 7.1
- 7.2
- 7.3
# - 7.4snapshot
#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.2.0/git-phpcs.phar
- php git-phpcs.phar --extensions=php origin/$TRAVIS_BRANCH...$TRAVIS_PULL_REQUEST_SHA
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