50 Commits

Author SHA1 Message Date
Olle Jonsson
7ddccdbd1e chore: RuboCop lint Layout/SpaceInsideBlockBraces 2019-02-27 08:41:05 +01:00
Olle Jonsson
8cb5865a78 chore: RuboCop lint Layout/SpaceAroundOperators 2019-02-27 08:37:07 +01:00
Mattia
aa4e33ff50 chore: Fix RuboCop Style/HashSyntax (#878)
* Fixes rubocop Style/HashSyntax issues.

* Fixes rubocop Style/HashSyntax issues in comments as well.
2019-02-26 12:10:35 +01:00
Olle Jonsson
00765145a3 chore: RuboCop Style/StringLiteral 2019-02-25 23:11:57 +01:00
rick olson
fc53cc5d2d fix Lint/AssignmentInCondition 2019-02-25 12:59:59 -07:00
Mattia
b427091f0e chore: RuboCop: Support Frozen String Literals (#868) 2019-02-24 20:35:12 +01:00
Mattia
ec709b3974 chore: RuboCop lint Layout/AlignHash (#863) 2019-02-24 11:52:48 +01:00
Olle Jonsson
b2857e6e20
chore: RuboCop linting (#860)
* chore: RuboCop lint Layout/LeadingCommentSpace

* chore: RuboCop lint Layout/EmptyLineAfterGuardClause

* chore: RuboCop lint Layout/EmptyLineBetweenDefs

* chore: RuboCop lint Layout/EmptyLines

* chore: Regenerate RuboCop TODO
2019-02-20 22:44:57 +01:00
Olle Jonsson
e63ef9b830 Remove Typhoeus adapter (#715) 2017-11-02 09:57:49 +00:00
Leon Miller-Out
a712938071 Fix Ruby 1.9.3 tests on Travis. Drop support for Ruby 1.8.7. (#600)
* Drop support for Ruby 1.9.2, which no-one should be using any more.

* Constraint gem versions for Ruby 1.9.3

* Drop support for Ruby 1.8.7. Many dependencies have dropped support for it.

* Remove conditionals checking for Ruby 1.8.7

* Document Ruby version dependency
2016-08-26 21:45:28 +01:00
Mislav Marohnić
80c0e66102 Add script/bootstrap for eventmachine + OpenSSL issues on OS X 2015-12-23 16:56:39 +01:00
Mislav Marohnić
b681452bbf Fix running test suite for Ruby 1.8
Fixes #553
2015-12-23 16:52:20 +01:00
Mislav Marohnić
915d7fae2f Forward script/console arguments to irb
[ci skip]
2015-10-03 01:21:51 +02:00
Mislav Marohnić
94c2dae1e7 Merge branch 'cleanup-rakefile'
Closes #519
2015-10-02 17:51:56 +02:00
Mislav Marohnić
658862c355 Simplify release script 2015-10-02 17:51:20 +02:00
Michael Grosser
95c574b0dd Remove unnecessary scripts 2015-10-02 17:51:20 +02:00
Mislav Marohnić
bc453746c1 Output proxy log as well after CI failure 2015-10-02 01:03:46 +02:00
Mislav Marohnić
761930f3ae Opt in to new Travis container-based architecture 2015-02-03 22:24:09 -08:00
Mislav Marohnić
62a5781b92 Only try to cache dependencies when Amazon secret is available
Fixes the case when someone forks the repo and runs Travis on their own.
Also, allows the use-case of restoring dependencies only without
necessarily trying to cache them.
2014-02-12 00:51:23 +01:00
Mislav Marohnić
03d92dd203 Cache Bundler dependencies on Travis CI
- Even after the cache is restored, `bundle install` still needs to hit
  RubyGems.org because there is no Gemfile.lock. There doesn't seem to
  be a way to tell it that everything it needs is right there in the
  `./bundle` directory.

- Can't use `--standalone` due to bundler/bundler#2851

- It's not necessary to manually update RubyGems and Bundler anymore.
2014-02-11 12:12:29 +01:00
Mislav Marohnić
a8afbdb306 improve start/shutdown of test servers
- give more time for test server to start
 - shutdown both test and proxy server on failure
2013-08-11 14:03:23 +02:00
Mislav Marohnić
d0b01a9b31 teach proxy server to challenge unauthenticated requests
HTTPClient needs this challenge to retry with Basic authentication,
otherwise it won't attempt authentication at all.
2013-07-27 00:29:45 +02:00
Mislav Marohnić
0a1deaf173 add integration tests for HTTP proxy support
Spins up a proxy server in a separate process, runs a few requests
through it with each adapter to verify that both proxy support and basic
authentication take effect.
2013-07-27 00:29:44 +02:00
Mislav Marohnić
eed09439f7 have script/server log to stdout when called directly 2013-07-27 00:29:44 +02:00
Mislav Marohnić
872b45a781 configure script/test to not tolerate Ruby warnings
This makes CI fail if code is added to the project that generates
warnings in Ruby's verbose mode.
2013-06-25 05:55:26 +02:00
Mislav Marohnić
150b5e6c7d output the test server log if it fails to boot up 2013-04-04 03:32:26 +02:00
Mislav Marohnić
c2adfbf918 rewrite test script in bash
The HTTP server is now started in a subprocess, not a thread. Running it
in a Ruby thread had all sorts of problems on different Rubies, such as
random failures on Rubinius.

The new script also avoids starting the HTTP server if not needed, e.g.
if filtering arguments have been used to select only the non-adapter tests.

The script dumps the server log to stdout if any tests failed on Travis.

Avoids auto-starting the debugger because it blocks for input in Rubinius
https://travis-ci.org/lostisland/faraday/jobs/5956815
2013-04-04 01:33:36 +02:00
Colin Jones
4f37e8c0ef Add test to prove rejection of invalid peer 2013-01-16 15:25:42 -06:00
technoweenie
d5afe2b4c0 releasing pushes to legacy remote 2013-01-05 14:37:03 -07:00
Mislav Marohnić
86c43e5b83 improve scripts: done in shell, simpler, no gemspec gen 2012-12-28 15:55:24 +01:00
Mislav Marohnić
26e9869f0b fix test runner after move to minitest
`testrb` utility is gone from minitest. `autorun` is needed if you want
the test to actually run
2012-12-28 15:53:27 +01:00
technoweenie
da5ae304a6 rename script/gem to script/package 2012-12-28 01:44:24 -07:00
technoweenie
7849079be4 use system, not `
/cc @eric
2012-12-28 01:44:19 -07:00
technoweenie
9bcad6fb20 document the scripts 2012-12-28 01:44:13 -07:00
technoweenie
306ed766dc add script/generate_certs 2012-12-28 01:44:09 -07:00
technoweenie
6faf149398 add script/release 2012-12-28 01:44:03 -07:00
technoweenie
6403d7ba4d add script/gem 2012-12-28 01:43:50 -07:00
technoweenie
d704d6f287 add script/gemspec 2012-12-28 01:43:45 -07:00
technoweenie
5f1d2bf19e add script/console 2012-12-28 01:43:39 -07:00
Mislav Marohnić
b0d9a14459 fix OpenSSL JRuby loading bug on Travis
The error was:

    NameError: uninitialized constant OpenSSL::OPENSSL_VERSION

It seems to choke when "openssl" is required in a thread.
Not always, though.
2012-08-16 18:21:20 +02:00
Mislav Marohnić
9b3923f62c move WEBrick SSL config to script/test 2012-08-16 18:21:00 +02:00
Mislav Marohnić
43f8079f24 script/test: try avoid rbx glitch
rbx in 1.9 mode on Travis:

    wrong status line: "GET /echo HTTP/1.1"

http://travis-ci.org/#!/technoweenie/faraday/jobs/2141589
2012-08-16 18:20:23 +02:00
Mislav Marohnić
924cf57e7c script/test: avoid using Timeout while waiting for server 2012-08-16 18:20:20 +02:00
Mislav Marohnić
62958fa955 fix script/test exit status 2012-08-16 18:19:42 +02:00
Lars Gierth
a6d90f3506 Don't buffer test logs 2012-08-15 19:36:44 +02:00
Lars Gierth
e15b51b3bb Fix test shebang
/usr/bin/env "officially" treats options as part of the filename.
More info in http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/237208
2012-08-13 01:53:25 +02:00
Mislav Marohnić
76dec1e506 script/test: support extra args for test/unit after "--"
Example

    $ script/test net_http -- -n /timeout/
2012-08-12 15:59:46 +02:00
Mislav Marohnić
0ae3789bf4 script/test: nicer message when bundle is out of date 2012-08-12 15:59:46 +02:00
Mislav Marohnić
d407323ec1 increase script/test timeout to hopefully fix rbx
References http://travis-ci.org/#!/technoweenie/faraday/jobs/2100372
2012-08-12 15:59:46 +02:00
Mislav Marohnić
e6787c144b script/test spins up test server, runs test suite 2012-06-19 11:15:11 +02:00