datadog-sdk-testing 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b083d794f84fd4571f30fe0301f69939ecba9ccf
4
- data.tar.gz: b24e102930c86b2bf278473ffca1e993cba68088
3
+ metadata.gz: b6f8bf4b467b975c21a9a7fd8e80462f70e14585
4
+ data.tar.gz: eeed648be5111b74c9a6c7ae3aaba07dd8ccaeb7
5
5
  SHA512:
6
- metadata.gz: db6071a9cc128bc8851d1b36ccc963b78d1f8a11a98ec799a4ab648ebfdc9fa1c8d8f462c3932587128090e9fd589aabab1ec869cab71e0b69fc79c3fd63ecc1
7
- data.tar.gz: 97c15f5e9dd7b55bdbb1e49c52b90bcd9d5e155f81a967c1777737772924df291d2350eaa14c28de4950643416a968ca378fda5986e68440b6798cc942d9f4b1
6
+ metadata.gz: 99ddd7dc0183243f22527274bbbcdaea7d5b4b2c3e69f8649a1f4808c56f7070ba913512abadd4821d05f46fecf94352736af2e790e77aa4b80427e4a35882c6
7
+ data.tar.gz: 8fe3fc089ec2637f1e2768fd4198fb2ab7173d2ab05b11ca0bbb7794916bb3cef0566b7ced98c7854d1f1cf6a8929e5e9c1cfa736c89b90a468eede03624dbfb
@@ -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}"
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datadog-sdk-testing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jaime Fullaondo