mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
scripts: travis: make PRs succeed, add a note about moving to GitHub Releases
This commit is contained in:
parent
5e8d3acc51
commit
8b94443ba2
@ -7,7 +7,8 @@ die()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
|
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
|
||||||
die "Travis should not deploy from pull requests"
|
echo "Travis should not deploy from pull requests"
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
append_readme()
|
append_readme()
|
||||||
@ -18,8 +19,23 @@ append_readme()
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
generate_continious_tag()
|
||||||
|
{
|
||||||
|
if [ $TRAVIS_BRANCH == "master" ]; then
|
||||||
|
echo "continuous"
|
||||||
|
else
|
||||||
|
echo "continuous-$TRAVIS_BRANCH"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
generate_readme()
|
generate_readme()
|
||||||
{
|
{
|
||||||
|
TAG=$(generate_continuous_tag)
|
||||||
|
echo \# Moved to GitHub Releases at [here]\(https://github.com/FWGS/xash3d-fwgs/releases/tag/$TAG\) >> README.md
|
||||||
|
echo >> README.md
|
||||||
|
echo >> README.md
|
||||||
|
echo >> README.md
|
||||||
|
echo >> README.md
|
||||||
echo \# $TRAVIS_BRANCH branch autobuilds from $DEPLOY_BRANCH >> README.md
|
echo \# $TRAVIS_BRANCH branch autobuilds from $DEPLOY_BRANCH >> README.md
|
||||||
echo >> README.md
|
echo >> README.md
|
||||||
echo Short changelog: >> README.md
|
echo Short changelog: >> README.md
|
||||||
|
Loading…
x
Reference in New Issue
Block a user