Skip to content
This repository has been archived by the owner on Oct 28, 2019. It is now read-only.

Commit

Permalink
Updates for pulpcore repo move
Browse files Browse the repository at this point in the history
Fixes Travis to checkout and install pulpcore as needed with the repo
move.

https://pulp.plan.io/issues/4444
re #4444
  • Loading branch information
Brian Bouterse committed Feb 28, 2019
1 parent 6e31a52 commit c5e16be
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .travis/install.sh
Expand Up @@ -6,16 +6,16 @@ pip install -r test_requirements.txt
pip install -r doc_requirements.txt

export COMMIT_MSG=$(git show HEAD^2 -s)
export PULP_PR_NUMBER=$(echo $COMMIT_MSG | grep -oP 'Required\ PR:\ https\:\/\/github\.com\/pulp\/pulp\/pull\/(\d+)' | awk -F'/' '{print $7}')
export PULP_PR_NUMBER=$(echo $COMMIT_MSG | grep -oP 'Required\ PR:\ https\:\/\/github\.com\/pulp\/pulpcore\/pull\/(\d+)' | awk -F'/' '{print $7}')
export PULP_FILE_PR_NUMBER=$(echo $COMMIT_MSG | grep -oP 'Required\ PR:\ https\:\/\/github\.com\/pulp\/pulp_file\/pull\/(\d+)' | awk -F'/' '{print $7}')
export PULP_SMASH_PR_NUMBER=$(echo $COMMIT_MSG | grep -oP 'Required\ PR:\ https\:\/\/github\.com\/PulpQE\/pulp-smash\/pull\/(\d+)' | awk -F'/' '{print $7}')

if [ -z "$PULP_PR_NUMBER" ]; then
pip install "git+https://github.com/pulp/pulp.git#egg=pulpcore"
pip install "git+https://github.com/pulp/pulpcore.git#egg=pulpcore"
else
cd ../
git clone https://github.com/pulp/pulp.git
cd pulp
git clone https://github.com/pulp/pulpcore.git
cd pulpcore
git fetch origin +refs/pull/$PULP_PR_NUMBER/merge
git checkout FETCH_HEAD
pip install -e .
Expand Down

0 comments on commit c5e16be

Please sign in to comment.