mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 02:18:39 +00:00
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:
parent
aa51613a1d
commit
d08593e8d6
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user