Sha256: e0163417790f8b58287c4201821166bb33eedf36814d0d495578a9d6ba3e196f
Contents?: true
Size: 844 Bytes
Versions: 2
Compression:
Stored size: 844 Bytes
Contents
# frozen_string_literal: true require_relative '../../lib/version' namespace :swiftlint do desc 'Download and install swiftlint tool' task :install do next if ENV['DANGER_SKIP_SWIFTLINT_INSTALL'] == 'YES' REPO = 'https://github.com/realm/SwiftLint' VERSION = ENV['SWIFTLINT_VERSION'] || DangerSwiftlint::SWIFTLINT_VERSION ASSET = 'portable_swiftlint.zip' URL = "#{REPO}/releases/download/#{VERSION}/#{ASSET}" DESTINATION = File.expand_path(File.join(File.dirname(__FILE__), 'bin')) SCRIPT_PATH = File.expand_path(File.join(File.dirname(__FILE__))) SWIFTLINT_MD5_HASH = DangerSwiftlint::SWIFTLINT_HASH puts "Downloading swiftlint@#{VERSION}" sh "sh #{SCRIPT_PATH}/downloadSwiftlint.sh -u #{URL} -d #{DESTINATION} -a #{ASSET} -dh #{SWIFTLINT_MD5_HASH}" end end task default: 'swiftlint:install'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
danger-swiftlint-0.29.3 | ext/swiftlint/Rakefile |
danger-swiftlint-0.29.2 | ext/swiftlint/Rakefile |