Skip to content

Commit

Permalink
build SwiftLint in release mode when running benchmarks
Browse files Browse the repository at this point in the history
this should give us a better idea of the true performance impact
  • Loading branch information
jpsim committed Jan 10, 2017
1 parent 4e76458 commit 27563e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dangerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ if has_app_changes
@commits[repo] = `git rev-parse HEAD`
durations = []
start = Time.now
command = '../../.build/debug/swiftlint'
command = '../../.build/release/swiftlint'
File.open("../#{branch}_reports/#{repo_name}.txt", 'w') do |file|
Open3.popen3(command) do |_, stdout, _, _|
file << stdout.read.chomp
Expand Down Expand Up @@ -86,14 +86,14 @@ if has_app_changes
end
# Build branch
puts 'Building branch'
`swift build`
`swift build -c release`
# Generate branch reports
generate_reports(true, 'branch')
# Build master
`git checkout master`
`git pull`
puts 'Building master'
`swift build`
`swift build -c release`
# Generate master reports
generate_reports(false, 'master')
# Diff and report changes to Danger
Expand Down

0 comments on commit 27563e7

Please sign in to comment.