From 9b3197b12e548e1edc70d24ffaf1e725c206fe9f Mon Sep 17 00:00:00 2001 From: Roger Hernandez Date: Thu, 23 Apr 2020 17:48:14 +0200 Subject: [PATCH] Specify custom mongodb version in travis-ci --- .travis.yml | 13 ++++++++++--- README.md | 1 + 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index b4cb940bb..2baeae191 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,10 +7,15 @@ addons: apt: sources: - ubuntu-toolchain-r-test + - sourceline: 'deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.2 multiverse' + key_url: 'https://www.mongodb.org/static/pgp/server-4.2.asc' packages: - libzmq3-dev - -services: mongodb + - mongodb-org + - mongodb-org-mongos + - mongodb-org-server + - mongodb-org-shell + - mongodb-org-tools env: matrix: @@ -20,6 +25,8 @@ env: cache: yarn -before_script: sh yarn_setup.sh +before_script: +- sudo systemctl start mongod +- sh yarn_setup.sh script: cd ${SUBPROJECT} && yarn run lint && yarn run test:travis diff --git a/README.md b/README.md index b02531ac9..5dee87746 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,7 @@ Catapult REST gateway combines HTTP and WebSockets to perform read and write act - NodeJS version 12 - [yarn][yarn] dependency manager - [catapult-server][catapult-server] configured as an [API node][api-node]. +- MongoDb 4.2 ## Installation