Skip to content

Commit d960efb

Browse files
author
Christopher Bradshaw
authored
Merge pull request #21 from Clever/add-mongo-3.2
Add mongo 3.2
2 parents 5d04579 + b72bd73 commit d960efb

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

circle.yml

+3
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ test:
1111

1212
# install Mongo2.6
1313
- ./circleci/mongo-install 2.6
14+
15+
# install Mongo3.2
16+
- ./circleci/mongo-install 3.2

circleci/mongo-install

+5-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ if [[ -z $VERSION ]]; then echo "Missing arg1 VERSION" && exit 1; fi
2020

2121
if [ "$VERSION" == "2.4" ]; then VERSION="2.4.12"; fi
2222
if [ "$VERSION" == "2.6" ]; then VERSION="2.6.12"; fi
23+
if [ "$VERSION" == "3.2" ]; then VERSION="3.2.11"; fi
2324

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

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

3031
echo "Downloading and installing Mongo ..."
31-
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
32+
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 # 2.x
33+
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927 # 3.2
34+
3235
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
36+
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
3337
sudo apt-get update
3438

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

0 commit comments

Comments
 (0)