Sha256: 18e10a4e8e289beb83cfddacb60b67c85670095ec89fb01f07c8da3c45b9d872

Contents?: true

Size: 520 Bytes

Versions: 12

Compression:

Stored size: 520 Bytes

Contents

module KnapsackPro
  module Config
    module CI
      class Travis < Base
        def node_build_id
          ENV['TRAVIS_BUILD_NUMBER']
        end

        def commit_hash
          ENV['TRAVIS_COMMIT']
        end

        def branch
          ENV['TRAVIS_BRANCH']
        end

        def project_dir
          ENV['TRAVIS_BUILD_DIR']
        end

        def detected
          ENV.key?('TRAVIS') ? self.class : nil
        end

        def fixed_queue_split
          true
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
knapsack_pro-5.3.5 lib/knapsack_pro/config/ci/travis.rb
knapsack_pro-5.3.4 lib/knapsack_pro/config/ci/travis.rb
knapsack_pro-5.3.3 lib/knapsack_pro/config/ci/travis.rb
knapsack_pro-5.3.2 lib/knapsack_pro/config/ci/travis.rb
knapsack_pro-5.3.1 lib/knapsack_pro/config/ci/travis.rb
knapsack_pro-5.3.0 lib/knapsack_pro/config/ci/travis.rb
knapsack_pro-5.2.1 lib/knapsack_pro/config/ci/travis.rb
knapsack_pro-5.2.0 lib/knapsack_pro/config/ci/travis.rb
knapsack_pro-5.1.2 lib/knapsack_pro/config/ci/travis.rb
knapsack_pro-5.1.1 lib/knapsack_pro/config/ci/travis.rb
knapsack_pro-5.1.0 lib/knapsack_pro/config/ci/travis.rb
knapsack_pro-5.0.0 lib/knapsack_pro/config/ci/travis.rb