Skip to content

Commit

Permalink
add travis (#10)
Browse files Browse the repository at this point in the history
* add travis

* fix travis errros
  • Loading branch information
JonasJurczok authored Nov 29, 2018
1 parent 0f3062c commit 43f1475
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ before_install:
- sudo luarocks install faketorio

script:
# TODO: correct paths
- luacheck ./src/*.lua --globals todo mod_gui script game defines data serpent settings global
- luacheck ./src/todo/*.lua --globals todo mod_gui script game defines data serpent settings global
- luacheck ./src/*.lua --globals pmon mod_gui script game defines data serpent settings global table
- luacheck ./src/pmon/*.lua --globals pmon mod_gui script game defines data serpent settings global table
- faketorio package -c .travis/.faketorio -v

deploy:
Expand Down
8 changes: 4 additions & 4 deletions src/pmon/pmon.lua
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ function pmon.ensure_monitor_title(flow, monitor)
})
end

function pmon.ensure_monitor_delete_button(flow, monitor)
--[[function pmon.ensure_monitor_delete_button(flow, monitor)
end
end]]--

function pmon.ensure_progress_bar(frame, monitor)
local bar_name = "pmon_" .. monitor.name .. "_progress_bar"
Expand Down Expand Up @@ -200,7 +200,7 @@ function pmon.create_add_dialog(player, entity)
direction = "horizontal"
})

local ok = button_flow.add({
button_flow.add({
type = "button",
style = "pmon_button_default",
name = "pmon_add_monitor_button",
Expand All @@ -225,7 +225,7 @@ function pmon.get_add_dialog(player)
end

function pmon.on_player_selected_area(event)
player = game.players[event.player_index]
local player = game.players[event.player_index]

if player.cursor_stack.name == "pmon-power-monitor" then
local entity = event.entities[1]
Expand Down

0 comments on commit 43f1475

Please sign in to comment.