Check Travis-CI env

This commit is contained in:
nothink 2018-07-26 00:17:24 +09:00
parent 44be726dbb
commit 60ecc3dccf

View file

@ -51,7 +51,7 @@ def read_config() -> Dict:
if os.path.exists('../config.yaml'): if os.path.exists('../config.yaml'):
with open('../config.yaml') as handle: with open('../config.yaml') as handle:
ret = merge(ret, yaml.load(handle.read())) ret = merge(ret, yaml.load(handle.read()))
if os.path.exists('/.dockerenv') and not os.getenv('CI', False): if os.path.exists('/.dockerenv') and os.getenv('CI', '') == 'true':
ret = merge(ret, docker_config()) ret = merge(ret, docker_config())
return ret return ret