datadog-sdk-testing 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tasks/ci/default.rb +9 -5
- data/lib/tasks/sdk.rake +5 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd731659f0a602c11c4eed723c44395e53d371a4
|
4
|
+
data.tar.gz: c4a58cd77cefcbb04768c7534f1810122f4a9f7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73442145c4cc66e69467475c2efc74c483a4c64323797c5019b1eeb8132135c29b8dcc2facdb5e697c93c3939532f624d6ae3677281e6caff8309af6e0ab86de
|
7
|
+
data.tar.gz: d48dc642962672876e131f5132207b043d5d276c29934eae18375f373af9958b584b3f1c9551b149888c17467b8fbcf54cd925d50ae1889bba640ee93dc74f9b
|
data/lib/tasks/ci/default.rb
CHANGED
@@ -24,11 +24,15 @@ namespace :ci do
|
|
24
24
|
task before_script: ['ci:common:before_script']
|
25
25
|
|
26
26
|
task lint: ['ci:common:before_script', 'ci:common:before_install', 'ci:common:install', 'rubocop'] do
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
27
|
+
if ENV['SKIP_LINT']
|
28
|
+
puts 'Skipping lint'.yellow
|
29
|
+
else
|
30
|
+
check_env
|
31
|
+
sh %(flake8 #{ENV['SDK_HOME']})
|
32
|
+
sh %(find #{ENV['SDK_HOME']} -name '*.py' -not\
|
33
|
+
\\( -path '*.cache*' -or -path '*embedded*' -or -path '*venv*' -or -path '*.git*' \\)\
|
34
|
+
| xargs -n 1 pylint --rcfile=#{ENV['SDK_HOME']}/.pylintrc)
|
35
|
+
end
|
32
36
|
end
|
33
37
|
|
34
38
|
task :requirements do
|
data/lib/tasks/sdk.rake
CHANGED
@@ -55,23 +55,22 @@ end
|
|
55
55
|
desc 'Wipe integration'
|
56
56
|
task 'wipe', :option do |_, args|
|
57
57
|
flavor = args[:option] || false
|
58
|
-
abort
|
58
|
+
abort 'please specify an integration to remove' unless flavor
|
59
59
|
check_env
|
60
|
-
input = ''
|
61
60
|
print "Are you sure you want to remove the #{flavor} integration (y/n)? "
|
62
61
|
input = STDIN.gets.chomp
|
63
62
|
case input.upcase
|
64
|
-
when
|
63
|
+
when 'Y'
|
65
64
|
`rm -rf #{ENV['SDK_HOME']}/#{flavor}` if File.directory?("#{ENV['SDK_HOME']}/#{flavor}")
|
66
65
|
`rm -rf #{ENV['SDK_HOME']}/ci/#{flavor}.rake` if File.exist?("#{ENV['SDK_HOME']}/ci/#{flavor}.rake")
|
67
|
-
puts
|
66
|
+
puts 'source and CI files.'
|
68
67
|
# two searches on travis.yml because of BSD sed.
|
69
68
|
sed("#{ENV['SDK_HOME']}/.travis.yml", '', "=#{flavor}\\ ", '', 'd')
|
70
69
|
sed("#{ENV['SDK_HOME']}/.travis.yml", '', "=#{flavor}$", '', 'd')
|
71
70
|
sed("#{ENV['SDK_HOME']}/circle.yml", '', "\\[#{flavor}\\]", '', 'd')
|
72
71
|
`git rm -r #{flavor}`
|
73
|
-
when
|
74
|
-
puts
|
72
|
+
when 'N'
|
73
|
+
puts 'aborting the task...'
|
75
74
|
end
|
76
75
|
end
|
77
76
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: datadog-sdk-testing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jaime Fullaondo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-03 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Datadog Integration SDK testing/scaffolding gem
|
14
14
|
email: jaime.fullaondo@datadoghq.com
|