You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 5, 2022. It is now read-only.
- if [[ "$SNIFF" == "1" ]]; then composer self-update; fi
41
+
- if [[ "$SNIFF" == "1" ]]; then composer require squizlabs/php_codesniffer:dev-master; fi
42
+
- if [[ "$SNIFF" == "1" ]]; then composer require satooshi/php-coveralls:dev-master; fi
43
+
- if [[ "$SNIFF" == "1" ]]; then composer install; fi
44
+
- phpenv rehash
45
+
46
+
script:
47
+
# Search for PHP syntax errors.
48
+
- if [[ "$SNIFF" == "1" ]]; then find -L . -path ./vendor -prune -o -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l; fi
49
+
# Change dir.
50
+
- if [[ "$SNIFF" == "1" ]]; then cd ./vendor/squizlabs/php_codesniffer/; fi
51
+
# Install php_codesniffer deps.
52
+
- if [[ "$SNIFF" == "1" ]]; then composer install; fi
53
+
# - Check files match the PHPCS standard.
54
+
- if [[ "$SNIFF" == "1" ]]; then ./bin/phpcs --ignore=*/Tests/* ../../../CodeIgniter4; fi
55
+
# - Change the default standard.
56
+
- if [[ "$SNIFF" == "1" ]]; then ./bin/phpcs --config-set installed_paths ../../../CodeIgniter4; fi
57
+
# - Verify it's installed.
58
+
- if [[ "$SNIFF" == "1" ]]; then ./bin/phpcs -i; fi
59
+
# - Run unit tests for CodeIgniter4 standard.
60
+
- if [[ "$SNIFF" == "1" ]]; then ./vendor/bin/phpunit --debug --coverage-clover=../../../build/logs/clover.xml --filter CodeIgniter4 ./tests/AllTests.php; fi
61
+
62
+
after_success:
63
+
- if [[ "$SNIFF" == "1" ]]; then cd ../../../; fi
64
+
- if [[ "$SNIFF" == "1" ]]; then php ./vendor/bin/coveralls -v -x ./build/logs/clover.xml; fi
0 commit comments