Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Compile an sh build script

  • Loading branch information...
commit 2dd6b07e491f29050590b2b6bb307bd2c01e6ba7 1 parent c321648
Sven Fuchs authored December 24, 2012

Showing 121 changed files with 2,263 additions and 4,870 deletions. Show diff stats Hide diff stats

  1. 3  .travis.yml
  2. 11  Gemfile
  3. 30  features/support/env.rb
  4. 310  features/support/step_definitions.rb
  5. 78  features/switching_active_jdk.feature
  6. 93  features/test_clojure.feature
  7. 93  features/test_clojure_with_given_jdk_version.feature
  8. 137  features/test_erlang.feature
  9. 135  features/test_groovy.feature
  10. 146  features/test_java.feature
  11. 158  features/test_nodejs.feature
  12. 112  features/test_php.feature
  13. 122  features/test_ruby.feature
  14. 156  features/test_ruby_with_given_jdk_version.feature
  15. 117  features/test_scala.feature
  16. 117  features/test_scala_with_given_jdk_version.feature
  17. 5  lib/core_ext/object/false.rb
  18. 5  lib/core_ext/string/indent.rb
  19. 5  lib/core_ext/string/unindent.rb
  20. 110  lib/travis/build.rb
  21. 36  lib/travis/build/commit.rb
  22. 106  lib/travis/build/config.rb
  23. 24  lib/travis/build/connection.rb
  24. 43  lib/travis/build/event.rb
  25. 15  lib/travis/build/exceptions.rb
  26. 76  lib/travis/build/factory.rb
  27. 9  lib/travis/build/job.rb
  28. 28  lib/travis/build/job/image.rb
  29. 198  lib/travis/build/job/test.rb
  30. 39  lib/travis/build/job/test/c.rb
  31. 47  lib/travis/build/job/test/clojure.rb
  32. 64  lib/travis/build/job/test/cpp.rb
  33. 48  lib/travis/build/job/test/erlang.rb
  34. 46  lib/travis/build/job/test/go.rb
  35. 16  lib/travis/build/job/test/groovy.rb
  36. 45  lib/travis/build/job/test/haskell.rb
  37. 32  lib/travis/build/job/test/jdk_switcher.rb
  38. 75  lib/travis/build/job/test/jvm_language.rb
  39. 52  lib/travis/build/job/test/node_js.rb
  40. 64  lib/travis/build/job/test/perl.rb
  41. 50  lib/travis/build/job/test/php.rb
  42. 15  lib/travis/build/job/test/pure_java.rb
  43. 77  lib/travis/build/job/test/python.rb
  44. 64  lib/travis/build/job/test/ruby.rb
  45. 47  lib/travis/build/job/test/scala.rb
  46. 48  lib/travis/build/remote.rb
  47. 54  lib/travis/build/scm/git.rb
  48. 83  lib/travis/build/script.rb
  49. 25  lib/travis/build/script/c.rb
  50. 37  lib/travis/build/script/clojure.rb
  51. 50  lib/travis/build/script/cpp.rb
  52. 42  lib/travis/build/script/erlang.rb
  53. 49  lib/travis/build/script/git.rb
  54. 33  lib/travis/build/script/go.rb
  55. 11  lib/travis/build/script/groovy.rb
  56. 29  lib/travis/build/script/haskell.rb
  57. 40  lib/travis/build/script/helpers.rb
  58. 21  lib/travis/build/script/jdk.rb
  59. 35  lib/travis/build/script/jvm.rb
  60. 43  lib/travis/build/script/node_js.rb
  61. 37  lib/travis/build/script/perl.rb
  62. 36  lib/travis/build/script/php.rb
  63. 12  lib/travis/build/script/pure_java.rb
  64. 53  lib/travis/build/script/python.rb
  65. 61  lib/travis/build/script/ruby.rb
  66. 34  lib/travis/build/script/scala.rb
  67. 34  lib/travis/build/script/services.rb
  68. 64  lib/travis/build/script/stages.rb
  69. 2  lib/travis/build/script/templates/footer.sh
  70. 34  lib/travis/build/script/templates/header.sh
  71. 21  lib/travis/build/shell.rb
  72. 64  lib/travis/build/shell/dsl.rb
  73. 49  lib/travis/build/shell/filters.rb
  74. 98  lib/travis/build/shell/node.rb
  75. 8  lib/travis/build/version.rb
  76. 141  play/build.sh
  77. 30  play/compile.rb
  78. 12  play/timeout.sh
  79. 62  spec/build/event_spec.rb
  80. 150  spec/build/factory_spec.rb
  81. 48  spec/build/job/test/c_spec.rb
  82. 83  spec/build/job/test/clojure_spec.rb
  83. 60  spec/build/job/test/cpp_spec.rb
  84. 69  spec/build/job/test/erlang_spec.rb
  85. 42  spec/build/job/test/go_spec.rb
  86. 61  spec/build/job/test/groovy_spec.rb
  87. 23  spec/build/job/test/haskell_spec.rb
  88. 94  spec/build/job/test/jvm_language_spec.rb
  89. 55  spec/build/job/test/node_js_spec.rb
  90. 53  spec/build/job/test/perl_spec.rb
  91. 64  spec/build/job/test/php_spec.rb
  92. 65  spec/build/job/test/python_spec.rb
  93. 124  spec/build/job/test/ruby_spec.rb
  94. 68  spec/build/job/test/scala_spec.rb
  95. 270  spec/build/job/test_spec.rb
  96. 31  spec/build/remote_spec.rb
  97. 48  spec/build/scm/git_spec.rb
  98. 79  spec/build_spec.rb
  99. 28  spec/script/c_spec.rb
  100. 42  spec/script/clojure_spec.rb
  101. 75  spec/script/cpp_spec.rb
  102. 51  spec/script/erlang_spec.rb
  103. 43  spec/script/go_spec.rb
  104. 10  spec/script/groovy_spec.rb
  105. 30  spec/script/haskell_spec.rb
  106. 46  spec/script/node_js_spec.rb
  107. 60  spec/script/perl_spec.rb
  108. 25  spec/script/php_spec.rb
  109. 10  spec/script/pure_java.rb
  110. 65  spec/script/python_spec.rb
  111. 54  spec/script/ruby_spec.rb
  112. 32  spec/script/scala_spec.rb
  113. 38  spec/shared/jdk.rb
  114. 37  spec/shared/jvm.rb
  115. 45  spec/shared/script.rb
  116. 60  spec/spec_helper.rb
  117. 37  spec/support/header.sh
  118. 3  spec/support/helpers.rb
  119. 65  spec/support/matchers.rb
  120. 64  spec/support/mocks.rb
  121. 15  spec/support/payloads.rb
3  .travis.yml
... ...
@@ -1,6 +1,7 @@
1 1
 language: ruby
2 2
 rvm:
  3
+  - 1.9.3
3 4
   - jruby-18mode
4 5
   - jruby-19mode
5 6
   - jruby-head
6  
-script: "bundle exec rspec spec && bundle exec cucumber"
  7
+script: "bundle exec rspec spec"
11  Gemfile
@@ -2,19 +2,8 @@ source :rubygems
2 2
 
