-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (29 loc) · 1.11 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
language: php
php:
- 7.2
before_install:
- export CI_BUILD_NUMBER="$TRAVIS_BUILD_NUMBER"
- export CI_PULL_REQUEST="$TRAVIS_PULL_REQUEST"
- export CI_BRANCH="$TRAVIS_BRANCH"
# - composer require php-coveralls/php-coveralls '^2.1'
- git clone -b master --depth 1 https://github.com/squizlabs/PHP_CodeSniffer.git /tmp/phpcs
# - git clone -b master https://github.com/gamcoh/Gamzer-PHP-Standard.git /tmp/Gamzer-PHP-Standard
# - /tmp/phpcs/bin/phpcs --config-set installed_paths /tmp/Gamzer-PHP-Standard/
install:
- composer install
#before_script:
# - travis_retry composer self-update
# - travis_retry composer install --prefer-source --no-interaction
# - mkdir -p tests/logs
#
## - ./vendor/bin/phpunit -c ./ --coverage-text --coverage-clover tests/logs/clover.xml
# - /tmp/phpcs/bin/phpcs --config-set colors 1
# - /tmp/phpcs/bin/phpcs ./system --standard=psr2
# - /tmp/phpcs/bin/phpcs . --standard=./phpcs.xml
script:
- /tmp/phpcs/bin/phpcs --config-set colors 1
- /tmp/phpcs/bin/phpcs ./system --standard=psr2
#after_script:
# - php ./vendor/bin/php-coveralls -v
#matrix:
# fast_finish: true