Skip to content

Commit 82d290f

Browse files
committed
SDK-874: Add .travis.yml
1 parent 159b22f commit 82d290f

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.travis.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
language: php
2+
3+
php:
4+
- 5.6
5+
- 7.2
6+
- 7.3
7+
8+
before_script:
9+
- echo 'error_log=/dev/null' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
10+
- travis_retry composer self-update
11+
- travis_retry composer update --no-interaction --prefer-source --dev
12+
13+
script:
14+
- vendor/bin/phpunit
15+
- vendor/bin/phpcs --standard=psr2 ./src/Yoti
16+

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@
4949
},
5050
"require-dev": {
5151
"php": ">=5.6.0",
52-
"phpunit/phpunit": "5.7.*"
52+
"phpunit/phpunit": "5.7.*",
53+
"squizlabs/php_codesniffer": "3.*"
5354
},
5455
"autoload-dev": {
5556
"psr-4": {

0 commit comments

Comments
 (0)