File tree Expand file tree Collapse file tree 7 files changed +27
-12
lines changed Expand file tree Collapse file tree 7 files changed +27
-12
lines changed Original file line number Diff line number Diff line change @@ -2,15 +2,8 @@ language: ruby
22rvm :
33 - 1.9.3
44
5- install : gem install sinatra
6-
7- before_script :
8- - " export DISPLAY=:99.0"
9- - " sh -e /etc/init.d/xvfb start"
10- - ruby ./test/app.rb 2>/dev/null &
11- - sleep 2
12-
13- script : phantomjs ./test/run-qunit.coffee "http://localhost:4567/"
5+ install : script/bootstrap
6+ script : script/test
147
158notifications :
169 email : false
Original file line number Diff line number Diff line change 11source 'http://rubygems.org'
22
3+ ruby '1.9.3'
4+
35gem 'sinatra'
4- gem 'json'
Original file line number Diff line number Diff line change 11GEM
22 remote: http://rubygems.org/
33 specs:
4- json (1.8.1 )
54 rack (1.5.2 )
65 rack-protection (1.5.3 )
76 rack
@@ -15,5 +14,4 @@ PLATFORMS
1514 ruby
1615
1716DEPENDENCIES
18- json
1917 sinatra
Original file line number Diff line number Diff line change 1010 " Gemfile" ,
1111 " Gemfile.lock" ,
1212 " vendor/" ,
13+ " script/" ,
1314 " test/"
1415 ]
1516}
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ set -e
3+
4+ bundle install
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ set -e
3+
4+ exec bundle exec ruby ./test/app.rb
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ set -e
3+
4+ port=4567
5+ script/server & > /dev/null &
6+ pid=$!
7+
8+ trap " kill $pid " EXIT INT
9+
10+ while ! lsof -i :$port > /dev/null; do
11+ sleep .05
12+ done
13+
14+ phantomjs ./test/run-qunit.coffee " http://localhost:$port /"
You can’t perform that action at this time.
0 commit comments