Skip to content

Commit 1c17473

Browse files
committed
add redis to drone
1 parent f3cd54b commit 1c17473

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.drone.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pipeline:
2121
- sudo su -c "mkdir -p /root/.config/yarn/"
2222
- sudo su -c "chown -R circleci:circleci ."
2323
- sudo su -c "chown -R circleci:circleci /root/"
24-
- MONGO_URL=mongodb://mongodb:27017/vote-integration-test HEADLESS=true yarn protractor
24+
- MONGO_URL=mongodb://mongodb:27017/vote-integration-test REDIS_URL=redis HEADLESS=true yarn protractor
2525
lint:
2626
image: node:11
2727
when:
@@ -39,7 +39,7 @@ pipeline:
3939
- pull_request
4040
group: testing
4141
commands:
42-
- MONGO_URL=mongodb://mongodb:27017/vote-test yarn mocha
42+
- MONGO_URL=mongodb://mongodb:27017/vote-test REDIS_URL=redis yarn mocha
4343
build:
4444
image: node:11
4545
when:
@@ -68,3 +68,5 @@ pipeline:
6868
services:
6969
mongodb:
7070
image: mongo:3.6
71+
redis:
72+
image: redis:latest

0 commit comments

Comments
 (0)