File tree Expand file tree Collapse file tree 4 files changed +43
-25
lines changed Expand file tree Collapse file tree 4 files changed +43
-25
lines changed Original file line number Diff line number Diff line change
1
+ # .circleci/config.yml
2
+ version : 2.1
3
+
4
+ jobs :
5
+ build :
6
+ docker :
7
+ - image : cimg/base:2022.07
8
+ steps :
9
+ - checkout
10
+ - run : sudo apt-get update
11
+ - setup_remote_docker :
12
+ version : 20.10.14
13
+ - run : |
14
+ docker-compose up --build --abort-on-container-exit api-tests
Original file line number Diff line number Diff line change
1
+ version : ' 3.9'
2
+
3
+ services :
4
+ mongo :
5
+ command : mongod --quiet --logpath /var/log/mongodb/mongodb.log
6
+ ports :
7
+ - 27017:27017
8
+ api :
9
+ environment :
10
+ DEVELOPMENT : true
11
+ volumes :
12
+ - ./:/~/zhomemedia
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -19,13 +19,30 @@ services:
19
19
environment :
20
20
DEVELOPMENT : false
21
21
MONGO_HOST : mongo
22
+ MONGO_USER : ${MONGO_USER}
23
+ MONGO_PASSWORD : ${MONGO_PASSWORD}
22
24
REDIS_SERVER : redis
23
25
STORAGE : /storage
24
26
volumes :
25
27
- ${STORAGE}:/storage
26
28
command : yarn start
27
29
ports :
28
30
- ${PORT}:${PORT}
31
+ depends_on :
32
+ - mongo
33
+ - redis
34
+ api-tests :
35
+ build : .
36
+ image : zhomemedia
37
+ environment :
38
+ DEVELOPMENT : true
39
+ MONGO_HOST : mongo
40
+ MONGO_USER : ${MONGO_USER}
41
+ MONGO_PASSWORD : ${MONGO_PASSWORD}
42
+ REDIS_SERVER : redis
43
+ command : dockerize
44
+ -wait tcp://mongo:27017 -wait tcp://redis:6379 -timeout 10s
45
+ sh -c "yarn test"
29
46
depends_on :
30
47
- mongo
31
48
- redis
You can’t perform that action at this time.
0 commit comments