forked from fabacab/secure-shred
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
29 lines (25 loc) · 830 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
29
---
language: php
php:
- 5.4
- 5.5
- 5.6
- 7.1
- 7.2
- 7.3
- nightly
cache:
directories:
- $HOME/.composer/cache/files
before_script:
- if [ $(phpenv version-name) != "5.4" ] && [ $(phpenv version-name) != "5.5" ] && [ $(phpenv version-name) != "5.6" ]; then composer install; fi
- if [ $(phpenv version-name) = "5.4" ] || [ $(phpenv version-name) = "5.5" ] || [ $(phpenv version-name) = "5.6" ]; then composer update && composer require --dev paragonie/random_compat:2.0.17; fi
script: composer test
jobs:
include:
- stage: Static Code Analysis
php: 7.2
before_script:
- composer require --dev friendsofphp/php-cs-fixer
script:
- vendor/bin/php-cs-fixer fix --config=.php_cs.dist --using-cache=no --dry-run -v --show-progress=dots --diff-format=udiff src tests