diff --git a/services/chat/docker-compose.ci.yml b/services/chat/docker-compose.ci.yml index 38ed789d16..73114a581f 100644 --- a/services/chat/docker-compose.ci.yml +++ b/services/chat/docker-compose.ci.yml @@ -2,7 +2,7 @@ # Instead run bin/update_build_scripts from # https://github.com/sharelatex/sharelatex-dev-environment -version: '2.3' +version: "2.3" services: test_unit: @@ -11,7 +11,8 @@ services: command: npm run test:unit:_run environment: NODE_ENV: test - NODE_OPTIONS: '--unhandled-rejections=strict' + NODE_OPTIONS: "--unhandled-rejections=strict" + test_acceptance: build: . @@ -24,13 +25,14 @@ services: POSTGRES_HOST: postgres MOCHA_GREP: ${MOCHA_GREP} NODE_ENV: test - NODE_OPTIONS: '--unhandled-rejections=strict' + NODE_OPTIONS: "--unhandled-rejections=strict" depends_on: mongo: condition: service_healthy user: node command: npm run test:acceptance:_run + tar: build: . image: ci/$PROJECT_NAME:$BRANCH_NAME-$BUILD_NUMBER diff --git a/services/chat/docker-compose.yml b/services/chat/docker-compose.yml index 140045ade2..71e11d9bd3 100644 --- a/services/chat/docker-compose.yml +++ b/services/chat/docker-compose.yml @@ -2,7 +2,7 @@ # Instead run bin/update_build_scripts from # https://github.com/sharelatex/sharelatex-dev-environment -version: '2.3' +version: "2.3" services: test_unit: @@ -13,7 +13,7 @@ services: environment: MOCHA_GREP: ${MOCHA_GREP} NODE_ENV: test - NODE_OPTIONS: '--unhandled-rejections=strict' + NODE_OPTIONS: "--unhandled-rejections=strict" command: npm run --silent test:unit user: node @@ -31,7 +31,7 @@ services: MOCHA_GREP: ${MOCHA_GREP} LOG_LEVEL: ERROR NODE_ENV: test - NODE_OPTIONS: '--unhandled-rejections=strict' + NODE_OPTIONS: "--unhandled-rejections=strict" user: node depends_on: mongo: @@ -44,3 +44,4 @@ services: test: "mongo --quiet localhost/test --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 1)'" interval: 1s retries: 20 + diff --git a/services/contacts/docker-compose.ci.yml b/services/contacts/docker-compose.ci.yml index 38ed789d16..73114a581f 100644 --- a/services/contacts/docker-compose.ci.yml +++ b/services/contacts/docker-compose.ci.yml @@ -2,7 +2,7 @@ # Instead run bin/update_build_scripts from # https://github.com/sharelatex/sharelatex-dev-environment -version: '2.3' +version: "2.3" services: test_unit: @@ -11,7 +11,8 @@ services: command: npm run test:unit:_run environment: NODE_ENV: test - NODE_OPTIONS: '--unhandled-rejections=strict' + NODE_OPTIONS: "--unhandled-rejections=strict" + test_acceptance: build: . @@ -24,13 +25,14 @@ services: POSTGRES_HOST: postgres MOCHA_GREP: ${MOCHA_GREP} NODE_ENV: test - NODE_OPTIONS: '--unhandled-rejections=strict' + NODE_OPTIONS: "--unhandled-rejections=strict" depends_on: mongo: condition: service_healthy user: node command: npm run test:acceptance:_run + tar: build: . image: ci/$PROJECT_NAME:$BRANCH_NAME-$BUILD_NUMBER diff --git a/services/contacts/docker-compose.yml b/services/contacts/docker-compose.yml index 140045ade2..71e11d9bd3 100644 --- a/services/contacts/docker-compose.yml +++ b/services/contacts/docker-compose.yml @@ -2,7 +2,7 @@ # Instead run bin/update_build_scripts from # https://github.com/sharelatex/sharelatex-dev-environment -version: '2.3' +version: "2.3" services: test_unit: @@ -13,7 +13,7 @@ services: environment: MOCHA_GREP: ${MOCHA_GREP} NODE_ENV: test - NODE_OPTIONS: '--unhandled-rejections=strict' + NODE_OPTIONS: "--unhandled-rejections=strict" command: npm run --silent test:unit user: node @@ -31,7 +31,7 @@ services: MOCHA_GREP: ${MOCHA_GREP} LOG_LEVEL: ERROR NODE_ENV: test - NODE_OPTIONS: '--unhandled-rejections=strict' + NODE_OPTIONS: "--unhandled-rejections=strict" user: node depends_on: mongo: @@ -44,3 +44,4 @@ services: test: "mongo --quiet localhost/test --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 1)'" interval: 1s retries: 20 + diff --git a/services/docstore/docker-compose.ci.yml b/services/docstore/docker-compose.ci.yml index 500c3b090b..f0733448cc 100644 --- a/services/docstore/docker-compose.ci.yml +++ b/services/docstore/docker-compose.ci.yml @@ -2,7 +2,7 @@ # Instead run bin/update_build_scripts from # https://github.com/sharelatex/sharelatex-dev-environment -version: '2.3' +version: "2.3" services: test_unit: @@ -11,7 +11,8 @@ services: command: npm run test:unit:_run environment: NODE_ENV: test - NODE_OPTIONS: '--unhandled-rejections=strict' + NODE_OPTIONS: "--unhandled-rejections=strict" + test_acceptance: build: . @@ -31,7 +32,7 @@ services: STORAGE_EMULATOR_HOST: http://gcs:9090/storage/v1 MOCHA_GREP: ${MOCHA_GREP} NODE_ENV: test - NODE_OPTIONS: '--unhandled-rejections=strict' + NODE_OPTIONS: "--unhandled-rejections=strict" depends_on: mongo: condition: service_healthy @@ -40,6 +41,7 @@ services: user: node command: npm run test:acceptance:_run + tar: build: . image: ci/$PROJECT_NAME:$BRANCH_NAME-$BUILD_NUMBER @@ -55,7 +57,7 @@ services: retries: 20 gcs: image: fsouza/fake-gcs-server:v1.21.2 - command: ['--port=9090', '--scheme=http'] + command: ["--port=9090", "--scheme=http"] healthcheck: test: wget --quiet --output-document=/dev/null http://localhost:9090/storage/v1/b interval: 1s diff --git a/services/docstore/docker-compose.yml b/services/docstore/docker-compose.yml index bfc04eff07..70a385be92 100644 --- a/services/docstore/docker-compose.yml +++ b/services/docstore/docker-compose.yml @@ -2,7 +2,7 @@ # Instead run bin/update_build_scripts from # https://github.com/sharelatex/sharelatex-dev-environment -version: '2.3' +version: "2.3" services: test_unit: @@ -13,7 +13,7 @@ services: environment: MOCHA_GREP: ${MOCHA_GREP} NODE_ENV: test - NODE_OPTIONS: '--unhandled-rejections=strict' + NODE_OPTIONS: "--unhandled-rejections=strict" command: npm run --silent test:unit user: node @@ -38,7 +38,7 @@ services: MOCHA_GREP: ${MOCHA_GREP} LOG_LEVEL: ERROR NODE_ENV: test - NODE_OPTIONS: '--unhandled-rejections=strict' + NODE_OPTIONS: "--unhandled-rejections=strict" user: node depends_on: mongo: @@ -56,7 +56,7 @@ services: gcs: image: fsouza/fake-gcs-server:v1.21.2 - command: ['--port=9090', '--scheme=http'] + command: ["--port=9090", "--scheme=http"] healthcheck: test: wget --quiet --output-document=/dev/null http://localhost:9090/storage/v1/b interval: 1s diff --git a/services/document-updater/docker-compose.yml b/services/document-updater/docker-compose.yml index 03793b7bf9..b55f6b49e3 100644 --- a/services/document-updater/docker-compose.yml +++ b/services/document-updater/docker-compose.yml @@ -2,7 +2,7 @@ # Instead run bin/update_build_scripts from # https://github.com/sharelatex/sharelatex-dev-environment -version: '2.3' +version: "2.3" services: test_unit: @@ -13,7 +13,7 @@ services: environment: MOCHA_GREP: ${MOCHA_GREP} NODE_ENV: test - NODE_OPTIONS: '--unhandled-rejections=strict' + NODE_OPTIONS: "--unhandled-rejections=strict" command: npm run --silent test:unit user: node @@ -31,7 +31,7 @@ services: MOCHA_GREP: ${MOCHA_GREP} LOG_LEVEL: ERROR NODE_ENV: test - NODE_OPTIONS: '--unhandled-rejections=strict' + NODE_OPTIONS: "--unhandled-rejections=strict" user: node depends_on: mongo: @@ -53,3 +53,4 @@ services: test: "mongo --quiet localhost/test --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 1)'" interval: 1s retries: 20 + diff --git a/services/notifications/docker-compose.ci.yml b/services/notifications/docker-compose.ci.yml index 38ed789d16..73114a581f 100644 --- a/services/notifications/docker-compose.ci.yml +++ b/services/notifications/docker-compose.ci.yml @@ -2,7 +2,7 @@ # Instead run bin/update_build_scripts from # https://github.com/sharelatex/sharelatex-dev-environment -version: '2.3' +version: "2.3" services: test_unit: @@ -11,7 +11,8 @@ services: command: npm run test:unit:_run environment: NODE_ENV: test - NODE_OPTIONS: '--unhandled-rejections=strict' + NODE_OPTIONS: "--unhandled-rejections=strict" + test_acceptance: build: . @@ -24,13 +25,14 @@ services: POSTGRES_HOST: postgres MOCHA_GREP: ${MOCHA_GREP} NODE_ENV: test - NODE_OPTIONS: '--unhandled-rejections=strict' + NODE_OPTIONS: "--unhandled-rejections=strict" depends_on: mongo: condition: service_healthy user: node command: npm run test:acceptance:_run + tar: build: . image: ci/$PROJECT_NAME:$BRANCH_NAME-$BUILD_NUMBER diff --git a/services/notifications/docker-compose.yml b/services/notifications/docker-compose.yml index 140045ade2..71e11d9bd3 100644 --- a/services/notifications/docker-compose.yml +++ b/services/notifications/docker-compose.yml @@ -2,7 +2,7 @@ # Instead run bin/update_build_scripts from # https://github.com/sharelatex/sharelatex-dev-environment -version: '2.3' +version: "2.3" services: test_unit: @@ -13,7 +13,7 @@ services: environment: MOCHA_GREP: ${MOCHA_GREP} NODE_ENV: test - NODE_OPTIONS: '--unhandled-rejections=strict' + NODE_OPTIONS: "--unhandled-rejections=strict" command: npm run --silent test:unit user: node @@ -31,7 +31,7 @@ services: MOCHA_GREP: ${MOCHA_GREP} LOG_LEVEL: ERROR NODE_ENV: test - NODE_OPTIONS: '--unhandled-rejections=strict' + NODE_OPTIONS: "--unhandled-rejections=strict" user: node depends_on: mongo: @@ -44,3 +44,4 @@ services: test: "mongo --quiet localhost/test --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 1)'" interval: 1s retries: 20 +