coveragespace.services   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 12
dl 0
loc 24
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Function

Rating   Name   Duplication   Size   Complexity  
A detected() 0 2 1
1
"""Utilities to detect when this program is running on external services."""
2
3 1
import os
4
5
6 1
CONTINUOUS_INTEGRATION = [
7
    # General
8
    'CI',
9
    'CONTINUOUS_INTEGRATION',
10
    'DISABLE_COVERAGE',
11
    # Travis CI
12
    'TRAVIS',
13
    # Appveyor
14
    'APPVEYOR',
15
    # CircleCI
16
    'CIRCLECI',
17
    # Drone
18
    'DRONE',
19
]
20
21
22
def detected():
23
    return any(name in CONTINUOUS_INTEGRATION for name in os.environ)
24