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, #user_seat
Instance Method Details
#branch ⇒ Object
13
14
15
|
# File 'lib/knapsack_pro/config/ci/travis.rb', line 13
def branch
ENV['TRAVIS_BRANCH']
end
|
#ci_provider ⇒ Object
29
30
31
|
# File 'lib/knapsack_pro/config/ci/travis.rb', line 29
def ci_provider
"Travis CI"
end
|
#commit_hash ⇒ Object
9
10
11
|
# File 'lib/knapsack_pro/config/ci/travis.rb', line 9
def commit_hash
ENV['TRAVIS_COMMIT']
end
|
#detected ⇒ Object
21
22
23
|
# File 'lib/knapsack_pro/config/ci/travis.rb', line 21
def detected
ENV.key?('TRAVIS') ? self.class : nil
end
|
#fixed_queue_split ⇒ Object
25
26
27
|
# File 'lib/knapsack_pro/config/ci/travis.rb', line 25
def fixed_queue_split
true
end
|
#node_build_id ⇒ Object
5
6
7
|
# File 'lib/knapsack_pro/config/ci/travis.rb', line 5
def node_build_id
ENV['TRAVIS_BUILD_NUMBER']
end
|
#project_dir ⇒ Object
17
18
19
|
# File 'lib/knapsack_pro/config/ci/travis.rb', line 17
def project_dir
ENV['TRAVIS_BUILD_DIR']
end
|