From a21bec918535a430b9e0a9e2fa1f9baf0fc283dd Mon Sep 17 00:00:00 2001 From: antoinezanardi Date: Sun, 20 Dec 2020 13:32:46 +0100 Subject: [PATCH] feat(Mongoose): Add mongoDB auth. Closes #82 --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index 3504d1d..a9590ba 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,10 @@ dist: xenial services: mongodb language: node_js node_js: 14 +env: + - DB_NAME=werewolves-assistant + - DB_USER=travis + - DB_PASSWORD=test before_script: - sleep 15 - mongo werewolves-assistant --eval 'db.createUser({user:"travis",pwd:"test",roles:["readWrite"]});'