Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,15 @@ jobs:
auth:
username: $DOCKER_USER
password: $DOCKER_PASS

# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/postgres:9.4

environment:
PYTHON_BIN: /usr/local/bin/python2.7

working_directory: ~/repo

steps:
- checkout

- run:
name: set version and build the rpm
command: |
Expand All @@ -46,17 +41,16 @@ jobs:
git tag -a $(cat VERSION) -m "Tagged by ${CIRCLE_BUILD_URL}" HEAD
rpm -qa | grep ssh
rpm -ql libssh2-1.4.2-2.el6_7.1.x86_64
git push --tags origin

set -e
git push --tags origin -v || { echo "GIT PUSH FAILED"; exit 1; }

mkdir mongodb_consistent_backup_rpm
cp /root/repo/build/rpm/RPMS/x86_64/mongodb_consistent_backup-$(cat VERSION)-1.el6.x86_64.rpm mongodb_consistent_backup_rpm/

- save_cache:
paths:
- ./venv
key: v1-dependencies-{{ checksum "requirements.txt" }}

- store_artifacts:
path: mongodb_consistent_backup_rpm
destination: mongodb_consistent_backup

2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.4.9
1.4.10
2 changes: 1 addition & 1 deletion mongodb_consistent_backup/Replication/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


def config(parser):
parser.add_argument("--replication.max_lag_secs", dest="replication.max_lag_secs", default=10, type=int,
parser.add_argument("--replication.max_lag_secs", dest="replication.max_lag_secs", default=20, type=int,
help="Max lag of backup replica(s) in seconds (default: 10)")
parser.add_argument("--replication.min_priority", dest="replication.min_priority", default=0, type=int,
help="Min priority of secondary members for backup (default: 0)")
Expand Down