3 3
 gem 'travis-support', :git => 'git://github.com/travis-ci/travis-support.git'
4 4
 
5  
-gem 'activesupport', '~> 3.1.2'
6  
-gem 'hashr',         '~> 0.0.17'
7  
-gem 'multi_json',    '~> 1.0.3'
8  
-gem 'faraday',       '~> 0.7.5'
9  
-gem 'net-ssh-shell', '~> 0.2.0'
10  
-gem 'rake',          '~> 0.9.2.2'
11  
-gem 'thor',          '~> 0.14.6'
12  
-
13  
-gem 'jruby-openssl', '~> 0.7.4', :platforms => :jruby
14  
-
15 5
 group :test do
16 6
   gem 'mocha',       '~> 0.10.0'
17 7
   gem 'rspec',       '~> 2.7.0'
18  
-  gem 'cucumber',    '~> 1.1.2'
19 8
 end
20 9
 
30  features/support/env.rb
... ...
@@ -1,30 +0,0 @@
1  
-root = File.expand_path('../../..', __FILE__)
2  
-
3  
-$: << "#{root}/lib" << "#{root}/spec"
4  
-
5  
-require 'travis/build'
6  
-require 'travis/support'
7  
-
8  
-require 'stringio'
9  
-require 'mocha'
10  
-require 'support/mocks'
11  
-require 'support/payloads'
12  
-
13  
-World(Mocha::API)
14  
-
15  
-Before do
16  
-  mocha_setup
17  
-
18  
-  Travis.logger = Logger.new(StringIO.new)
19  
-
20  
-  $now = Time.now.utc
21  
-  Time.stubs(:now).returns($now)
22  
-end
23  
-
24  
-After do
25  
-  begin
26  
-    mocha_verify
27  
-  ensure
28  
-    mocha_teardown
29  
-  end
30  
-end
310  features/support/step_definitions.rb
... ...
@@ -1,310 +0,0 @@
1  
-require 'hashr'
2  
-require 'active_support/core_ext/hash/keys'
3  
-
4  
-def decode(string)
5  
-  string.split(',').inject({}) do |result, pair|
6  
-    key, value = pair.split(':').map { |token| token.strip }
7  
-
8  
-    value = case value
9  
-            when '[now]'
10  
-              Time.now.utc
11  
-            when 'true', 'false'
12  
-              eval(value)
13  
-            when /^\/.*\/$/
14  
-              eval(value)
15  
-            when /^\d*$/
16  
-              value.to_i
17  
-            else
18  
-              value
19  
-            end
20  
-
21  
-    result.merge(key => value)
22  
-  end.symbolize_keys
23  
-end
24  
-
25  
-Given /^the following test payload$/ do |table|
26  
-  hash = Hashr.new(table.rows_hash)
27  
-
28  
-  $payload = Hashr.new({
29  
-    :repository => {
30  
-      :slug => hash.repository,
31  
-      :source_url => "git://github.com/#{hash.repository}.git"
32  
-    },
33  
-    :build => {
34  
-      :commit => hash.commit
35  
-    },
36  
-    :type => 'test'
37  
-  })
38  
-
39  
-  $payload.config = decode(hash.config) if hash.config?
40  
-end
41  
-
42  
-When /^it starts a job$/ do
43  
-  $vm       = Mocks::Vm.new
44  
-  $shell    = Mocks::Shell.new
45  
-  $observer = Mocks::Observer.new
46  
-  $sequence = sequence('build')
47  
-  $build    = Travis::Build.create($vm, $shell, [$observer], $payload, {})
48  
-
49  
-  step 'it opens the ssh session'
50  
-  step 'it cds into the builds dir'
51  
-end
52  
-
53  
-Then /^it (successfully|fails to) clones? the repository to the build dir with git$/ do |result|
54  
-  step 'it silently disables interactive git auth'
55  
-  step "it #{result} clones the repository with git"
56  
-  step 'it silently removes the ssh key'
57  
-end
58  
-
59  
-Then /^it (successfully|fails to) checks? out the commit with git to the repository directory$/ do |result|
60  
-  step 'it cds into the repository directory'
61  
-  step "it #{result} checks the commit out with git"
62  
-end
63  
-
64  
-Then /^it finds a file (.*) (?:and|but) (successfully|fails to) installs? dependencies with (.*)$/ do |filename, result, tool|
65  
-  step "it finds the file #{filename}"
66  
-  if tool == 'bundle'
67  
-    step 'it evaluates the current working directory'
68  
-    step "it exports the line BUNDLE_GEMFILE=~/builds/travis-ci/travis-ci/#{filename}"
69  
-  end
70  
-  step "it #{result} installs dependencies with #{tool}"
71  
-end
72  
-
73  
-
74  
-Then /^it exports the given environment variables$/ do
75  
-  step "it exports the line TRAVIS_PULL_REQUEST=false"
76  
-  step "it exports the line TRAVIS_SECURE_ENV_VARS=false"
77  
-
78  
-  if $payload.config.env?
79  
-    line = $payload.config.env
80  
-    step "it exports the line #{line}"
81  
-  end
82  
-end
83  
-
84  
-Then /^it opens the ssh session$/ do
85  
-  $shell.expects(:connect).
86  
-    in_sequence($sequence)
87  
-end
88  
-
89  
-Then /^it cds into the (.*)$/ do |dir|
90  
-  dirs = {
91  
-    'builds dir' => '~/builds',
92  
-    'repository directory' => $payload.repository.slug
93  
-  }
94  
-  dir = dirs[dir]
95  
-
96  
-  $shell.expects(:chdir).
97  
-    with(dir).
98  
-    outputs("cd #{dir}").
99  
-    in_sequence($sequence)
100  
-end
101  
-
102  
-Then /^it exports the line (.+)$/ do |line|
103  
-  $shell.expects(:export_line).
104  
-    with(line).
105  
-    outputs("export #{line}").
106  
-    in_sequence($sequence)
107  
-end
108  
-
109  
-Then /^it silently disables interactive git auth$/ do
110  
-  $shell.expects(:export).
111  
-    with('GIT_ASKPASS', 'echo', :echo => false).
112  
-    in_sequence($sequence)
113  
-end
114  
-
115  
-Then /^it (successfully|fails to) clones? the repository with git$/ do |result|
116  
-  $shell.expects(:execute).
117  
-    with("git clone --depth=100 --quiet git://github.com/#{$payload.repository.slug}.git #{$payload.repository.slug}").
118  
-    outputs('git clone').
119  
-    returns(result == 'successfully').
120  
-    in_sequence($sequence)
121  
-end
122  
-
123  
-Then /^it silently removes the ssh key/ do
124  
-  $shell.expects(:execute).
125  
-    with('rm -f ~/.ssh/source_rsa', :echo => false).
126  
-    in_sequence($sequence)
127  
-end
128  
-
129  
-Then /^it (successfully|fails to) checks? the commit out with git$/ do |result|
130  
-  checkout = $shell.expects(:execute).
131  
-    with("git checkout -qf #{$payload.build.commit}").
132  
-    outputs('git checkout')
133  
-
134  
-  if result == 'successfully'
135  
-    checkout.
136  
-      returns(true).
137  
-      in_sequence($sequence)
138  
-
139  
-    $shell.expects(:file_exists?).
140  
-      with('.gitmodules').
141  
-      returns(false)
142  
-  else
143  
-    checkout.
144  
-      raises(Travis::AssertionFailed).
145  
-      in_sequence($sequence)
146  
-  end
147  
-end
148  
-
149  
-Then /^it (successfully|fails to) switch(?:es)? to the (.*) version: (.*)$/ do |result, language, version|
150  
-  cmds = {
151  
-    'ruby'   => "rvm use #{version}",
152  
-    'erlang' => "source /home/vagrant/otp/#{version}/activate",
153  
-    'nodejs' => "nvm use #{version}",
154  
-    'php'    => "phpenv global #{version}",
155  
-    'jdk'    => "jdk_switcher use #{version}"
156  
-  }
157  
-  cmd = cmds[language.gsub('.', '')]
158  
-
159  
-  options = nil
160  
-  options = { :echo => true } if language == 'ruby'
161  
-
162  
-  $shell.expects(:execute).
163  
-    with(cmd, options).
164  
-    outputs(cmd).
165  
-    returns(result == 'successfully').
166  
-    in_sequence($sequence)
167  
-end
168  
-
169  
-Then /it announces active (?:lein|leiningen|Leiningen) version/ do
170  
-  cmd = 'lein version'
171  
-
172  
-  $shell.expects(:execute).
173  
-    with(cmd).
174  
-    outputs(cmd).
175  
-    in_sequence($sequence)
176  
-end
177  
-
178  
-Then /it announces active (?:php|PHP) version/ do
179  
-  cmd = 'php --version'
180  
-
181  
-  $shell.expects(:execute).
182  
-    with(cmd).
183  
-    outputs(cmd).
184  
-    in_sequence($sequence)
185  
-end
186  
-
187  
-Then /it announces active (?:jdk|JDK) version/ do
188  
-  $shell.expects(:execute).
189  
-    with("java -version").
190  
-    outputs("java -version").
191  
-    in_sequence($sequence)
192  
-
193  
-  $shell.expects(:execute).
194  
-    with("javac -version").
195  
-    outputs("javac -version").
196  
-    in_sequence($sequence)
197  
-end
198  
-
199  
-Then /it announces active (?:ruby|Ruby) version/ do
200  
-  $shell.expects(:execute).
201  
-    with("ruby --version").
202  
-    outputs("ruby --version").
203  
-    in_sequence($sequence)
204  
-
205  
-  $shell.expects(:execute).
206  
-    with("gem --version").
207  
-    outputs("gem --version").
208  
-    in_sequence($sequence)
209  
-end
210  
-
211  
-Then /it announces active (?:node|node.js|Node|Node.js) version/ do
212  
-  $shell.expects(:execute).
213  
-    with("node --version").
214  
-    outputs("node --version").
215  
-    returns(true).
216  
-    in_sequence($sequence)
217  
-
218  
-  $shell.expects(:execute).
219  
-    with("npm --version").
220  
-    outputs("npm --version").
221  
-    returns(true).
222  
-    in_sequence($sequence)
223  
-end
224  
-
225  
-Then /^it (finds|does not find) (?:the )?file (.*)$/ do |result, filenames|
226  
-  filenames = filenames.split(/, | or /).map { |filename| filename.strip }
227  
-  filenames.each do |filename|
228  
-    $shell.expects(:file_exists?).
229  
-      with(filename).
230  
-      at_least_once.
231  
-      returns(result == 'finds').
232  
-      in_sequence($sequence)
233  
-  end
234  
-end
235  
-
236  
-Then /^it (finds|does not find) directory (.*)$/ do |result, dirname|
237  
-  $shell.expects(:directory_exists?).
238  
-    with(dirname).
239  
-    at_least_once.
240  
-    returns(result == 'finds').
241  
-    in_sequence($sequence)
242  
-end
243  
-
244  
-Then /^there is no local rebar in the repository$/ do
245  
-  $build.stubs(:has_local_rebar?).returns(false)
246  
-  $shell.stubs(:file_exists?).
247  
-    with("rebar").
248  
-    returns(false)
249  
-end
250  
-
251  
-Then /^it evaluates the current working directory$/ do
252  
-  $shell.expects(:cwd).
253  
-    returns("~/builds/#{$payload.repository.slug}").
254  
-    in_sequence($sequence)
255  
-end
256  
-
257  
-Then /^it (successfully|fails to) installs? dependencies with (.*)$/ do |result, dependencies|
258  
-  cmds = {
259  
-    'bundle'   => 'bundle install',
260  
-    'lein'     => 'lein deps',
261  
-    'maven'    => 'mvn install --quiet -DskipTests=true',
262  
-    'mvn'      => 'mvn install --quiet -DskipTests=true',
263  
-    'gradle'   => 'gradle assemble',
264  
-    'rebar'    => 'rebar get-deps',
265  
-    'npm'      => 'npm install --dev',
266  
-    'composer' => 'composer install --dev'
267  
-  }
268  
-  cmd = cmds[dependencies]
269  
-
270  
-  $shell.expects(:execute).
271  
-    with(cmd, :stage => :install).
272  
-    outputs(cmd).
273  
-    returns(result == 'successfully').
274  
-    in_sequence($sequence)
275  
-end
276  
-
277  
-Then /^it (successfully|fails to) runs? the (.*): (.*)$/ do |result, type, command|
278  
-  $shell.expects(:execute).
279  
-    with(command, :stage => type.to_sym).
280  
-    outputs(command).
281  
-    returns(result == 'successfully').
282  
-    in_sequence($sequence)
283  
-end
284  
-
285  
-Then /^it closes the ssh session$/ do
286  
-  $shell.expects(:close).
287  
-    in_sequence($sequence)
288  
-end
289  
-
290  
-Then /^it returns the result (.*)$/ do |result|
291  
-  $build.run[:result].should == result.to_i
292  
-end
293  
-
294  
-Then /^it has captured the following events$/ do |table|
295  
-  expected = table.hashes.map { |hash| Hashr.new(hash) }
296  
-  actual = $observer.events
297  
-
298  
-  expected.each_with_index do |expected, ix|
299  
-    actual[ix][0].should == expected.name
300  
-
301  
-    decode(expected.data).each do |key, value|
302  
-      case value
303  
-      when Regexp
304  
-        actual[ix][1][key].should =~ value
305  
-      else
306  
-        actual[ix][1][key].should == value
307  
-      end
308  
-    end
309  
-  end
310  
-end
78  features/switching_active_jdk.feature
... ...
@@ -1,78 +0,0 @@
1  
-Feature: Switching JDKs when testing a Clojure project
2  
-
3  
-  Scenario: A successful build with OpenJDK 7
4  
-    Given the following test payload
5  
-     | repository | travis-ci/travis-ci                            |
6  
-     | commit     | 1234567                                        |
7  
-     | config     | language: clojure, env: FOO=foo, jdk: openjdk7 |
8  
-    When it starts a job
9  
-    Then it exports the given environment variables
10  
-     And it successfully clones the repository to the build dir with git
11  
-     And it successfully checks out the commit with git to the repository directory
12  
-     And it exports the line TRAVIS_JDK_VERSION=openjdk7
13  
-     And it successfully switches to the jdk version: openjdk7
14  
-     And it announces active jdk version
15  
-     And it announces active leiningen version
16  
-     And it successfully installs dependencies with lein
17  
-     And it successfully runs the script: lein test
18  
-     And it closes the ssh session
19  
-     And it returns the result 0
20  
-     And it has captured the following events
21  
-       | name            | data                                      |
22  
-       | job:test:start  | started_at: [now]                         |
23  
-       | job:test:log    | log: /Using worker/                       |
24  
-       | job:test:log    | log: cd ~/builds                          |
25  
-       | job:test:log    | log: export TRAVIS_PULL_REQUEST=false     |
26  
-       | job:test:log    | log: export TRAVIS_SECURE_ENV_VARS=false  |
27  
-       | job:test:log    | log: export FOO=foo                       |
28  
-       | job:test:log    | log: git clone                            |
29  
-       | job:test:log    | log: cd travis-ci/travis-ci               |
30  
-       | job:test:log    | log: git checkout                         |
31  
-       | job:test:log    | log: /export TRAVIS_JDK_VERSION=openjdk7/ |
32  
-       | job:test:log    | log: jdk_switcher use openjdk7            |
33  
-       | job:test:log    | log: java -version                        |
34  
-       | job:test:log    | log: javac -version                       |
35  
-       | job:test:log    | log: lein version                         |
36  
-       | job:test:log    | log: lein deps                            |
37  
-       | job:test:log    | log: lein test                            |
38  
-       | job:test:log    | log: /Done.* 0/                           |
39  
-       | job:test:finish | finished_at: [now], result: 0             |
40  
-
41  
-
42  
-  Scenario: A successful build with Oracle JDK 7
43  
-    Given the following test payload
44  
-     | repository | travis-ci/travis-ci                              |
45  
-     | commit     | 1234567                                          |
46  
-     | config     | language: clojure, env: FOO=foo, jdk: oraclejdk7 |
47  
-    When it starts a job
48  
-    Then it exports the given environment variables
49  
-     And it successfully clones the repository to the build dir with git
50  
-     And it successfully checks out the commit with git to the repository directory
51  
-     And it exports the line TRAVIS_JDK_VERSION=oraclejdk7
52  
-     And it successfully switches to the jdk version: oraclejdk7
53  
-     And it announces active jdk version
54  
-     And it announces active leiningen version
55  
-     And it successfully installs dependencies with lein
56  
-     And it successfully runs the script: lein test
57  
-     And it closes the ssh session
58  
-     And it returns the result 0
59  
-     And it has captured the following events
60  
-       | name            | data                                        |
61  
-       | job:test:start  | started_at: [now]                           |
62  
-       | job:test:log    | log: /Using worker/                         |
63  
-       | job:test:log    | log: cd ~/builds                            |
64  
-       | job:test:log    | log: export TRAVIS_PULL_REQUEST=false       |
65  
-       | job:test:log    | log: export TRAVIS_SECURE_ENV_VARS=false    |
66  
-       | job:test:log    | log: export FOO=foo                         |
67  
-       | job:test:log    | log: git clone                              |
68  
-       | job:test:log    | log: cd travis-ci/travis-ci                 |
69  
-       | job:test:log    | log: git checkout                           |
70  
-       | job:test:log    | log: /export TRAVIS_JDK_VERSION=oraclejdk7/ |
71  
-       | job:test:log    | log: jdk_switcher use oraclejdk7            |
72  
-       | job:test:log    | log: java -version                          |
73  
-       | job:test:log    | log: javac -version                         |
74  
-       | job:test:log    | log: lein version                           |
75  
-       | job:test:log    | log: lein deps                              |
76  
-       | job:test:log    | log: lein test                              |
77  
-       | job:test:log    | log: /Done.* 0/                             |
78  
-       | job:test:finish | finished_at: [now], result: 0               |
93  features/test_clojure.feature
... ...
@@ -1,93 +0,0 @@
1  
-Feature: Testing a Clojure project
2  
-
3  
-  Background:
4  
-   Given the following test payload
5  
-     | repository | travis-ci/travis-ci             |
6  
-     | commit     | 1234567                         |
7  
-     | config     | language: clojure, env: FOO=foo |
8  
-
9  
-  Scenario: A successful build
10  
-    When it starts a job
11  
-    Then it exports the given environment variables
12  
-     And it successfully clones the repository to the build dir with git
13  
-     And it successfully checks out the commit with git to the repository directory
14  
-     And it exports the line TRAVIS_JDK_VERSION=default
15  
-     And it successfully switches to the jdk version: default
16  
-     And it announces active jdk version
17  
-     And it announces active leiningen version
18  
-     And it successfully installs dependencies with lein
19  
-     And it successfully runs the script: lein test
20  
-     And it closes the ssh session
21  
-     And it returns the result 0
22  
-     And it has captured the following events
23  
-       | name            | data                                     |
24  
-       | job:test:start  | started_at: [now]                        |
25  
-       | job:test:log    | log: /Using worker/                      |
26  
-       | job:test:log    | log: cd ~/builds                         |
27  
-       | job:test:log    | log: export TRAVIS_PULL_REQUEST=false    |
28  
-       | job:test:log    | log: export TRAVIS_SECURE_ENV_VARS=false |
29  
-       | job:test:log    | log: export FOO=foo                      |
30  
-       | job:test:log    | log: git clone                           |
31  
-       | job:test:log    | log: cd travis-ci/travis-ci              |
32  
-       | job:test:log    | log: git checkout                        |
33  
-       | job:test:log    | log: /export TRAVIS_JDK_VERSION=default/ |
34  
-       | job:test:log    | log: jdk_switcher use default            |
35  
-       | job:test:log    | log: java -version                       |
36  
-       | job:test:log    | log: javac -version                      |
37  
-       | job:test:log    | log: lein version                        |
38  
-       | job:test:log    | log: lein deps                           |
39  
-       | job:test:log    | log: lein test                           |
40  
-       | job:test:log    | log: /Done.* 0/                          |
41  
-       | job:test:finish | finished_at: [now], result: 0            |
42  
-
43  
-  Scenario: The repository can not be cloned
44  
-    When it starts a job
45  
-    Then it exports the given environment variables
46  
-     And it fails to clone the repository to the build dir with git
47  
-     And it closes the ssh session
48  
-     And it returns the result 1
49  
-
50  
-  Scenario: The commit can not be checked out
51  
-    When it starts a job
52  
-    Then it exports the given environment variables
53  
-     And it successfully clones the repository to the build dir with git
54  
-     And it fails to check out the commit with git to the repository directory
55  
-     And it closes the ssh session
56  
-     And it returns the result 1
57  
-
58  
-  Scenario: The lein dependencies can not be installed
59  
-    When it starts a job
60  
-    Then it exports the given environment variables
61  
-     And it successfully clones the repository to the build dir with git
62  
-     And it successfully checks out the commit with git to the repository directory
63  
-     And it exports the line TRAVIS_JDK_VERSION=default
64  
-     And it successfully switches to the jdk version: default
65  
-     And it announces active jdk version
66  
-     And it announces active leiningen version
67  
-     And it fails to install dependencies with lein
68  
-     And it closes the ssh session
69  
-     And it returns the result 1
70  
-
71  
-  Scenario: The jdk version can not be activated
72  
-    When it starts a job
73  
-    Then it exports the given environment variables
74  
-     And it successfully clones the repository to the build dir with git
75  
-     And it successfully checks out the commit with git to the repository directory
76  
-     And it exports the line TRAVIS_JDK_VERSION=default
77  
-     And it fails to switch to the jdk version: default
78  
-     And it closes the ssh session
79  
-     And it returns the result 1
80  
-
81  
-  Scenario: A failing build
82  
-    When it starts a job
83  
-    Then it exports the given environment variables
84  
-     And it successfully clones the repository to the build dir with git
85  
-     And it successfully checks out the commit with git to the repository directory
86  
-     And it exports the line TRAVIS_JDK_VERSION=default
87  
-     And it successfully switches to the jdk version: default
88  
-     And it announces active jdk version
89  
-     And it announces active leiningen version
90  
-     And it successfully installs dependencies with lein
91  
-     And it fails to run the script: lein test
92  
-     And it closes the ssh session
93  
-     And it returns the result 1
93  features/test_clojure_with_given_jdk_version.feature
... ...
@@ -1,93 +0,0 @@
1  
-Feature: Testing a Clojure project
2  
-
3  
-  Background:
4  
-   Given the following test payload
5  
-     | repository | travis-ci/travis-ci                            |
6  
-     | commit     | 1234567                                        |
7  
-     | config     | language: clojure, jdk: openjdk6, env: FOO=foo |
8  
-
9  
-  Scenario: A successful build
10  
-    When it starts a job
11  
-    Then it exports the given environment variables
12  
-     And it successfully clones the repository to the build dir with git
13  
-     And it successfully checks out the commit with git to the repository directory
14  
-     And it exports the line TRAVIS_JDK_VERSION=openjdk6
15  
-     And it successfully switches to the jdk version: openjdk6
16  
-     And it announces active jdk version
17  
-     And it announces active leiningen version
18  
-     And it successfully installs dependencies with lein
19  
-     And it successfully runs the script: lein test
20  
-     And it closes the ssh session
21  
-     And it returns the result 0
22  
-     And it has captured the following events
23  
-       | name            | data                                      |
24  
-       | job:test:start  | started_at: [now]                         |
25  
-       | job:test:log    | log: /Using worker/                       |
26  
-       | job:test:log    | log: cd ~/builds                          |
27  
-       | job:test:log    | log: export TRAVIS_PULL_REQUEST=false     |
28  
-       | job:test:log    | log: export TRAVIS_SECURE_ENV_VARS=false  |
29  
-       | job:test:log    | log: export FOO=foo                       |
30  
-       | job:test:log    | log: git clone                            |
31  
-       | job:test:log    | log: cd travis-ci/travis-ci               |
32  
-       | job:test:log    | log: git checkout                         |
33  
-       | job:test:log    | log: /export TRAVIS_JDK_VERSION=openjdk6/ |
34  
-       | job:test:log    | log: jdk_switcher use openjdk6            |
35  
-       | job:test:log    | log: java -version                        |
36  
-       | job:test:log    | log: javac -version                       |
37  
-       | job:test:log    | log: lein version                         |
38  
-       | job:test:log    | log: lein deps                            |
39  
-       | job:test:log    | log: lein test                            |
40  
-       | job:test:log    | log: /Done.* 0/                           |
41  
-       | job:test:finish | finished_at: [now], result: 0             |
42  
-
43  
-  Scenario: The repository can not be cloned
44  
-    When it starts a job
45  
-    Then it exports the given environment variables
46  
-     And it fails to clone the repository to the build dir with git
47  
-     And it closes the ssh session
48  
-     And it returns the result 1
49  
-
50  
-  Scenario: The commit can not be checked out
51  
-    When it starts a job
52  
-    Then it exports the given environment variables
53  
-     And it successfully clones the repository to the build dir with git
54  
-     And it fails to check out the commit with git to the repository directory
55  
-     And it closes the ssh session
56  
-     And it returns the result 1
57  
-
58  
-  Scenario: The lein dependencies can not be installed
59  
-    When it starts a job
60  
-    Then it exports the given environment variables
61  
-     And it successfully clones the repository to the build dir with git
62  
-     And it successfully checks out the commit with git to the repository directory
63  
-     And it exports the line TRAVIS_JDK_VERSION=openjdk6
64  
-     And it successfully switches to the jdk version: openjdk6
65  
-     And it announces active jdk version
66  
-     And it announces active leiningen version
67  
-     And it fails to install dependencies with lein
68  
-     And it closes the ssh session
69  
-     And it returns the result 1
70  
-
71  
-  Scenario: The jdk version can not be activated
72  
-    When it starts a job
73  
-    Then it exports the given environment variables
74  
-     And it successfully clones the repository to the build dir with git
75  
-     And it successfully checks out the commit with git to the repository directory
76  
-     And it exports the line TRAVIS_JDK_VERSION=openjdk6
77  
-     And it fails to switch to the jdk version: openjdk6
78  
-     And it closes the ssh session
79  
-     And it returns the result 1
80  
-
81  
-  Scenario: A failing build
82  
-    When it starts a job
83  
-    Then it exports the given environment variables
84  
-     And it successfully clones the repository to the build dir with git
85  
-     And it successfully checks out the commit with git to the repository directory
86  
-     And it exports the line TRAVIS_JDK_VERSION=openjdk6
87  
-     And it successfully switches to the jdk version: openjdk6
88  
-     And it announces active jdk version
89  
-     And it announces active leiningen version
90  
-     And it successfully installs dependencies with lein
91  
-     And it fails to run the script: lein test
92  
-     And it closes the ssh session
93  
-     And it returns the result 1
137  features/test_erlang.feature
... ...
@@ -1,137 +0,0 @@
1  
-Feature: Testing an Erlang project
2  
-  Background:
3  
-   Given the following test payload
4  
-     | repository | travis-ci/travis-ci                                 |
5  
-     | commit     | 1234567                                             |
6  
-     | config     | language: erlang, otp_release: R15B, env: FOO=foo   |
7  
-
8  
-  Scenario: A successful build with the default OTP release
9  
-   Given the following test payload
10  
-     | repository | travis-ci/travis-ci            |
11  
-     | commit     | 1234567                        |
12  
-     | config     | language: erlang, env: FOO=foo |
13  
-    When it starts a job
14  
-    Then it exports the given environment variables
15  
-     And it successfully clones the repository to the build dir with git
16  
-     And it successfully checks out the commit with git to the repository directory
17  
-     And it successfully switches to the erlang version: R14B04
18  
-     And it does not find the file rebar.config or Rebar.config
19  
-     And it successfully runs the script: make test
20  
-     And it closes the ssh session
21  
-     And it returns the result 0
22  
-     And it has captured the following events
23  
-       | name            | data                                          |
24  
-       | job:test:start  | started_at: [now]                             |
25  
-       | job:test:log    | log: /Using worker/                           |
26  
-       | job:test:log    | log: cd ~/builds                              |
27  
-       | job:test:log    | log: export TRAVIS_PULL_REQUEST=false         |
28  
-       | job:test:log    | log: export TRAVIS_SECURE_ENV_VARS=false      |
29  
-       | job:test:log    | log: export FOO=foo                           |
30  
-       | job:test:log    | log: git clone                                |
31  
-       | job:test:log    | log: cd travis-ci/travis-ci                   |
32  
-       | job:test:log    | log: git checkout                             |
33  
-       | job:test:log    | log: source /home/vagrant/otp/R14B04/activate |
34  
-       | job:test:log    | log: make test                                |
35  
-       | job:test:log    | log: /Done.* 0/                               |
36  
-       | job:test:finish | finished_at: [now], result: 0                 |
37  
-
38  
-  Scenario: A successful build with given OTP release
39  
-    When it starts a job
40  
-    Then it exports the given environment variables
41  
-     And it successfully clones the repository to the build dir with git
42  
-     And it successfully checks out the commit with git to the repository directory
43  
-     And it successfully switches to the erlang version: R15B
44  
-     And it does not find the file rebar.config or Rebar.config
45  
-     And it successfully runs the script: make test
46  
-     And it closes the ssh session
47  
-     And it returns the result 0
48  
-     And it has captured the following events
49  
-       | name            | data                                          |
50  
-       | job:test:start  | started_at: [now]                             |
51  
-       | job:test:log    | log: /Using worker/                           |
52  
-       | job:test:log    | log: cd ~/builds                              |
53  
-       | job:test:log    | log: export TRAVIS_PULL_REQUEST=false         |
54  
-       | job:test:log    | log: export TRAVIS_SECURE_ENV_VARS=false      |
55  
-       | job:test:log    | log: export FOO=foo                           |
56  
-       | job:test:log    | log: git clone                                |
57  
-       | job:test:log    | log: cd travis-ci/travis-ci                   |
58  
-       | job:test:log    | log: git checkout                             |
59  
-       | job:test:log    | log: source /home/vagrant/otp/R15B/activate   |
60  
-       | job:test:log    | log: make test                                |
61  
-       | job:test:log    | log: /Done.* 0/                               |
62  
-       | job:test:finish | finished_at: [now], result: 0                 |
63  
-
64  
-  Scenario: A successful build with system-wide rebar
65  
-    When it starts a job
66  
-    Then it exports the given environment variables
67  
-     And it successfully clones the repository to the build dir with git
68  
-     And it successfully checks out the commit with git to the repository directory
69  
-     And it successfully switches to the erlang version: R15B
70  
-     And there is no local rebar in the repository
71  
-     And it finds a file rebar.config and successfully installs dependencies with rebar
72  
-     And it successfully runs the script: rebar compile && rebar skip_deps=true eunit
73  
-     And it closes the ssh session
74  
-     And it returns the result 0
75  
-     And it has captured the following events
76  
-       | name            | data                                    |
77  
-       | job:test:start  | started_at: [now]                       |
78  
-       | job:test:log    | log: /Using worker/                     |
79  
-       | job:test:log    | log: cd ~/builds                        |
80  
-       | job:test:log    | log: export TRAVIS_PULL_REQUEST=false   |
81  
-       | job:test:log    | log: export TRAVIS_SECURE_ENV_VARS=false|
82  
-       | job:test:log    | log: export FOO=foo                     |
83  
-       | job:test:log    | log: git clone                          |
84  
-       | job:test:log    | log: cd travis-ci/travis-ci             |
85  
-       | job:test:log    | log: git checkout                       |
86  
-       | job:test:log    | log: /activate/                         |
87  
-       | job:test:log    | log: rebar get-deps                     |
88  
-       | job:test:log    | log: /eunit/                            |
89  
-       | job:test:log    | log: /Done.* 0/                         |
90  
-       | job:test:finish | finished_at: [now], result: 0           |
91  
-
92  
-  Scenario: The repository can not be cloned
93  
-    When it starts a job
94  
-    Then it exports the given environment variables
95  
-     And it fails to clone the repository to the build dir with git
96  
-     And it closes the ssh session
97  
-     And it returns the result 1
98  
-
99  
-  Scenario: The commit can not be checked out
100  
-    When it starts a job
101  
-    Then it exports the given environment variables
102  
-     And it successfully clones the repository to the build dir with git
103  
-     And it fails to check out the commit with git to the repository directory
104  
-     And it closes the ssh session
105  
-     And it returns the result 1
106  
-
107  
-  Scenario: The erlang version can not be activated
108  
-    When it starts a job
109  
-    Then it exports the given environment variables
110  
-     And it successfully clones the repository to the build dir with git
111  
-     And it successfully checks out the commit with git to the repository directory
112  
-     And it fails to switch to the erlang version: R15B
113  
-     And it closes the ssh session
114  
-     And it returns the result 1
115  
-
116  
-  Scenario: dependencies cannot be installed
117  
-    When it starts a job
118  
-    Then it exports the given environment variables
119  
-     And it successfully clones the repository to the build dir with git
120  
-     And it successfully checks out the commit with git to the repository directory
121  
-     And it successfully switches to the erlang version: R15B
122  
-     And there is no local rebar in the repository
123  
-     And it finds a file rebar.config but fails to install dependencies with rebar
124  
-     And it closes the ssh session
125  
-     And it returns the result 1
126  
-
127  
-  Scenario: A failing build
128  
-    When it starts a job
129  
-    Then it exports the given environment variables
130  
-     And it successfully clones the repository to the build dir with git
131  
-     And it successfully checks out the commit with git to the repository directory
132  
-     And it successfully switches to the erlang version: R15B
133  
-     And it does not find the file rebar.config or Rebar.config
134  
-     And it fails to run the script: make test
135  
-     And it closes the ssh session
136  
-     And it returns the result 1
137  
-
135  features/test_groovy.feature
... ...
@@ -1,135 +0,0 @@
1  
-Feature: Testing a Groovy project
2  
-
3  
-  Background:
4  
-   Given the following test payload
5  
-     | repository | travis-ci/travis-ci                           |
6  
-     | commit     | 1234567                                       |
7  
-     | config     | language: groovy, jdk: openjdk6, env: FOO=foo |
8  
-
9  
-  Scenario: A successful build with Gradle
10  
-    When it starts a job
11  
-    Then it exports the given environment variables
12  
-     And it successfully clones the repository to the build dir with git
13  
-     And it successfully checks out the commit with git to the repository directory
14  
-     And it exports the line TRAVIS_JDK_VERSION=openjdk6
15  
-     And it successfully switches to the jdk version: openjdk6
16  
-     And it announces active jdk version
17  
-     And it finds the file build.gradle
18  
-     And it successfully installs dependencies with gradle
19  
-     And it successfully runs the script: gradle check
20  
-     And it closes the ssh session
21  
-     And it returns the result 0
22  
-     And it has captured the following events
23  
-       | name            | data                                       |
24  
-       | job:test:start  | started_at: [now]                          |
25  
-       | job:test:log    | log: /Using worker/                        |
26  
-       | job:test:log    | log: cd ~/builds                           |
27  
-       | job:test:log    | log: export TRAVIS_PULL_REQUEST=false      |
28  
-       | job:test:log    | log: export TRAVIS_SECURE_ENV_VARS=false   |
29  
-       | job:test:log    | log: export FOO=foo                        |
30  
-       | job:test:log    | log: git clone                             |
31  
-       | job:test:log    | log: cd travis-ci/travis-ci                |
32  
-       | job:test:log    | log: git checkout                          |
33  
-       | job:test:log    | log: /export TRAVIS_JDK_VERSION=openjdk6/  |
34  
-       | job:test:log    | log: jdk_switcher use openjdk6             |
35  
-       | job:test:log    | log: java -version                         |
36  
-       | job:test:log    | log: javac -version                        |
37  
-       | job:test:log    | log: gradle assemble                       |
38  
-       | job:test:log    | log: gradle check                          |
39  
-       | job:test:log    | log: /Done.* 0/                            |
40  
-       | job:test:finish | finished_at: [now], result: 0              |
41  
-
42  
-  Scenario: A successful build with Maven
43  
-    When it starts a job
44  
-    Then it exports the given environment variables
45  
-     And it successfully clones the repository to the build dir with git
46  
-     And it successfully checks out the commit with git to the repository directory
47  
-     And it exports the line TRAVIS_JDK_VERSION=openjdk6
48  
-     And it successfully switches to the jdk version: openjdk6
49  
-     And it announces active jdk version
50  
-     And it does not find the file build.gradle
51  
-     And it finds the file pom.xml
52  
-     And it successfully installs dependencies with maven
53  
-     And it successfully runs the script: mvn test
54  
-     And it closes the ssh session
55  
-     And it returns the result 0
56  
-     And it has captured the following events
57  
-       | name            | data                                       |
58  
-       | job:test:start  | started_at: [now]                          |
59  
-       | job:test:log    | log: /Using worker/                        |
60  
-       | job:test:log    | log: cd ~/builds                           |
61  
-       | job:test:log    | log: export TRAVIS_PULL_REQUEST=false      |
62  
-       | job:test:log    | log: export TRAVIS_SECURE_ENV_VARS=false   |
63  
-       | job:test:log    | log: export FOO=foo                        |
64  
-       | job:test:log    | log: git clone                             |
65  
-       | job:test:log    | log: cd travis-ci/travis-ci                |
66  
-       | job:test:log    | log: git checkout                          |
67  
-       | job:test:log    | log: /export TRAVIS_JDK_VERSION=openjdk6/  |
68  
-       | job:test:log    | log: jdk_switcher use openjdk6             |
69  
-       | job:test:log    | log: java -version                         |
70  
-       | job:test:log    | log: javac -version                        |
71  
-       | job:test:log    | log: mvn install --quiet -DskipTests=true  |
72  
-       | job:test:log    | log: mvn test                              |
73  
-       | job:test:log    | log: /Done.* 0/                            |
74  
-       | job:test:finish | finished_at: [now], result: 0              |
75  
-
76  
-  Scenario: A successful build with Ant fallback
77  
-    When it starts a job
78  
-    Then it exports the given environment variables
79  
-     And it successfully clones the repository to the build dir with git
80  
-     And it successfully checks out the commit with git to the repository directory
81  
-     And it exports the line TRAVIS_JDK_VERSION=openjdk6
82  
-     And it successfully switches to the jdk version: openjdk6
83  
-     And it announces active jdk version
84  
-     And it does not find the file build.gradle
85  
-     And it does not find the file pom.xml
86  
-     And it successfully runs the script: ant test
87  
-     And it closes the ssh session
88  
-     And it returns the result 0
89  
-     And it has captured the following events
90  
-       | name            | data                                       |
91  
-       | job:test:start  | started_at: [now]                          |
92  
-       | job:test:log    | log: /Using worker/                        |
93  
-       | job:test:log    | log: cd ~/builds                           |
94  
-       | job:test:log    | log: export TRAVIS_PULL_REQUEST=false      |
95  
-       | job:test:log    | log: export TRAVIS_SECURE_ENV_VARS=false   |
96  
-       | job:test:log    | log: export FOO=foo                        |
97  
-       | job:test:log    | log: git clone                             |
98  
-       | job:test:log    | log: cd travis-ci/travis-ci                |
99  
-       | job:test:log    | log: git checkout                          |
100  
-       | job:test:log    | log: /export TRAVIS_JDK_VERSION=openjdk6/  |
101  
-       | job:test:log    | log: jdk_switcher use openjdk6             |
102  
-       | job:test:log    | log: java -version                         |
103  
-       | job:test:log    | log: javac -version                        |
104  
-       | job:test:log    | log: ant test                              |
105  
-       | job:test:log    | log: /Done.* 0/                            |
106  
-       | job:test:finish | finished_at: [now], result: 0              |
107  
-
108  
-  Scenario: The repository can not be cloned
109  
-    When it starts a job
110  
-    Then it exports the given environment variables
111  
-     And it fails to clone the repository to the build dir with git
112  
-     And it closes the ssh session
113  
-     And it returns the result 1
114  
-
115  
-  Scenario: The commit can not be checked out
116  
-    When it starts a job
117  
-    Then it exports the given environment variables
118  
-     And it successfully clones the repository to the build dir with git
119  
-     And it fails to check out the commit with git to the repository directory
120  
-     And it closes the ssh session
121  
-     And it returns the result 1
122  
-
123  
-  Scenario: A failing build that uses Gradle
124  
-    When it starts a job
125  
-    Then it exports the given environment variables
126  
-     And it successfully clones the repository to the build dir with git
127  
-     And it successfully checks out the commit with git to the repository directory
128  
-     And it exports the line TRAVIS_JDK_VERSION=openjdk6
129  
-     And it successfully switches to the jdk version: openjdk6
130  
-     And it announces active jdk version
131  
-     And it finds the file build.gradle
132  
-     And it successfully installs dependencies with gradle
133  
-     And it fails to run the script: gradle check
134  
-     And it closes the ssh session
135  
-     And it returns the result 1
146  features/test_java.feature
... ...
@@ -1,146 +0,0 @@
1  
-Feature: Testing a Java project
2  
-
3  
-  Background:
4  
-   Given the following test payload
5  
-     | repository | travis-ci/travis-ci                         |
6  
-     | commit     | 1234567                                     |
7  
-     | config     | language: java, jdk: openjdk6, env: FOO=foo |
8  
-
9  
-  Scenario: A successful build with Maven
10  
-    When it starts a job
11  
-    Then it exports the given environment variables
12  
-     And it successfully clones the repository to the build dir with git
13  
-     And it successfully checks out the commit with git to the repository directory
14  
-     And it exports the line TRAVIS_JDK_VERSION=openjdk6
15  
-     And it successfully switches to the jdk version: openjdk6
16  
-     And it announces active jdk version
17  
-     And it does not find the file build.gradle
18  
-     And it finds the file pom.xml
19  
-     And it successfully installs dependencies with maven
20  
-     And it successfully runs the script: mvn test
21  
-     And it closes the ssh session
22  
-     And it returns the result 0
23  
-     And it has captured the following events
24  
-       | name            | data                                       |
25  
-       | job:test:start  | started_at: [now]                          |
26  
-       | job:test:log    | log: /Using worker/                        |
27  
-       | job:test:log    | log: cd ~/builds                           |
28  
-       | job:test:log    | log: export TRAVIS_PULL_REQUEST=false      |
29  
-       | job:test:log    | log: export TRAVIS_SECURE_ENV_VARS=false   |
30  
-       | job:test:log    | log: export FOO=foo                        |
31  
-       | job:test:log    | log: git clone                             |
32  
-       | job:test:log    | log: cd travis-ci/travis-ci                |
33  
-       | job:test:log    | log: git checkout                          |
34  
-       | job:test:log    | log: /export TRAVIS_JDK_VERSION=openjdk6/  |
35  
-       | job:test:log    | log: jdk_switcher use openjdk6             |
36  
-       | job:test:log    | log: java -version                         |
37  
-       | job:test:log    | log: javac -version                        |
38  
-       | job:test:log    | log: mvn install --quiet -DskipTests=true  |
39  
-       | job:test:log    | log: mvn test                              |
40  
-       | job:test:log    | log: /Done.* 0/                            |
41  
-       | job:test:finish | finished_at: [now], result: 0              |
42  
-
43  
-  Scenario: A successful build with Gradle
44  
-    When it starts a job
45  
-    Then it exports the given environment variables
46  
-     And it successfully clones the repository to the build dir with git
47  
-     And it successfully checks out the commit with git to the repository directory
48  
-     And it exports the line TRAVIS_JDK_VERSION=openjdk6
49  
-     And it successfully switches to the jdk version: openjdk6
50  
-     And it announces active jdk version
51  
-     And it finds the file build.gradle
52  
-     And it successfully installs dependencies with gradle
53  
-     And it successfully runs the script: gradle check
54  
-     And it closes the ssh session
55  
-     And it returns the result 0
56  
-     And it has captured the following events
57  
-       | name            | data                                       |
58  
-       | job:test:start  | started_at: [now]                          |
59  
-       | job:test:log    | log: /Using worker/                        |
60  
-       | job:test:log    | log: cd ~/builds                           |
61  
-       | job:test:log    | log: export TRAVIS_PULL_REQUEST=false      |
62  
-       | job:test:log    | log: export TRAVIS_SECURE_ENV_VARS=false   |
63  
-       | job:test:log    | log: export FOO=foo                        |
64  
-       | job:test:log    | log: git clone                             |
65  
-       | job:test:log    | log: cd travis-ci/travis-ci                |
66  
-       | job:test:log    | log: git checkout                          |
67  
-       | job:test:log    | log: /export TRAVIS_JDK_VERSION=openjdk6/  |
68  
-       | job:test:log    | log: jdk_switcher use openjdk6             |
69  
-       | job:test:log    | log: java -version                         |
70  
-       | job:test:log    | log: javac -version                        |
71  
-       | job:test:log    | log: gradle assemble                       |
72  
-       | job:test:log    | log: gradle check                          |
73  
-       | job:test:log    | log: /Done.* 0/                            |
74  
-       | job:test:finish | finished_at: [now], result: 0              |
75  
-
76  
-  Scenario: A successful build with Ant fallback
77  
-    When it starts a job
78  
-    Then it exports the given environment variables
79  
-     And it successfully clones the repository to the build dir with git
80  
-     And it successfully checks out the commit with git to the repository directory
81  
-     And it exports the line TRAVIS_JDK_VERSION=openjdk6
82  
-     And it successfully switches to the jdk version: openjdk6
83  
-     And it announces active jdk version
84  
-     And it does not find the file build.gradle
85  
-     And it does not find the file pom.xml
86  
-     And it successfully runs the script: ant test
87  
-     And it closes the ssh session
88  
-     And it returns the result 0
89  
-     And it has captured the following events
90  
-       | name            | data                                       |
91  
-       | job:test:start  | started_at: [now]                          |
92  
-       | job:test:log    | log: /Using worker/                        |
93  
-       | job:test:log    | log: cd ~/builds                           |
94  
-       | job:test:log    | log: export TRAVIS_PULL_REQUEST=false      |
95  
-       | job:test:log    | log: export TRAVIS_SECURE_ENV_VARS=false   |
96  
-       | job:test:log    | log: export FOO=foo                        |
97  
-       | job:test:log    | log: git clone                             |
98  
-       | job:test:log    | log: cd travis-ci/travis-ci                |
99  
-       | job:test:log    | log: git checkout                          |
100  
-       | job:test:log    | log: /export TRAVIS_JDK_VERSION=openjdk6/  |
101  
-       | job:test:log    | log: jdk_switcher use openjdk6             |
102  
-       | job:test:log    | log: java -version                         |
103  
-       | job:test:log    | log: javac -version                        |
104  
-       | job:test:log    | log: ant test                              |
105  
-       | job:test:log    | log: /Done.* 0/                            |
106  
-       | job:test:finish | finished_at: [now], result: 0              |
107  
-
108  
-  Scenario: The repository can not be cloned
109  
-    When it starts a job
110  
-    Then it exports the given environment variables
111  
-     And it fails to clone the repository to the build dir with git
112  
-     And it closes the ssh session
113  
-     And it returns the result 1
114  
-
115  
-  Scenario: The commit can not be checked out
116  
-    When it starts a job
117  
-    Then it exports the given environment variables
118  
-     And it successfully clones the repository to the build dir with git
119  
-     And it fails to check out the commit with git to the repository directory
120  
-     And it closes the ssh session
121  
-     And it returns the result 1
122  
-
123  
-  Scenario: The jdk version can not be activated
124  
-    When it starts a job
125  
-    Then it exports the given environment variables
126  
-     And it successfully clones the repository to the build dir with git
127  
-     And it successfully checks out the commit with git to the repository directory
128  
-     And it exports the line TRAVIS_JDK_VERSION=openjdk6
129  
-     And it fails to switch to the jdk version: openjdk6
130  
-     And it closes the ssh session
131  
-     And it returns the result 1
132  
-
133  
-  Scenario: A failing build
134  
-    When it starts a job
135  
-    Then it exports the given environment variables
136  
-     And it successfully clones the repository to the build dir with git
137  
-     And it successfully checks out the commit with git to the repository directory
138  
-     And it exports the line TRAVIS_JDK_VERSION=openjdk6
139  
-     And it successfully switches to the jdk version: openjdk6
140  
-     And it announces active jdk version
141  
-     And it does not find the file build.gradle
142  
-     And it finds the file pom.xml
143  
-     And it successfully installs dependencies with maven
144  
-     And it fails to run the script: mvn test
145  
-     And it closes the ssh session
146  
-     And it returns the result 1
158  features/test_nodejs.feature
... ...
@@ -1,158 +0,0 @@
1  
-Feature: Testing a Node.js project
2  
-
3