2019-02-19 09:51:34 -05:00
|
|
|
version: "2"
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
data:
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
test_unit:
|
|
|
|
build: .
|
|
|
|
image: ci/$PROJECT_NAME:$BRANCH_NAME-$BUILD_NUMBER
|
|
|
|
user: node
|
2019-10-23 08:22:37 -04:00
|
|
|
command: npm run test:unit:app
|
2020-08-11 08:20:23 -04:00
|
|
|
environment:
|
|
|
|
NODE_OPTIONS: "--unhandled-rejections=strict"
|
2019-02-19 09:51:34 -05:00
|
|
|
|
|
|
|
test_acceptance:
|
|
|
|
build: .
|
|
|
|
image: ci/$PROJECT_NAME:$BRANCH_NAME-$BUILD_NUMBER
|
|
|
|
working_dir: /app
|
|
|
|
environment:
|
2020-05-06 06:01:59 -04:00
|
|
|
BCRYPT_ROUNDS: 1
|
2019-02-19 09:51:34 -05:00
|
|
|
REDIS_HOST: redis
|
2020-11-09 09:52:44 -05:00
|
|
|
QUEUES_REDIS_HOST: redis
|
2019-02-19 09:51:34 -05:00
|
|
|
MONGO_URL: "mongodb://mongo/sharelatex"
|
|
|
|
SHARELATEX_ALLOW_PUBLIC_ACCESS: 'true'
|
|
|
|
PROJECT_HISTORY_ENABLED: 'true'
|
|
|
|
ENABLED_LINKED_FILE_TYPES: 'url,project_file,project_output_file,mendeley,zotero'
|
|
|
|
LINKED_URL_PROXY: 'http://localhost:6543'
|
2020-06-01 04:37:34 -04:00
|
|
|
LOCK_MANAGER_MAX_LOCK_WAIT_TIME: 30000
|
2019-10-16 06:10:54 -04:00
|
|
|
NODE_ENV: test
|
2020-08-11 08:20:23 -04:00
|
|
|
NODE_OPTIONS: "--unhandled-rejections=strict"
|
2019-10-23 08:22:37 -04:00
|
|
|
SHARELATEX_CONFIG:
|
2020-12-02 05:16:16 -05:00
|
|
|
COOKIE_DOMAIN: .overleaf.test
|
|
|
|
PUBLIC_URL: 'http://www.overleaf.test:3000'
|
|
|
|
HTTP_TEST_HOST: www.overleaf.test
|
|
|
|
extra_hosts:
|
|
|
|
- 'www.overleaf.test:127.0.0.1'
|
2019-10-23 08:22:37 -04:00
|
|
|
command: npm run test:acceptance:app
|
2019-02-19 09:51:34 -05:00
|
|
|
user: root
|
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
- mongo
|
|
|
|
|
2020-07-09 09:56:33 -04:00
|
|
|
test_karma:
|
2019-02-19 09:51:34 -05:00
|
|
|
build:
|
|
|
|
context: .
|
2019-02-25 08:18:42 -05:00
|
|
|
dockerfile: Dockerfile.frontend.ci
|
|
|
|
args:
|
|
|
|
PROJECT_NAME: $PROJECT_NAME
|
|
|
|
BRANCH_NAME: $BRANCH_NAME
|
|
|
|
BUILD_NUMBER: $BUILD_NUMBER
|
2019-02-19 09:51:34 -05:00
|
|
|
working_dir: /app
|
2020-07-09 09:56:33 -04:00
|
|
|
command: npm run test:karma:single
|
|
|
|
user: node
|
2020-08-11 08:20:23 -04:00
|
|
|
environment:
|
|
|
|
NODE_OPTIONS: "--unhandled-rejections=strict"
|
2020-07-09 09:56:33 -04:00
|
|
|
|
|
|
|
test_frontend:
|
|
|
|
build: .
|
|
|
|
image: ci/$PROJECT_NAME:$BRANCH_NAME-$BUILD_NUMBER
|
2019-02-25 08:18:42 -05:00
|
|
|
user: node
|
2020-07-09 09:56:33 -04:00
|
|
|
command: npm run test:frontend
|
2020-08-11 08:20:23 -04:00
|
|
|
environment:
|
|
|
|
NODE_OPTIONS: "--unhandled-rejections=strict"
|
2019-02-19 09:51:34 -05:00
|
|
|
|
|
|
|
tar:
|
2020-07-02 11:51:38 -04:00
|
|
|
image: ci/$PROJECT_NAME:$BRANCH_NAME-$BUILD_NUMBER-webpack
|
2019-02-19 09:51:34 -05:00
|
|
|
volumes:
|
|
|
|
- ./:/tmp/build/
|
2020-05-22 06:34:57 -04:00
|
|
|
command: tar -cf /tmp/build/build.tar public/
|
2019-02-19 09:51:34 -05:00
|
|
|
user: root
|
|
|
|
|
|
|
|
redis:
|
|
|
|
image: redis
|
|
|
|
|
|
|
|
mongo:
|
2020-08-06 09:53:53 -04:00
|
|
|
image: mongo:4.0.19
|