File: test

package info (click to toggle)
ruby-slack-notifier 2.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 288 kB
  • sloc: ruby: 1,076; makefile: 5
file content (26 lines) | stat: -rwxr-xr-x 500 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env ruby

require 'yaml'
YAML.load_file('.env').each do |key, var|
  ENV[key] = var
end

rubies = ['2.0.0', '2.1', '2.2', '2.3.3', '2.4.0']
rubies.each do |ruby|
  # cleanup gemfile.locks
  Dir['spec*/**/*.lock'].each do |lockfile|
    puts "removing #{lockfile}"
    system "rm #{lockfile}"
  end

  pid = Process.fork do
    exec "rvm #{ruby} do ruby spec/integration/ping_integration_test.rb"
  end

  trap 'INT' do
    puts 'exiting'
    pid.send(:exit)
  end

  Process.wait(pid)
end