File tree 2 files changed +83
-21
lines changed
2 files changed +83
-21
lines changed Original file line number Diff line number Diff line change @@ -9,3 +9,6 @@ trim_trailing_whitespace = true
9
9
10
10
[* .neon ]
11
11
indent_style = tab
12
+
13
+ [* .yml ]
14
+ indent_size = 2
Original file line number Diff line number Diff line change 1
1
language : php
2
2
3
- php :
4
- - 7.0
5
- - 7.1
6
- - 7.2
7
-
8
3
cache :
9
- directories :
10
- - $HOME/.composer/cache/files
4
+ directories :
5
+ - $HOME/.composer/cache/files
11
6
12
- before_install :
13
- - phpenv config-rm xdebug.ini
14
- - composer validate
7
+ stages :
8
+ - stan
9
+ - test
15
10
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
18
86
19
- script :
20
- - vendor/bin/phpstan analyse -l max -c phpstan.neon src tests
21
- - vendor/bin/phpunit
22
87
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
You can’t perform that action at this time.
0 commit comments