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