Skip to content

Commit

Permalink
Merge pull request #104 from daviddavis/bindings_pr
Browse files Browse the repository at this point in the history
Add a way to require bindings PRs
  • Loading branch information
daviddavis committed Apr 26, 2019
2 parents 20a7a54 + 9af8e8a commit 31bda7b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .travis/script.sh
Expand Up @@ -34,9 +34,18 @@ if [ "$TEST" = 'docs' ]; then
fi

if [ "$TEST" = 'bindings' ]; then
COMMIT_MSG=$(git show HEAD^2 -s)
export PULP_BINDINGS_PR_NUMBER=$(echo $COMMIT_MSG | grep -oP 'Required\ PR:\ https\:\/\/github\.com\/pulp\/pulp-swagger-codegen\/pull\/(\d+)' | awk -F'/' '{print $7}')

cd ..
git clone https://github.com/pulp/pulp-swagger-codegen.git
cd pulp-swagger-codegen

if [ -n "$PULP_BINDINGS_PR_NUMBER" ]; then
git fetch origin +refs/pull/$PULP_BINDINGS_PR_NUMBER/merge
git checkout FETCH_HEAD
fi

sudo ./generate.sh pulpcore python
sudo ./generate.sh pulp_file python
pip install ./pulpcore-client
Expand Down

0 comments on commit 31bda7b

Please sign in to comment.