Skip to content

Commit

Permalink
Failing tests will now properly fail CI
Browse files Browse the repository at this point in the history
  • Loading branch information
brototyp committed Jan 18, 2018
1 parent 51e5a9d commit 9b96086
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ before_install:
script:
- rake test
- rake build_with_package_manager
osx_image: xcode9
osx_image: xcode9.2
cache: cocoapods
11 changes: 7 additions & 4 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@ namespace :test do

desc 'Run the MatomoTracker Unit tests'
task ios: :prepare do
run_tests('MatomoTracker', 'iphonesimulator')
run_tests('MatomoTracker', 'iphonesimulator', 'platform=iOS Simulator,name=iPhone 6,OS=11.0')
run_tests('MatomoTracker', 'iphonesimulator', 'platform=iOS Simulator,name=iPhone 6,OS=10.2')
run_tests('MatomoTracker', 'iphonesimulator', 'platform=iOS Simulator,name=iPhone 6,OS=11.2')
build_failed('tests') unless $?.success?
run_tests('MatomoTracker', 'iphonesimulator', 'platform=iOS Simulator,name=iPhone 6,OS=10.3.1')
build_failed('tests') unless $?.success?
run_tests('MatomoTracker', 'iphonesimulator', 'platform=iOS Simulator,name=iPhone 6,OS=9.3')
build_failed('tests') unless $?.success?
run_tests('MatomoTracker', 'iphonesimulator', 'platform=iOS Simulator,name=iPhone 6,OS=8.4')
build_failed('tests') unless $?.success?
end

desc 'Build the MatomoTracker iOS demo'
Expand All @@ -28,7 +31,7 @@ namespace :test do

desc 'Build the MatomoTracker tvOS demo'
task tvos_demo: :prepare do
run_build('tvos', 'appletvsimulator', 'platform=tvOS Simulator,name=Apple TV 1080p,OS=10.2')
run_build('tvos', 'appletvsimulator', 'platform=tvOS Simulator,name=Apple TV,OS=11.2')
build_failed('tvOS') unless $?.success?
end
end
Expand Down

0 comments on commit 9b96086

Please sign in to comment.