2019-03-20 23:16:16 +08:00
|
|
|
# it is intended that this be used exclusive of all other docker-compose.*yml files in CI
|
2019-09-11 23:49:35 +08:00
|
|
|
version: "2.3"
|
2019-03-20 23:16:16 +08:00
|
|
|
services:
|
2020-05-02 05:04:18 +08:00
|
|
|
canvas:
|
2020-03-05 03:32:41 +08:00
|
|
|
image: $PATCHSET_TAG
|
2020-06-29 22:32:51 +08:00
|
|
|
depends_on:
|
2019-03-20 23:16:16 +08:00
|
|
|
- postgres
|
2020-06-29 22:32:51 +08:00
|
|
|
- redis
|
2019-09-28 04:28:20 +08:00
|
|
|
- dynamodb
|
2019-03-20 23:16:16 +08:00
|
|
|
environment:
|
2022-06-01 04:06:21 +08:00
|
|
|
DB_VALIDITY_ENSURED: 1
|
2019-09-24 23:02:49 +08:00
|
|
|
ENCRYPTION_KEY: facdd3a131ddd8988b14f6e4e01039c93cfa0160
|
2019-03-20 23:16:16 +08:00
|
|
|
RAILS_ENV: test
|
2020-03-16 20:23:58 +08:00
|
|
|
POSTGRES_PASSWORD: $POSTGRES_PASSWORD
|
2019-08-30 21:47:07 +08:00
|
|
|
RANDOMIZE_SEQUENCES: 1
|
2020-04-26 02:53:44 +08:00
|
|
|
DISABLE_SPRING: 'true'
|
2019-10-19 03:36:04 +08:00
|
|
|
RERUNS_RETRY:
|
2020-02-11 02:12:41 +08:00
|
|
|
COVERAGE:
|
2020-04-08 03:41:59 +08:00
|
|
|
FORCE_FAILURE:
|
2021-11-03 00:48:37 +08:00
|
|
|
TEST_CACHE_CLASSES:
|
2019-03-20 23:16:16 +08:00
|
|
|
|
2020-02-24 06:51:47 +08:00
|
|
|
# parallel_tests
|
2019-10-19 03:39:11 +08:00
|
|
|
CI_NODE_TOTAL:
|
|
|
|
CI_NODE_INDEX:
|
2021-04-27 05:28:15 +08:00
|
|
|
RSPEC_PROCESSES:
|
2020-02-24 06:51:47 +08:00
|
|
|
EXCLUDE_TESTS:
|
|
|
|
TEST_PATTERN:
|
2021-08-25 00:47:21 +08:00
|
|
|
|
|
|
|
# rspecq
|
|
|
|
RSPECQ_REDIS_URL:
|
|
|
|
RSPECQ_FILE_SPLIT_THRESHOLD:
|
|
|
|
RSPECQ_MAX_REQUEUES:
|
|
|
|
|
2020-07-08 22:02:55 +08:00
|
|
|
# rspec-parallel-log build
|
|
|
|
RSPEC_LOG:
|
2020-04-26 00:56:59 +08:00
|
|
|
# this will stop passenger from booting so the container isn't running anything at all once up
|
2020-06-16 20:52:05 +08:00
|
|
|
command: sleep infinity
|
|
|
|
init: true
|
2019-10-19 03:39:11 +08:00
|
|
|
|
2019-03-20 23:16:16 +08:00
|
|
|
redis:
|
2019-09-27 21:18:54 +08:00
|
|
|
image: starlord.inscloudgate.net/jenkins/redis:alpine
|
2020-06-16 20:52:05 +08:00
|
|
|
init: true
|
2019-03-20 23:16:16 +08:00
|
|
|
|
|
|
|
postgres:
|
2020-06-27 03:37:32 +08:00
|
|
|
image: $POSTGRES_IMAGE_TAG
|
2020-03-05 03:32:41 +08:00
|
|
|
environment:
|
2020-06-24 10:33:02 +08:00
|
|
|
PGDATA: /data
|
2020-04-16 02:52:10 +08:00
|
|
|
POSTGRES_PASSWORD: $POSTGRES_PASSWORD
|
2020-06-16 20:52:05 +08:00
|
|
|
init: true
|
2020-04-26 00:56:59 +08:00
|
|
|
|
2019-09-28 04:28:20 +08:00
|
|
|
dynamodb:
|
2020-06-27 03:37:32 +08:00
|
|
|
image: $DYNAMODB_IMAGE_TAG
|
2024-01-24 07:43:03 +08:00
|
|
|
command: -jar DynamoDBLocal.jar -sharedDb
|
2020-06-16 20:52:05 +08:00
|
|
|
init: true
|