Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

enable travis

  • Loading branch information...
commit 8b33541531b524799cc6be86c5481f0a49212ed8 1 parent 91ab6a5
@timfel timfel authored
View
19 .travis.yml
@@ -0,0 +1,19 @@
+# Java, because those are the 64bit boxes. We'll change it once Ruby
@dkubb
dkubb added a note

@timfel according to http://about.travis-ci.org/blog/2013-blue-box-powers-travis-ci-infrastructure/ Travis now runs all builds on 64bit boxes.

@timfel Owner
timfel added a note

When you have a second for a PR, I'll gladly merge :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+# boxes are 64bit, too
+language: java
+before_install:
+ - "sudo apt-get install -qq rake"
+before_script:
+ - "./install.sh"
+script: "rake travis"
+env:
+ - CI_TESTS=rubyspec
+ - CI_TESTS=vmunit
+ - CI_TESTS=vmunit2
+ # These next ones have to be cleaned up, they don't currently pass
+ # - CI_TESTS=fav_gems
+ # - CI_TESTS=sinatra
+ # - CI_TESTS=examples
+notifications:
+ email: false
+ irc: "irc.freenode.org#maglev-ruby"
View
15 Rakefile
@@ -57,6 +57,21 @@ task :status do
end
end
+if ENV["TRAVIS"]
+ tests = {"rubyspec" => "spec:ci",
+ "vmunit" => "tests:vmunit",
+ "vmunit2" => "tests:vmunit2",
+ "fav_gems" => "tests:fav_gems_install",
+ "sinatra" => "tests:sinatra",
+ "examples" => "tests:examples"}
+
+ task :travis do
+ Rake::Task["stwrappers"].invoke
+ ENV["PATH"] = "#{File.dirname(__FILE__)}/bin:#{ENV['PATH']}"
+ Rake::Task[tests[ENV["CI_TESTS"]]].invoke
+ end
+end
+
# This initializes the environment, and then ensures that there is a
# gemstone diretory there. Needed to pull this out, since some of the
# initialization tasks need to be performed before there is a gemstone dir
View
1  examples/sinatra/Rakefile
@@ -8,6 +8,7 @@ end
desc 'Run the test for sinatra_app.rb.'
task :test do
+ sh 'maglev-gem install sinatra minitest rack-test'
sh 'maglev-ruby -rubygems sinatra_app_test.rb'
end
View
1  spec/tags/core/file/ftype_tags.txt
@@ -1 +1,2 @@
fails:File.ftype returns 'link' when the file is a link
+fails:File.ftype returns 'blockSpecial' when the file is a block
View
1  spec/tags/core/io/popen_tags.txt
@@ -5,3 +5,4 @@ fails:IO.popen allows the IO to be closed inside the block
fails:IO.popen starts returns a forked process if the command is -
fails:IO.popen yields an instance of a subclass when called on a subclass
fails:IO.popen returns an instance of a subclass when called on a subclass
+fails:IO.popen waits for the child to finish
View
22 tests/sinatra/test.sh
@@ -7,20 +7,23 @@ PATH=$MAGLEV_HOME/bin:$PATH
MAGLEV_OPTS=
rm -rf sinatra
-git clone https://github.com/sinatra/sinatra.git
+git clone --depth 1 https://github.com/sinatra/sinatra.git
cd sinatra
git submodule init
git submodule update --init --recursive
-# Our corporate firewall does not let us use git: protocol. So, we patch
-# Sinatra Gemfile to use http: rather than git:. Also, we use perl rather
-# than sed because Solaris sed is broken (no -i).
-echo "Patching sinatra/Gemfile"
-perl -pi -e s/git:/http:/ Gemfile
-echo "source 'http://w2-stdev-ub10-01.gemstone.com:9292'"|cat - Gemfile > Gemfile.new
-mv Gemfile.new Gemfile
+if [ -z "$TRAVIS" ]; then
+ # Our corporate firewall does not let us use git: protocol. So,
+ # we patch Sinatra Gemfile to use http: rather than git:. Also,
+ # we use perl rather than sed because Solaris sed is broken (no
+ # -i).
+ echo "Patching sinatra/Gemfile"
+ perl -pi -e s/git:/http:/ Gemfile
+ echo "source 'http://w2-stdev-ub10-01.gemstone.com:9292'"|cat - Gemfile > Gemfile.new
+ mv Gemfile.new Gemfile
+fi
export rack=master
@@ -31,6 +34,9 @@ if [[ -n $WORKSPACE ]]; then
maglev start
fi
+# Install gems that are required but need patches
+maglev-gem install eventmachine json nokogiri multi_json yajl-ruby mongrel bcrypt-ruby
+
# consider adding --without-coffee-script for Allen
# maglev-ruby -S bundle install --without-coffee-script
maglev-ruby -S bundle install
Please sign in to comment.
Something went wrong with that request. Please try again.