shithub: pokecrystal

Download patch

ref: fcaaf45da56148741d8d300fe013c5aae7e19f35
parent: ac0025064fe3a506c74bf389a5487c76beeba5d6
author: Rangi <remy.oukaour+rangi42@gmail.com>
date: Sat Jun 20 18:39:45 EDT 2020

Travis should upload .sym files to the symbols branch

--- a/.travis.yml
+++ b/.travis.yml
@@ -24,5 +24,8 @@
 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
--- /dev/null
+++ b/.travis/upload_symbols.sh
@@ -1,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