Skip to content

Commit

Permalink
get current branch for e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
sidz committed Jan 31, 2021
1 parent 09dc38c commit bb6aa3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/e2e/Codeception_Basic/run_tests.bash
Expand Up @@ -24,13 +24,13 @@ cd "$(dirname "$0")"
rm -rf codeception-package
mkdir codeception-package

git_branch="$(git rev-parse --abbrev-ref HEAD)"
git_branch="${GITHUB_HEAD_REF:-$(git rev-parse --abbrev-ref HEAD)}"

if [ "$git_branch" == "master" ]; then
exit 0;
fi;

sed -i "s/\"infection\/codeception-adapter\": \"dev-master\"/\"infection\/codeception-adapter\": \"dev-master#${git_branch}\"/" composer.json
sed -i "s/\"infection\/codeception-adapter\": \"dev-master\"/\"infection\/codeception-adapter\": \"dev-${git_branch}\"/" composer.json

cp -r ../../../src codeception-package/src
cp ../../../composer.json codeception-package
Expand Down

0 comments on commit bb6aa3f

Please sign in to comment.