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
2
2
rvm :
3
3
- 1.9.3
4
4
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
14
7
15
8
notifications :
16
9
email : false
Original file line number Diff line number Diff line change 1
1
source 'http://rubygems.org'
2
2
3
+ ruby '1.9.3'
4
+
3
5
gem 'sinatra'
4
- gem 'json'
Original file line number Diff line number Diff line change 1
1
GEM
2
2
remote: http://rubygems.org/
3
3
specs:
4
- json (1.8.1 )
5
4
rack (1.5.2 )
6
5
rack-protection (1.5.3 )
7
6
rack
@@ -15,5 +14,4 @@ PLATFORMS
15
14
ruby
16
15
17
16
DEPENDENCIES
18
- json
19
17
sinatra
Original file line number Diff line number Diff line change 10
10
" Gemfile" ,
11
11
" Gemfile.lock" ,
12
12
" vendor/" ,
13
+ " script/" ,
13
14
" test/"
14
15
]
15
16
}
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