2021-07-27 04:45:17 -04:00
|
|
|
version: "2.3"
|
2019-02-19 09:51:34 -05:00
|
|
|
|
|
|
|
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:
|
2021-07-20 05:26:03 -04:00
|
|
|
BASE_CONFIG:
|
|
|
|
SHARELATEX_CONFIG:
|
2020-08-11 08:20:23 -04:00
|
|
|
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
|
2021-07-27 04:45:17 -04:00
|
|
|
env_file: docker-compose.common.env
|
2019-02-19 09:51:34 -05:00
|
|
|
environment:
|
2021-07-20 05:26:03 -04:00
|
|
|
BASE_CONFIG:
|
2019-10-23 08:22:37 -04:00
|
|
|
SHARELATEX_CONFIG:
|
2020-12-02 05:16:16 -05:00
|
|
|
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
|
2021-07-27 04:45:17 -04:00
|
|
|
- saml
|
|
|
|
- ldap
|
2019-02-19 09:51:34 -05:00
|
|
|
|
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
|
2021-07-27 04:45:17 -04:00
|
|
|
|
|
|
|
ldap:
|
|
|
|
restart: always
|
|
|
|
image: rroemhild/test-openldap:1.1
|
|
|
|
|
|
|
|
saml:
|
|
|
|
restart: always
|
|
|
|
image: gcr.io/overleaf-ops/saml-test
|
|
|
|
environment:
|
|
|
|
SAML_BASE_URL_PATH: 'http://saml/simplesaml/'
|
|
|
|
SAML_TEST_SP_ENTITY_ID: 'sharelatex-test-saml'
|
|
|
|
SAML_TEST_SP_LOCATION: 'http://www.overleaf.test:3000/saml/callback'
|