Skip to content

Commit

Permalink
Merge pull request #2399 from niamu/travis
Browse files Browse the repository at this point in the history
Travis CI fixes
  • Loading branch information
niamu committed May 24, 2015
2 parents d6e4792 + 0361bc9 commit 8ec38fe
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ language: erlang
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
install:
- sudo apt-get install python-virtualenv lua5.1
- sudo add-apt-repository -y ppa:bartbes/love-stable
- sudo apt-get update -qq
- sudo apt-get update -y -f
- sudo apt-get install -y love
install:
- mkdir -p $TRAVIS_BUILD_DIR/share/love/
env:
global:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ bin/love.app/Contents/MacOS/love:

/usr/bin/love:
sudo add-apt-repository -y ppa:bartbes/love-stable
sudo apt-get update -qq
sudo apt-get update -y -f
sudo apt-get install -y love

######################################################
Expand Down
9 changes: 8 additions & 1 deletion src/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,14 @@ function love.load(arg)
error("invalid version label")
end

if love._version ~= "0.9.1" then
local version = utils.split(love._version:gsub("%.", "/"),"/")
local major = tonumber(version[1])
local minor = tonumber(version[2])
local revision = tonumber(version[3])

if major ~= 0 or
minor ~= 9 or
revision < 1 then
error("Love 0.9.1 is required")
end

Expand Down

0 comments on commit 8ec38fe

Please sign in to comment.