| |
@@ -1,18 +1,28 @@
|
| |
#!/bin/bash
|
| |
|
| |
if [ -n "$REPO" -a -n "$BRANCH" ]; then
|
| |
- git remote rm proposed || true
|
| |
- git gc --auto
|
| |
- git remote add proposed "$REPO"
|
| |
- git fetch proposed
|
| |
- git checkout origin/master
|
| |
- git config --global user.email "noreply@ci.centos.org"
|
| |
- git config --global user.name "CentOS CI"
|
| |
- git merge --no-ff "proposed/$BRANCH" -m "Merge PR"
|
| |
+ git config user.email "noreply@ci.centos.org"
|
| |
+ git config user.name "CentOS CI"
|
| |
|
| |
- echo "Running tests for branch $BRANCH of repo $REPO"
|
| |
- echo "Last commits:"
|
| |
- git log -2
|
| |
+ # Copy the original repository for comparisons
|
| |
+ rm -Rf __baseline__
|
| |
+ git clone . __baseline__
|
| |
+
|
| |
+ # Merge the PR into the current tree
|
| |
+ git remote rm proposed || true
|
| |
+ git gc --auto
|
| |
+ git remote add proposed "$REPO"
|
| |
+ git fetch proposed
|
| |
+ git checkout origin/master
|
| |
+ git merge --no-ff "proposed/$BRANCH" -m "Merge PR"
|
| |
+
|
| |
+ echo "Running tests for branch $BRANCH of repo $REPO"
|
| |
+ echo "Last commits:"
|
| |
+ git log -2
|
| |
+
|
| |
+ # Run any tests that only apply to PRs
|
| |
+ tests/pr_tests.sh
|
| |
fi
|
| |
|
| |
- make check
|
| |
+ # Run any tests that apply to either PRs or commits
|
| |
+ tests/common_tests.sh
|
| |
Gain control over what is installed on the test nodes. Also switch
to having all tests run under either tests/common_tests.sh or
tests/pr_tests.sh, which will handle PRs better that want to
change the current tests.
Signed-off-by: Stephen Gallagher sgallagh@redhat.com