29 lines
788 B
YAML
29 lines
788 B
YAML
machine:
|
|
node:
|
|
version: 8.11
|
|
services:
|
|
- redis
|
|
environment:
|
|
NODE_ENV: test
|
|
PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
|
|
SECRET_KEY: F0E5AD933D7F6FD8F4DBB3E038C501C052DC0593C686D21ACB30AE205D2F634B
|
|
DATABASE_URL_TEST: postgres://ubuntu@localhost:5432/circle_test
|
|
DATABASE_URL: postgres://ubuntu@localhost:5432/circle_test
|
|
URL: http://localhost:3000
|
|
SMTP_FROM_EMAIL: hello@example.com
|
|
AWS_S3_UPLOAD_BUCKET_URL: https://s3.amazonaws.com
|
|
AWS_S3_UPLOAD_BUCKET_NAME: outline-circle
|
|
|
|
dependencies:
|
|
override:
|
|
- yarn install --pure-lockfile
|
|
cache_directories:
|
|
- ~/.cache/yarn
|
|
|
|
test:
|
|
pre:
|
|
- sequelize db:migrate --url postgres://ubuntu@localhost:5432/circle_test
|
|
override:
|
|
- yarn test
|
|
- yarn lint
|