Skip to content

Commit

Permalink
Merge pull request #12 from wolverineav/master
Browse files Browse the repository at this point in the history
update build scripts to use python3 for tox
  • Loading branch information
wolverineav authored Nov 28, 2018
2 parents 29c3ab2 + 1b73034 commit 3eb7a4b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
./build_scripts/precheckin.sh
git clean -fxd
GIT_REPO=`pwd`

DOCKER_IMAGE=$DOCKER_REGISTRY'/bosi-builder-py3:latest'
docker pull $DOCKER_IMAGE

docker run -e GIT_COMMIT=$GIT_COMMIT -v $GIT_REPO:/python-bsn-neutronclient $DOCKER_IMAGE /python-bsn-neutronclient/build_scripts/precheckin.sh
6 changes: 5 additions & 1 deletion build_scripts/precheckin.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/bash -eux

# switch to git repo directory inside container
cd /python-bsn-neutronclient

pwd
echo 'git commit is' ${GIT_COMMIT}

Expand All @@ -11,4 +15,4 @@ else
echo "setup.cfg updated"; fi
# check the new_version > old_version
echo 'checking if version bump is correct'
git log -m -1 ${GIT_COMMIT} --pretty="format:" -p setup.cfg | grep version | python build_scripts/is_version_bumped.py
git log -m -1 ${GIT_COMMIT} --pretty="format:" -p setup.cfg | grep version | python3 build_scripts/is_version_bumped.py

0 comments on commit 3eb7a4b

Please sign in to comment.