Merge e7f0cb7d1b
into c898b54605
This commit is contained in:
commit
96800d7d63
3 changed files with 16 additions and 3 deletions
15
.travis.yml
15
.travis.yml
|
@ -2,8 +2,6 @@
|
||||||
language: python
|
language: python
|
||||||
python: 2.7
|
python: 2.7
|
||||||
|
|
||||||
sudo: required
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
|
|
||||||
|
@ -28,6 +26,7 @@ cache:
|
||||||
- $HOME/docker
|
- $HOME/docker
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
|
- lint
|
||||||
- build
|
- build
|
||||||
- test
|
- test
|
||||||
- clean
|
- clean
|
||||||
|
@ -35,7 +34,19 @@ stages:
|
||||||
# We should label the steps if Travis ever supports it:
|
# We should label the steps if Travis ever supports it:
|
||||||
# https://github.com/travis-ci/travis-ci/issues/5898
|
# https://github.com/travis-ci/travis-ci/issues/5898
|
||||||
jobs:
|
jobs:
|
||||||
|
allow_failures:
|
||||||
|
- python: 3.8
|
||||||
include:
|
include:
|
||||||
|
- stage: lint
|
||||||
|
script:
|
||||||
|
- pip install flake8
|
||||||
|
- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
||||||
|
- stage: lint
|
||||||
|
python: 3.8
|
||||||
|
script:
|
||||||
|
- pip install black flake8
|
||||||
|
- black --check . || true # TODO: (cclauss) Remove "|| true" when ready
|
||||||
|
- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
||||||
- stage: build
|
- stage: build
|
||||||
name: Build
|
name: Build
|
||||||
script: scripts/ci build
|
script: scripts/ci build
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
|
import logging
|
||||||
from config_app.c_app import app as application
|
from config_app.c_app import app as application
|
||||||
|
from util.log import logfile_path
|
||||||
|
|
||||||
# Bind all of the blueprints
|
# Bind all of the blueprints
|
||||||
import config_web
|
import config_web
|
||||||
|
|
|
@ -13,7 +13,7 @@ from util.config.validator import EXTRA_CA_DIRECTORY
|
||||||
|
|
||||||
from config_app.config_endpoints.exception import InvalidRequest
|
from config_app.config_endpoints.exception import InvalidRequest
|
||||||
from config_app.config_endpoints.api import resource, ApiResource, nickname, log_action, validate_json_request
|
from config_app.config_endpoints.api import resource, ApiResource, nickname, log_action, validate_json_request
|
||||||
from config_app.config_endpoints.api.superuser_models_pre_oci import pre_oci_model
|
from config_app.config_endpoints.api.superuser_models_pre_oci import pre_oci_model, ServiceKeyAlreadyApproved
|
||||||
from config_app.config_util.ssl import load_certificate, CertInvalidException
|
from config_app.config_util.ssl import load_certificate, CertInvalidException
|
||||||
from config_app.c_app import app, config_provider, INIT_SCRIPTS_LOCATION
|
from config_app.c_app import app, config_provider, INIT_SCRIPTS_LOCATION
|
||||||
|
|
||||||
|
|
Reference in a new issue