datadog-sdk-testing 0.3.3 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/tasks/ci/common.rb +4 -0
- data/lib/tasks/sdk.rake +8 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6f8bf4b467b975c21a9a7fd8e80462f70e14585
|
4
|
+
data.tar.gz: eeed648be5111b74c9a6c7ae3aaba07dd8ccaeb7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99ddd7dc0183243f22527274bbbcdaea7d5b4b2c3e69f8649a1f4808c56f7070ba913512abadd4821d05f46fecf94352736af2e790e77aa4b80427e4a35882c6
|
7
|
+
data.tar.gz: 8fe3fc089ec2637f1e2768fd4198fb2ab7173d2ab05b11ca0bbb7794916bb3cef0566b7ced98c7854d1f1cf6a8929e5e9c1cfa736c89b90a468eede03624dbfb
|
data/lib/tasks/ci/common.rb
CHANGED
@@ -11,6 +11,10 @@ def check_env
|
|
11
11
|
abort 'SDK_HOME env variable must be defined in your Rakefile to used this gem.' unless ENV['SDK_HOME']
|
12
12
|
end
|
13
13
|
|
14
|
+
def travis_circle_env
|
15
|
+
abort 'You are not in a Travis/Circle CI environment, this task wont apply.' if !ENV['TRAVIS_BUILD_DIR'] && !ENV['CIRCLE_PROJECT_REPONAME']
|
16
|
+
end
|
17
|
+
|
14
18
|
def sed(source, a, b, mods)
|
15
19
|
if RUBY_PLATFORM.include? 'darwin'
|
16
20
|
sh "sed -i '' \"s/#{a}/#{b}/#{mods}\" #{source}"
|
data/lib/tasks/sdk.rake
CHANGED
@@ -59,6 +59,14 @@ task 'setup_hooks' do
|
|
59
59
|
sh "ln -sf #{gem_home}/lib/tasks/ci/hooks/pre-commit.py #{ENV['SDK_HOME']}/.git/hooks/pre-commit"
|
60
60
|
end
|
61
61
|
|
62
|
+
desc 'Prepare Travis/Circle CI'
|
63
|
+
task 'prep_travis_ci' do
|
64
|
+
check_env
|
65
|
+
travis_circle_env
|
66
|
+
gem_home = Bundler.rubygems.find_name('datadog-sdk-testing').first.full_gem_path
|
67
|
+
sh "ln -sf #{gem_home}/lib/config/datadog.conf ~/dd-agent/datadog.conf"
|
68
|
+
end
|
69
|
+
|
62
70
|
desc 'Pull latest agent code'
|
63
71
|
task 'pull_latest_agent' do
|
64
72
|
check_env
|