mirror of
https://github.com/cave-story-randomizer/cave-story-randomizer
synced 2024-12-27 15:38:07 +00:00
734f772164
* sets up travis for daily challenges * separate push from cron * whoops * windows env * i have no idea how to effectively test travis builds * sdgahhetheah * tests * possible fix * we'll get there one day * this is the one * trying something different * why not * sdgsgs * please? * yet another angle * why why hwhy why * oh ok this makes sense tho * i'm silly * aafasfadf * wtf is xvfb fr * screen? * testing something... * ? * idk man * timeout * is it a zip thing * this might be it * oh we're so close * quote? * alternate method to read * for the record i am definitely squashing before this gets merged * more tests * try something new * how bout this one. donk * to be clear i have no idea how bash syntax works * hmmmm * maybe this way * keep tryin * tst * verbosity * one last tiiiiiime, relax have a drink with me * one last tiiiime, and if we get this right * we're gonna teach em how to say goodbye * YOUUUU AND IIIIIIIII * (drum fill) * pick up a pen start writing * i wanna talk about what i have learned * the hard-won wisdom i have earned * i have no idea * lol * is it quotes' fault * stack echange blowing my mind rn * @filename be like * this is the one * should be the final update to daily * fix bash error Co-authored-by: duncathan <dunc@duncathan.com>
10 lines
316 B
Bash
10 lines
316 B
Bash
if [ "$TRAVIS_EVENT_TYPE" != "cron" ]; then exit 0; fi
|
|
P="csrando"
|
|
mkdir target
|
|
mkdir target/src
|
|
cp -r src target
|
|
cd target/src
|
|
zip -9 -r "${P}.love" .
|
|
sudo xvfb-run --server-args="-screen 0 1024x768x24" love "${P}.love" --daily
|
|
cat daily.txt
|
|
curl -H "Content-Type: application/json" -X POST -d @daily.txt "$WEBHOOK" |