mirror of
https://github.com/wassname/talk.git
synced 2026-06-29 10:45:55 +08:00
37 lines
784 B
YAML
37 lines
784 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 setup --defaults
|
|
- 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
|
|
# Run the e2e test suite
|
|
- E2E_REPORT_PATH=$CIRCLE_TEST_REPORTS/e2e npm run e2e
|
|
|
|
deployment:
|
|
release:
|
|
tag: /[0-9]+(\.[0-9]+)*/
|
|
commands:
|
|
- bash ./scripts/deploy.sh
|
|
|
|
latest:
|
|
branch: master
|
|
commands:
|
|
- bash ./scripts/deploy.sh
|