Add examples to the automated testing in travis. Make err-on-fail optional on both examples (disabled during ci)

This commit is contained in:
Mark VanderVoord
2017-04-07 22:22:38 -04:00
parent 07d6714fe2
commit bfdfe944b9
10 changed files with 53 additions and 31 deletions
+11 -1
View File
@@ -7,6 +7,11 @@ require './rakefile_helper'
include RakefileHelpers
REQUIRED_DIRS = [ './build', './build/mocks' ]
REQUIRED_DIRS.each do |v|
directory v
end
# Load default configuration, for now
DEFAULT_CONFIG_FILE = 'gcc.yml'
configure_toolchain(DEFAULT_CONFIG_FILE)
@@ -22,7 +27,7 @@ end
desc "Build and test Unity"
task :all => [:clean, :unit, :summary]
task :default => [:clobber, :all]
task :default => REQUIRED_DIRS + [:clobber, :all]
task :ci => [:default]
task :cruise => [:default]
@@ -30,3 +35,8 @@ desc "Load configuration"
task :config, :config_file do |t, args|
configure_toolchain(args[:config_file])
end
desc "Return error on Failures"
task :strict do
$return_error_on_failures = true
end