Only run unit tests on 7.2 (#9201)

* Only run unit tests on 7.2
Move style check to 7.1

* stop build when a script fails
This commit is contained in:
Tony Murray 2018-09-13 12:18:42 -05:00 committed by GitHub
parent aa51613a1d
commit d08593e8d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 4 deletions

View File

@ -6,12 +6,13 @@ matrix:
fast_finish: true
include:
- php: 7.2
env: SKIP_STYLE_CHECK=1
- php: 7.1
env: SKIP_STYLE_CHECK=1
env: SKIP_UNIT_CHECK=1
- php: 7.0
env: SKIP_STYLE_CHECK=1
env: SKIP_STYLE_CHECK=1 SKIP_UNIT_CHECK=1
- php: 5.6
env: SKIP_STYLE_CHECK=1 EXECUTE_BUILD_DOCS=true
env: SKIP_STYLE_CHECK=1 SKIP_UNIT_CHECK=1 EXECUTE_BUILD_DOCS=true
# - php: hhvm
# env: SKIP_STYLE_CHECK=1
@ -38,9 +39,11 @@ after_failure:
- tail /tmp/snmpsimd.log
script:
- set -e
- php scripts/pre-commit.php -q -l
- php scripts/pre-commit.php -q -s
- php scripts/pre-commit.php -u --db --snmpsim --fail-fast
- bash -n daily.sh
- pylint -E poller-wrapper.py discovery-wrapper.py
- bash scripts/deploy-docs.sh
- set +e

View File

@ -119,7 +119,7 @@ function run_check($type, $passthru, $command_only, $options = array())
{
global $completed_tests;
if (getenv('SKIP_' . strtoupper($type) . '_CHECK') || $completed_tests[$type]) {
echo ucfirst($type) . ' check skipped.';
echo ucfirst($type) . " check skipped.\n";
return 0;
}