Skip to content

Commit

Permalink
Merge pull request #21 from Clever/add-mongo-3.2
Browse files Browse the repository at this point in the history
Add mongo 3.2
  • Loading branch information
Christopher Bradshaw authored Jan 31, 2017
2 parents 5d04579 + b72bd73 commit d960efb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ test:

# install Mongo2.6
- ./circleci/mongo-install 2.6

# install Mongo3.2
- ./circleci/mongo-install 3.2
6 changes: 5 additions & 1 deletion circleci/mongo-install
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ if [[ -z $VERSION ]]; then echo "Missing arg1 VERSION" && exit 1; fi

if [ "$VERSION" == "2.4" ]; then VERSION="2.4.12"; fi
if [ "$VERSION" == "2.6" ]; then VERSION="2.6.12"; fi
if [ "$VERSION" == "3.2" ]; then VERSION="3.2.11"; fi

echo "Setting up Mongo version $VERSION..."

Expand All @@ -28,8 +29,11 @@ sudo service mongod stop || echo "mongod was not running"
sudo apt-get purge mongodb-org*

echo "Downloading and installing Mongo ..."
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 # 2.x
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927 # 3.2

echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
sudo apt-get update

if [ "${VERSION:0:3}" == "2.4" ]; then
Expand Down

0 comments on commit d960efb

Please sign in to comment.