-
Notifications
You must be signed in to change notification settings - Fork 0
/
.singularityrc
34 lines (28 loc) · 910 Bytes
/
.singularityrc
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
27
28
29
30
31
32
33
34
# encoding: utf-8
batch :coveralls_env do
ENV['GIT_BRANCH'] = ENV['BRANCH_NAME']
ENV['CI_BUILD_NUMBER'] = ENV['BUILD_NUMBER']
ENV['CI_BRANCH'] = ENV['BRANCH_NAME']
ENV['CI_BUILD_URL'] = ENV['BUILD_URL']
ENV['GIT_COMMIT'] = `git rev-parse HEAD`
ENV['CI_JOB_ID'] = ENV['JOB']
bootcoveralls { pr ENV.fetch('PULL', nil) }
end
batch :test do
rubocop
invoke_batch(:coveralls_env) if flag? 'coveralls'
rspec
end
batch :callback_integration do
rubocop
on_fail { fail 'fail callback' }
on_error { fail 'error callback' }
on_success { rspec }
always { puts 'Callback Integrations seem ok!' }
end
batch :ci do
shelltask { command 'bundle install --path ./vendor' }
shelltask { command 'bundle exec singularity_runner batch test --flags coveralls' }
shelltask { command 'bundle exec singularity_runner batch callback_integration' }
end
invoke_batch :test