diff options
-rw-r--r-- | .travis.yml | 5 | ||||
-rwxr-xr-x | .travis/upload_symbols.sh | 15 |
2 files changed, 19 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index 097eac105..f79088614 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,5 +24,8 @@ script: after_success: - |- if [ "$TRAVIS_BRANCH" = master -a "$TRAVIS_PULL_REQUEST" = false -a "$TRAVIS_OS_NAME" = linux ]; then - ./.travis/webhook.sh + ./.travis/webhook.sh + if [ -n "$GITHUB_API_KEY" ]; then + ./.travis/upload_symbols.sh + fi fi diff --git a/.travis/upload_symbols.sh b/.travis/upload_symbols.sh new file mode 100755 index 000000000..1d8605f84 --- /dev/null +++ b/.travis/upload_symbols.sh @@ -0,0 +1,15 @@ +#!/bin/sh +set -e + +commit_message=$(git log -1 --pretty=%B) + +mkdir symbols +pushd symbols + +git clone -b symbols https://github.com/pret/pokecrystal +cp ../*.sym . +git add *.sym +git -c user.name='travis' -c user.email='travis@travis-ci.org' commit -m "$commit_message" +git push -f -q https://Rangi42:$GITHUB_API_KEY@github.com/pret/pokecrystal symbols &>/dev/null + +popd |