-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from Clever/test-gh-release
Test gh release
- Loading branch information
Showing
4 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
test: | ||
override: | ||
# do a github release to this repo, using the commit SHA | ||
- mkdir artifacts | ||
- echo "foo" > artifacts/foo.txt | ||
- echo "${CIRCLE_SHA1:0:7}" > VERSION | ||
- ./circleci/mongo-install-2.4 | ||
- ./circleci/github-release $GH_RELEASE_TOKEN artifacts/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
|
||
# Installs Mongo 2.4, rather than the default version in CircleCI. | ||
# | ||
# Usage: | ||
# | ||
# mongo-install-2.4 | ||
|
||
set -e | ||
|
||
echo "Stopping and removing currently installed Mongodb..." | ||
# the service running Mongo 3.x is `mongod` vs `mongodb` in 2.4 | ||
sudo service mongod stop | ||
sudo apt-get purge mongodb-org* | ||
|
||
echo "Attempting to download Mongo version 2.4.14 ..." | ||
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 | ||
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list | ||
sudo apt-get update | ||
sudo apt-get install -y mongodb-10gen=2.4.14 | ||
|
||
echo "Restarting new version of Mongodb..." | ||
sudo service mongodb restart | ||
mongo --version | ||
|
||
echo "Mongo 2.4.14 installed successfully" |