File tree 2 files changed +21
-16
lines changed
2 files changed +21
-16
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- image : natanfelles/php-base
2
+ image : registry.gitlab.com/aplus-framework/images/base
3
+
4
+ include :
5
+ - template : Security/SAST.gitlab-ci.yml
6
+
7
+ variables :
8
+ SAST_EXCLUDED_PATHS : guide, tests, vendor
3
9
4
10
test:php :
5
11
stage : test
@@ -10,7 +16,7 @@ test:php:
10
16
before_script :
11
17
- composer install
12
18
script :
13
- - composer normalize --dry-run --indent-size=1 --indent-style=tab
19
+ - composer normalize --dry-run --indent-size=4 --indent-style=space
14
20
- vendor/bin/php-cs-fixer fix --diff --dry-run --verbose
15
21
- vendor/bin/phpmd src xml phpmd.xml
16
22
- vendor/bin/phpstan analyse -vvv
@@ -28,12 +34,11 @@ pages:
28
34
- test:php
29
35
environment :
30
36
name : production
31
- url : https://the -framework.gitlab.io
37
+ url : https://aplus -framework.gitlab.io
32
38
script :
33
39
- mkdir public/
34
40
- mv build/coverage/ public/
35
41
- mv build/docs/ public/
36
- - curl -sS https://the-framework.gitlab.io/redirect.php | php
37
42
artifacts :
38
43
paths :
39
44
- public/
Original file line number Diff line number Diff line change 2
2
set -e
3
3
4
4
commands=(
5
- " composer install"
6
- " composer normalize --dry-run --indent-size=1 --indent-style=tab "
7
- " vendor/bin/php-cs-fixer fix --diff --dry-run --verbose"
8
- " vendor/bin/phpmd src xml phpmd.xml"
9
- " vendor/bin/phpstan analyse -vvv"
10
- " vendor/bin/phpunit"
11
- " phpdoc"
5
+ " composer install"
6
+ " composer normalize --dry-run --indent-size=4 --indent-style=space "
7
+ " vendor/bin/php-cs-fixer fix --diff --dry-run --verbose"
8
+ " vendor/bin/phpmd src xml phpmd.xml"
9
+ " vendor/bin/phpstan analyse -vvv"
10
+ " vendor/bin/phpunit"
11
+ " phpdoc"
12
12
)
13
13
14
14
color_default=' \033[0m'
15
15
color_green=' \033[1;32m'
16
16
color_red=' \033[1;31m'
17
17
18
18
for command in " ${commands[@]} " ; do
19
- echo -e " ${color_green} $ ${command}${color_default} "
20
- if ! eval " ${command} " ; then
21
- echo -e " ${color_red} ERROR: Test failed${color_default} "
22
- exit
23
- fi
19
+ echo -e " ${color_green} $ ${command}${color_default} "
20
+ if ! eval " ${command} " ; then
21
+ echo -e " ${color_red} ERROR: Test failed${color_default} "
22
+ exit
23
+ fi
24
24
done
25
25
26
26
echo
You can’t perform that action at this time.
0 commit comments