Skip to content

Commit 8fc0668

Browse files
Update .travis.yml/Rakefile.
1 parent 5bc102f commit 8fc0668

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ env:
66
before_install:
77
- gem install xcpretty
88
script:
9-
- rake clean test
9+
- rake clean
10+
- rake test
11+

Rakefile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
WORKSPASE = "JavaScriptBridge.xcworkspace"
22
SCHEME = "Tests"
3-
DESTINATIONS = ["name=iPhone Retina (3.5-inch),OS=7.0",
4-
"name=iPhone Retina (4-inch),OS=7.0",
3+
DESTINATIONS = [
54
"name=iPhone Retina (4-inch 64-bit),OS=7.0"]
65

76
task :default => [:clean, :test]
87

98
desc "clean"
109
task :clean do
11-
sh "xcodebuild clean -workspace #{WORKSPASE} -scheme #{SCHEME} | xcpretty -c"
10+
system("xcodebuild clean -workspace #{WORKSPASE} -scheme #{SCHEME} | xcpretty -c")
1211
end
1312

1413
desc "run unit tests"
1514
task :test do
1615
DESTINATIONS.each do |destination|
17-
sh "xcodebuild test -sdk iphonesimulator -workspace #{WORKSPASE} -scheme #{SCHEME} -configuration Debug -destination \"#{destination}\" | xcpretty -c"
16+
system("xcodebuild test -sdk iphonesimulator -workspace #{WORKSPASE} -scheme #{SCHEME} -configuration Debug -destination \"#{destination}\" | xcpretty -c")
1817
end
1918
end

0 commit comments

Comments
 (0)