mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Fix travis
This commit is contained in:
parent
8577d78f4d
commit
fb8b8d7086
17
.travis.yml
17
.travis.yml
@ -4,13 +4,11 @@ os:
|
|||||||
- osx
|
- osx
|
||||||
install:
|
install:
|
||||||
- |-
|
- |-
|
||||||
path="$(pwd)"; cd;
|
( cd
|
||||||
git clone https://github.com/rednex/rgbds &&
|
git clone --depth=1 https://github.com/rednex/rgbds
|
||||||
cd rgbds &&
|
sudo make -C rgbds CFLAGS=-O2 install
|
||||||
sudo make install &&
|
rm -rf rgbds
|
||||||
cd - &&
|
)
|
||||||
rm -rf rgbds &&
|
|
||||||
cd "$path"
|
|
||||||
before_script:
|
before_script:
|
||||||
- |-
|
- |-
|
||||||
function check_status() {
|
function check_status() {
|
||||||
@ -24,4 +22,7 @@ script:
|
|||||||
- make -j2 compare
|
- make -j2 compare
|
||||||
- check_status
|
- check_status
|
||||||
after_success:
|
after_success:
|
||||||
- .travis/webhook.sh
|
- |-
|
||||||
|
if [ "$TRAVIS_BRANCH" = master -a "$TRAVIS_PULL_REQUEST" = false -a "$TRAVIS_OS_NAME" = linux ]; then
|
||||||
|
./.travis/webhook.sh
|
||||||
|
fi
|
||||||
|
@ -1,13 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
# Only run this script if it's the master branch build.
|
root="$(readlink -e "$(dirname "$0")/..")"
|
||||||
[ "$TRAVIS_BRANCH" != 'master' -o "$TRAVIS_PULL_REQUEST" != 'false' ] && exit
|
|
||||||
|
|
||||||
root="$(realpath "$(dirname "$0")/..")"
|
|
||||||
content=""
|
|
||||||
|
|
||||||
# Report unnamed symbols
|
# Report unnamed symbols
|
||||||
content+="$("$root/tools/unnamed.py" -r "$root" "$root/pokecrystal.sym" | grep -v -e '^lib/mobile/' -e '^mobile/' | head)"
|
content="$("$root/tools/unnamed.py" -r "$root" "$root/pokecrystal.sym" | grep -v -e '^lib/mobile/' -e '^mobile/' | head)"
|
||||||
|
|
||||||
curl -H 'Content-Type: application/json' -X POST "$POKECRYSTAL_DISCORD_WEBHOOK_URL" -d@- << EOF
|
curl -H 'Content-Type: application/json' -X POST "$POKECRYSTAL_DISCORD_WEBHOOK_URL" -d@- << EOF
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user