| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f6dbba2 commit 5060c9d
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,14 +13,26 @@ if test -z "$TRAVIS"; then | |||
| 13 | 13 | esac | |
| 14 | 14 | fi | |
| 15 | 15 | ||
| 16 | + # Stop if we have run this. (You can delete __testing_point__ to let it rerun.) | ||
| 17 | + # This also keeps track of where we are, so we can get back here. | ||
| 16 | 18 | git tag __testing_point__ | |
| 19 | + | ||
| 20 | + # The tests need a branch called master. | ||
| 17 | 21 | git checkout master -- || git checkout -b master | |
| 22 | + | ||
| 23 | + # The tests need a reflog history on the master branch. | ||
| 18 | 24 | git reset --hard HEAD~1 | |
| 19 | 25 | git reset --hard HEAD~1 | |
| 20 | 26 | git reset --hard HEAD~1 | |
| 27 | + | ||
| 28 | + # Point the master branch where we started, so we test the correct code. | ||
| 21 | 29 | git reset --hard __testing_point__ | |
| 22 | 30 | ||
| 23 | - test -z "$TRAVIS" || exit 0 # CI jobs will already have taken care of the rest. | ||
| 31 | + # Do some setup that CI takes care of but that may not have been done locally. | ||
| 32 | + if test -z "$TRAVIS"; then | ||
| 33 | + # The tests needs some version tags. Try to get them even in forks. | ||
| 34 | + git fetch --all --tags | ||
| 24 | 35 | ||
| 25 | - git fetch --all --tags | ||
| 26 | - git submodule update --init --recursive | ||
| 36 | + # The tests need submodules, including a submodule with a submodule. | ||
| 37 | + git submodule update --init --recursive | ||
| 38 | + fi | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments