|
@@ -2,7 +2,7 @@
|
|
|
# Instead run bin/update_build_scripts from
|
|
# Instead run bin/update_build_scripts from
|
|
|
# https://github.com/sharelatex/sharelatex-dev-environment
|
|
# https://github.com/sharelatex/sharelatex-dev-environment
|
|
|
|
|
|
|
|
-version: "2.3"
|
|
|
|
|
|
|
+version: '2.3'
|
|
|
|
|
|
|
|
services:
|
|
services:
|
|
|
test_unit:
|
|
test_unit:
|
|
@@ -11,8 +11,7 @@ services:
|
|
|
command: npm run test:unit:_run
|
|
command: npm run test:unit:_run
|
|
|
environment:
|
|
environment:
|
|
|
NODE_ENV: test
|
|
NODE_ENV: test
|
|
|
- NODE_OPTIONS: "--unhandled-rejections=strict"
|
|
|
|
|
-
|
|
|
|
|
|
|
+ NODE_OPTIONS: '--unhandled-rejections=strict'
|
|
|
|
|
|
|
|
test_acceptance:
|
|
test_acceptance:
|
|
|
build: .
|
|
build: .
|
|
@@ -32,7 +31,7 @@ services:
|
|
|
STORAGE_EMULATOR_HOST: http://gcs:9090/storage/v1
|
|
STORAGE_EMULATOR_HOST: http://gcs:9090/storage/v1
|
|
|
MOCHA_GREP: ${MOCHA_GREP}
|
|
MOCHA_GREP: ${MOCHA_GREP}
|
|
|
NODE_ENV: test
|
|
NODE_ENV: test
|
|
|
- NODE_OPTIONS: "--unhandled-rejections=strict"
|
|
|
|
|
|
|
+ NODE_OPTIONS: '--unhandled-rejections=strict'
|
|
|
depends_on:
|
|
depends_on:
|
|
|
mongo:
|
|
mongo:
|
|
|
condition: service_healthy
|
|
condition: service_healthy
|
|
@@ -41,7 +40,6 @@ services:
|
|
|
user: node
|
|
user: node
|
|
|
command: npm run test:acceptance:_run
|
|
command: npm run test:acceptance:_run
|
|
|
|
|
|
|
|
-
|
|
|
|
|
tar:
|
|
tar:
|
|
|
build: .
|
|
build: .
|
|
|
image: ci/$PROJECT_NAME:$BRANCH_NAME-$BUILD_NUMBER
|
|
image: ci/$PROJECT_NAME:$BRANCH_NAME-$BUILD_NUMBER
|
|
@@ -57,7 +55,7 @@ services:
|
|
|
retries: 20
|
|
retries: 20
|
|
|
gcs:
|
|
gcs:
|
|
|
image: fsouza/fake-gcs-server:v1.21.2
|
|
image: fsouza/fake-gcs-server:v1.21.2
|
|
|
- command: ["--port=9090", "--scheme=http"]
|
|
|
|
|
|
|
+ command: ['--port=9090', '--scheme=http']
|
|
|
healthcheck:
|
|
healthcheck:
|
|
|
test: wget --quiet --output-document=/dev/null http://localhost:9090/storage/v1/b
|
|
test: wget --quiet --output-document=/dev/null http://localhost:9090/storage/v1/b
|
|
|
interval: 1s
|
|
interval: 1s
|