From fa300b1c24dfc912a826f8c1abe399ea9c7b07d4 Mon Sep 17 00:00:00 2001 From: Wyatt Johnson Date: Tue, 24 Jan 2017 14:38:31 -0700 Subject: [PATCH] Fixes to circle --- circle.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/circle.yml b/circle.yml index 4d1f54286..160bc7bb9 100644 --- a/circle.yml +++ b/circle.yml @@ -5,11 +5,21 @@ machine: - 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: - - npm run lint - - ./bin/cli settings init - - sleep 5 + # 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: