Compare commits

...

5 Commits

Author SHA1 Message Date
Alexander Chan bb1019e880 test 2018-06-30 13:31:51 -07:00
Alexander Chan 97d74ee602 test 2018-06-30 13:20:06 -07:00
Alexander Chan 855cbd4501 test 2018-06-30 13:13:13 -07:00
Alexander Chan 7ab86b9558 test 2018-06-30 13:06:04 -07:00
Alexander Chan 2c128ffaae improvement: add halt on failure linter 2018-06-30 12:58:09 -07:00
1 changed files with 23 additions and 10 deletions

View File

@ -26,6 +26,10 @@ models:
gcpbackendmismatch_GCP_SERVICE_KEYFILE: /root/.gcp/servicekey
gcpbackendnoproxy_GCP_SERVICE_KEYFILE: /root/.gcp/servicekey
gcpbackendproxy_GCP_SERVICE_KEYFILE: /root/.gcp/servicekey
- env: &shared-vars
CIRCLE_TEST_REPORTS: /tmp
CIRCLE_ARTIFACTS: /tmp
CI_REPORTS: /tmp
- env: &mongo-vars
S3BACKEND: "mem"
MPU_TESTING: "yes"
@ -93,22 +97,31 @@ stages:
- ShellCommand: *npm-install
- ShellCommand: *add-hostname
- ShellCommand:
name: Linting
command: |
npm run --silent lint -- --max-warnings 0
npm run --silent lint_md
flake8 $(git ls-files "*.py")
yamllint $(git ls-files "*.yml")
name: Lint Source Files
command: npm run --silent lint -- --max-warnings 0
- ShellCommand:
name: Lint Markdown
command: npm run --silent lint_md
- ShellCommand:
name: Lint Python
command: flake8 $(git ls-files "*.py")
- ShellCommand:
name: Lint Yaml
command: yamllint $(git ls-files "*.yml")
- ShellCommand:
name: Unit Coverage
command: |
mkdir -p $CIRCLE_TEST_REPORTS/unit
npm run unit_coverage
env:
<<: *shared-vars
- ShellCommand:
name: Unit Coverage Legacy
command: |
mkdir -p $CIRCLE_TEST_REPORTS/unit
npm run unit_coverage_legacy_location
env: &shared-vars
CIRCLE_TEST_REPORTS: /tmp
CIRCLE_ARTIFACTS: /tmp
CI_REPORTS: /tmp
env:
<<: *shared-vars
- ShellCommand:
name: Unit Coverage logs
command: find /tmp/unit -exec cat {} \;