Skip to content

Commit 2547abc

Browse files
authored
Merge pull request #18 from localheinz/feature/dependencies
Enhancement: Run tests against lowest, locked, and highest dependencies
2 parents 0485a2b + ae9a67e commit 2547abc

File tree

2 files changed

+83
-21
lines changed

2 files changed

+83
-21
lines changed

.editorconfig

+3
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ trim_trailing_whitespace = true
99

1010
[*.neon]
1111
indent_style = tab
12+
13+
[*.yml]
14+
indent_size = 2

.travis.yml

+80-21
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,87 @@
11
language: php
22

3-
php:
4-
- 7.0
5-
- 7.1
6-
- 7.2
7-
83
cache:
9-
directories:
10-
- $HOME/.composer/cache/files
4+
directories:
5+
- $HOME/.composer/cache/files
116

12-
before_install:
13-
- phpenv config-rm xdebug.ini
14-
- composer validate
7+
stages:
8+
- stan
9+
- test
1510

16-
install:
17-
- composer update --prefer-dist --prefer-stable --no-interaction
11+
jobs:
12+
include:
13+
- stage: Stan
14+
15+
php: 7.2
16+
17+
install:
18+
- composer install
19+
20+
script:
21+
- vendor/bin/phpstan analyse -l max -c phpstan.neon src tests
22+
23+
- &TEST
24+
25+
stage: Test
26+
27+
php: 7.0
28+
29+
env: WITH_LOWEST=true
30+
31+
install:
32+
- if [[ "$WITH_LOWEST" == "true" ]]; then composer update --prefer-lowest; fi
33+
- if [[ "$WITH_LOCKED" == "true" ]]; then composer install; fi
34+
- if [[ "$WITH_HIGHEST" == "true" ]]; then composer update; fi
35+
36+
script:
37+
- vendor/bin/phpunit
38+
39+
- <<: *TEST
40+
41+
php: 7.0
42+
43+
env: WITH_LOCKED=true
44+
45+
- <<: *TEST
46+
47+
php: 7.0
48+
49+
env: WITH_HIGHEST=true
50+
51+
- <<: *TEST
52+
53+
php: 7.1
54+
55+
env: WITH_LOWEST=true
56+
57+
- <<: *TEST
58+
59+
php: 7.1
60+
61+
env: WITH_LOCKED=true
62+
63+
- <<: *TEST
64+
65+
php: 7.1
66+
67+
env: WITH_HIGHEST=true
68+
69+
- <<: *TEST
70+
71+
php: 7.2
72+
73+
env: WITH_LOWEST=true
74+
75+
- <<: *TEST
76+
77+
php: 7.2
78+
79+
env: WITH_LOCKED=true
80+
81+
- <<: *TEST
82+
83+
php: 7.2
84+
85+
env: WITH_HIGHEST=true
1886

19-
script:
20-
- vendor/bin/phpstan analyse -l max -c phpstan.neon src tests
21-
- vendor/bin/phpunit
2287

23-
jobs:
24-
include:
25-
- stage: Test
26-
php: 7.0
27-
env: PREFER_LOWEST=true
28-
install: composer update --prefer-lowest --prefer-dist --prefer-stable --no-interaction

0 commit comments

Comments
 (0)