Class: KnapsackPro::Config::CI::Travis
- Inherits:
-
Base
- Object
- Base
- KnapsackPro::Config::CI::Travis
show all
- Defined in:
- lib/knapsack_pro/config/ci/travis.rb
Instance Method Summary
collapse
Methods inherited from Base
#node_index, #node_retry_count, #node_total, #test_queue_id
Instance Method Details
#branch ⇒ Object
15
16
17
|
# File 'lib/knapsack_pro/config/ci/travis.rb', line 15
def branch
ENV['TRAVIS_BRANCH']
end
|
#ci_provider ⇒ Object
35
36
37
|
# File 'lib/knapsack_pro/config/ci/travis.rb', line 35
def ci_provider
"Travis CI"
end
|
#commit_hash ⇒ Object
11
12
13
|
# File 'lib/knapsack_pro/config/ci/travis.rb', line 11
def commit_hash
ENV['TRAVIS_COMMIT']
end
|
#detected ⇒ Object
27
28
29
|
# File 'lib/knapsack_pro/config/ci/travis.rb', line 27
def detected
ENV.key?('TRAVIS') ? self.class : nil
end
|
#fixed_queue_split ⇒ Object
31
32
33
|
# File 'lib/knapsack_pro/config/ci/travis.rb', line 31
def fixed_queue_split
true
end
|
#node_build_id ⇒ Object
7
8
9
|
# File 'lib/knapsack_pro/config/ci/travis.rb', line 7
def node_build_id
ENV['TRAVIS_BUILD_NUMBER']
end
|
#project_dir ⇒ Object
19
20
21
|
# File 'lib/knapsack_pro/config/ci/travis.rb', line 19
def project_dir
ENV['TRAVIS_BUILD_DIR']
end
|
#user_seat ⇒ Object
23
24
25
|
# File 'lib/knapsack_pro/config/ci/travis.rb', line 23
def user_seat
end
|