@ambassify/load-env
Version:
Helper for environment variables in node.
26 lines (25 loc) • 624 B
YAML
version: 2
jobs:
build:
docker:
- image: node:8
environment:
- ENVIRONMENT: testing
- MOCHA_FILE: mocha/tests.[hash].xml
steps:
- checkout
- restore_cache:
key: dependencies-{{ checksum "package.json" }}
- run: npm install
- save_cache:
key: dependencies-{{ checksum "package.json" }}-{{ .BuildNum }}
paths:
- node_modules
- run: npm test
- store_artifacts:
path: coverage
- store_test_results:
path: mocha
notify:
webhooks:
- url: https://bot.ambassify.com/publish/circleci/master