DANGER: checking dockerenv
This commit is contained in:
parent
22a6859cb5
commit
d4dabb60bf
2 changed files with 3 additions and 5 deletions
|
@ -25,9 +25,7 @@ matrix:
|
||||||
- pip install -r requirements.txt
|
- pip install -r requirements.txt
|
||||||
- pip install -r dev-requirements.txt
|
- pip install -r dev-requirements.txt
|
||||||
script:
|
script:
|
||||||
- sudo cat /.dockerenv
|
# - pycodestyle szurubooru/
|
||||||
- sudo rm /.dockerenv
|
|
||||||
- pycodestyle szurubooru/
|
|
||||||
- ./wait-for-es
|
- ./wait-for-es
|
||||||
- alembic upgrade head
|
- alembic upgrade head
|
||||||
- py.test
|
- py.test
|
||||||
|
|
|
@ -51,8 +51,8 @@ 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'):
|
# if os.path.exists('/.dockerenv'):
|
||||||
ret = merge(ret, docker_config())
|
# ret = merge(ret, docker_config())
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in a new issue