go back to what worked
This commit is contained in:
parent
e1b24f451d
commit
9a7dac435d
|
@ -6,6 +6,9 @@ addons:
|
||||||
update: true
|
update: true
|
||||||
packages:
|
packages:
|
||||||
- libzip-dev
|
- libzip-dev
|
||||||
|
- xvfb
|
||||||
|
services:
|
||||||
|
- xvfb
|
||||||
before_install:
|
before_install:
|
||||||
- |
|
- |
|
||||||
pip install hererocks
|
pip install hererocks
|
||||||
|
@ -13,6 +16,9 @@ before_install:
|
||||||
export 'PATH='"$TRAVIS_BUILD_DIR"'/env/bin'":$PATH"
|
export 'PATH='"$TRAVIS_BUILD_DIR"'/env/bin'":$PATH"
|
||||||
install:
|
install:
|
||||||
- |
|
- |
|
||||||
|
sudo add-apt-repository -y ppa:bartbes/love-stable
|
||||||
|
sudo apt-get -q update
|
||||||
|
sudo apt-get -y install love
|
||||||
luarocks install --server="http://luarocks.org/dev" lua-zip
|
luarocks install --server="http://luarocks.org/dev" lua-zip
|
||||||
luarocks install love-release
|
luarocks install love-release
|
||||||
script:
|
script:
|
||||||
|
|
5
daily.sh
5
daily.sh
|
@ -1,12 +1,9 @@
|
||||||
set -ev
|
set -ev
|
||||||
|
|
||||||
if [ "$TRAVIS_EVENT_TYPE" != "cron" ]; then exit 0; fi
|
if [ "$TRAVIS_EVENT_TYPE" != "cron" ]; then exit 0; fi
|
||||||
sudo add-apt-repository -y ppa:bartbes/love-stable
|
|
||||||
sudo apt-get -q update
|
|
||||||
sudo apt-get -y install love
|
|
||||||
|
|
||||||
cd src
|
cd src
|
||||||
love-release
|
love-release
|
||||||
love "releases/CaveStoryRandomizer.love" --daily --headless
|
sudo xvfb-run --server-args="-screen 0 1024x768x24" love "releases/CaveStoryRandomizer.love" --daily
|
||||||
cat daily.txt
|
cat daily.txt
|
||||||
curl -H "Content-Type: application/json" -X POST -d @daily.txt "$WEBHOOK"
|
curl -H "Content-Type: application/json" -X POST -d @daily.txt "$WEBHOOK"
|
|
@ -24,12 +24,6 @@ function love.conf(t)
|
||||||
t.modules.touch = false
|
t.modules.touch = false
|
||||||
t.modules.video = false
|
t.modules.video = false
|
||||||
|
|
||||||
for _,a in pairs(arg) do
|
|
||||||
if a == "--headless" then
|
|
||||||
t.window, t.modules.window, t.modules.graphics = false, false, false
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
t.releases = {
|
t.releases = {
|
||||||
-- This is the name of the zip archive which contains your game.
|
-- This is the name of the zip archive which contains your game.
|
||||||
title = 'CaveStoryRandomizer',
|
title = 'CaveStoryRandomizer',
|
||||||
|
|
|
@ -27,6 +27,7 @@ function love.load(args)
|
||||||
Settings:init()
|
Settings:init()
|
||||||
|
|
||||||
if _.contains(args, "--daily") then
|
if _.contains(args, "--daily") then
|
||||||
|
love.window.close()
|
||||||
U.writeFile("daily.txt", generateDaily())
|
U.writeFile("daily.txt", generateDaily())
|
||||||
love.event.quit()
|
love.event.quit()
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue