-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.travis.yml
28 lines (22 loc) · 847 Bytes
/
.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
language: php
php:
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
env:
global:
secure: A2MqbdfarhYnXh9EqiMyWIE/iFDf8Rb9H5LksNFNUJ4GXVy2dUXlYp1nrO81zMNDFyWa4gV+ZrQ5yBe7Jeb9XdoU82HcALt+QejhX2cit7LOUi/346I8gTKLg11wzXsZJ5dmn+47kQ6ibv2MGVhfmPxhasMlmaoq2ZiEZbWUL/8=
before_script:
# update Composer to current version, install Nette Tester & Code Checker
- composer self-update
- composer install --no-interaction --prefer-source
script:
- vendor/bin/tester -p php tests/ -s
- vendor/bin/phpcs --standard=codesniffer.xml --warning-severity=0 src/
- vendor/bin/phpcs --standard=codesniffer.xml --warning-severity=0 tests/
after_success:
- if [ $TRAVIS_PHP_VERSION = '5.6' ] && [ $TRAVIS_BRANCH = 'master' ] && [ $TRAVIS_PULL_REQUEST = 'false' ]; then bash generate-api.sh; fi
dist: trusty
sudo: required