-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
62 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then | ||
brew update || exit | ||
for package in libyaml freetype glfw3 cmake ; do | ||
brew outdated "${package}" || brew upgrade "${package}" || exit | ||
done | ||
|
||
whereis libfreetype | ||
fi | ||
|
||
gem update --system | ||
gem install bundler | ||
bundle install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,37 @@ | ||
module Platform | ||
def self.cygwin? | ||
RUBY_PLATFORM.include?('cygwin') | ||
class Platform | ||
def initialize(platform = RUBY_PLATFORM) | ||
@platform_name = platform | ||
end | ||
|
||
def self.mingw? | ||
RUBY_PLATFORM.include?('mingw') | ||
def include?(str) | ||
@platform_name.include?(str) | ||
end | ||
|
||
def self.msvcr? | ||
RUBY_PLATFORM.include?('msvcr') | ||
def cygwin? | ||
include?('cygwin') | ||
end | ||
|
||
def self.windows? | ||
def mingw? | ||
include?('mingw') | ||
end | ||
|
||
def msvcr? | ||
include?('msvcr') | ||
end | ||
|
||
def windows? | ||
cygwin? || mingw? || msvcr? | ||
end | ||
|
||
def self.linux? | ||
RUBY_PLATFORM.include?('linux') | ||
def linux? | ||
include?('linux') | ||
end | ||
|
||
def self.darwin? | ||
RUBY_PLATFORM.include?('darwin') | ||
def darwin? | ||
include?('darwin') | ||
end | ||
|
||
def self.unix? | ||
def unix? | ||
linux? || darwin? | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters