Files
talk/circle.yml
T
Wyatt Johnson fa300b1c24 Fixes to circle
2017-01-24 14:38:44 -07:00

35 lines
693 B
YAML

machine:
node:
version: 7
services:
- docker
- redis
dependencies:
post:
# Lint the project here, before tests are ran.
- npm run lint
database:
post:
# Initialize the settings in the database, this will create indicies for the
# database.
- ./bin/cli settings init
- sleep 2
test:
override:
# Run the tests using the junit reporter.
- MOCHA_FILE=$CIRCLE_TEST_REPORTS/junit/test-results.xml NPM_PACKAGE_CONFIG_MOCHA_REPORTER=mocha-junit-reporter npm run test
deployment:
release:
tag: /[0-9]+(\.[0-9]+)*/
commands:
- bash ./scripts/deploy.sh
latest:
branch: master
commands:
- bash ./scripts/deploy.sh