mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Travis should upload .sym files to the symbols branch
This commit is contained in:
parent
ac0025064f
commit
fcaaf45da5
@ -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
|
||||
|
15
.travis/upload_symbols.sh
Executable file
15
.travis/upload_symbols.sh
Executable file
@ -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
|
Loading…
Reference in New Issue
Block a user