Commit Graph

210 Commits

Author SHA1 Message Date
yuuji.yaginuma
b2eb1d1c55 Revert "Avoid Node.js v10.4.0 for now"
This reverts commit 691addbffad10aa249d5fb1b0e47b46a086e5332.

Reason: v10.5.0 has been released, and it seems that the issue is fixed.
Ref: https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V10.md#10.5.0
2018-06-25 10:18:52 +09:00
yuuji.yaginuma
691addbffa Avoid Node.js v10.4.0 for now
If use Node.js v10.4.0, ujs's build will result in an error, so
temporarily fix the version to v10.3.0.

Ref: https://travis-ci.org/rails/rails/jobs/389960856
2018-06-09 14:23:34 +09:00
Yasuo Honda
4d65293622 CI against MariaDB 10.3
- MariaDB 10.3.7 is the first GA release
https://mariadb.com/kb/en/library/mariadb-1037-release-notes/

- MariaDB 10.3 translates `LENGTH()` to `OCTET_LENGTH()` function

https://mariadb.com/kb/en/library/sql_modeoracle-from-mariadb-103/
> MariaDB translates LENGTH() to OCTET_LENGTH()

- MySQL does NOT translate `LENGTH()` to `OCTET_LENGTH()`
However, it translates `OCTET_LENGTH()` to `LENGTH()`

Here are generated schema dumps of this test to show the differences
between MySQL and MariaDB:

* MySQL 8.0 (Server version: 8.0.11 MySQL Community Server - GPL)
```ruby
  create_table \"virtual_columns\", options: \"ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci\", force: :cascade do |t|
    t.string \"name\"
    t.virtual \"upper_name\", type: :string, as: \"upper(`name`)\"
    t.virtual \"name_length\", type: :integer, as: \"length(`name`)\", stored: true
    t.virtual \"name_octet_length\", type: :integer, as: \"length(`name`)\", stored: true
  end
```

* Maria DB 10.3 (Server version: 10.3.7-MariaDB-1:10.3.7+maria~bionic-log mariadb.org binary distribution)

```ruby
  create_table \"virtual_columns\", options: \"ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci\", force: :cascade do |t|
    t.string \"name\"
    t.virtual \"upper_name\", type: :string, as: \"ucase(`name`)\"
    t.virtual \"name_length\", type: :integer, as: \"octet_length(`name`)\", stored: true
    t.virtual \"name_octet_length\", type: :integer, as: \"octet_length(`name`)\", stored: true
  end
```
2018-06-01 03:47:17 +00:00
Andrew White
c2c9839a3d
Bump tested versions of Ruby on CI 2018-03-31 12:25:09 +01:00
George Claghorn
3c9edcffb6 Restore full Travis config 2018-03-12 23:18:17 -04:00
George Claghorn
fcbe17137d Fix Azure signed URL generation with newer client lib 2018-03-12 23:14:20 -04:00
George Claghorn
0443cb130c Update ASt test services config 2018-03-12 19:00:54 -04:00
Terence Lee
0b717c2045 Provide an alternative PDF previewer based on Poppler
mutool is licensed under the Affero GPL, which has strict distribution requirements.

Poppler is licensed under the more liberal GPL, making it a good alternative for those who can't use mutool.
2018-03-06 13:33:33 -05:00
Yasuo Honda
00d29e18a3 CI with jruby-head compatible with Ruby 2.4.1
Since #32034 Rails 6 requires Ruby 2.4.1 or higher.
Two CI jobs configured with the latest version of`jruby-9.1.15.0`
compatibile with Ruby 2.3.3 are getting errors:

https://travis-ci.org/rails/rails/jobs/343519339

```
Bundler could not find compatible versions for gem "ruby":
  In Gemfile:
    ruby java
    rails java was resolved to 6.0.0.alpha, which depends on
      ruby (>= 2.4.1) java
Could not find gem 'ruby (>= 2.4.1)', which is required by gem 'rails', in any
of the relevant sources:
```
2018-02-21 07:14:12 +00:00
Jeremy Daer
6b3acf1518
Travis: fix that major.minor version doesn't track latest major.minor.tiny
So `2.4` would match `2.4.1` (due to an rvm alias) rather than matching
the latest `2.4.3` release.
2018-02-18 00:19:36 -08:00
Jeremy Daer
d4eb0dc89e Rails 6 requires Ruby 2.4.1+
Skipping over 2.4.0 to sidestep the `"symbol_from_string".to_sym.dup` bug.

References #32028
2018-02-17 15:34:57 -08:00
Jeremy Daer
1e526788e6 Rails 6 requires Ruby 2.3+ 2018-02-17 10:03:37 -08:00
Rafael Mendonça França
0ea8e7db1a Remove support to Ruby 2.2
Rails 6 will only support Ruby >= 2.3.
2018-02-16 18:52:10 -05:00
yuuji.yaginuma
dff749eb5d Avoid bundle clean before caching
I'm not sure cause, but due to the influence of `gem clean`, the expected
gem seems not to be installed correctly.
In order to avoid a test failure due to this, I fixed that `gem clean` not be executed.
Ref: https://github.com/travis-ci/travis-ci/issues/2518#issuecomment-121168856

This is a workaround. If Travis fixes something, please revert this.
2018-02-02 09:16:51 +09:00
Josef Šimánek
0f6b7b5156
Update to latest rubies (2.2.9, 2.3.8 and 2.4.3) on Travis CI. 2018-02-01 11:03:59 +01:00
yuuji.yaginuma
7aa10a17d4 CI against ruby 2.5.0 2017-12-27 10:42:46 +09:00
SHIBATA Hiroshi
6fd0a658ee
To use rubygems-2.7.4 on Travis CI 2017-12-25 19:12:20 +09:00
SHIBATA Hiroshi
31ff6166af
Relax bundler version on Travis CI 2017-12-22 22:21:57 +09:00
SHIBATA Hiroshi
b2d2a1da62
Temporary disabled using rubygems 2.7.
RubyGems 2.7 promote bundler-1.16 to default gems.
  It conflicts Travis environment and user installed bundler.
2017-12-22 18:30:03 +09:00
Yasuo Honda
9111fc9f30 Revert "only install ffmpeg and mupdf on activestorage builds"
This reverts commit 6ec0ed67d9afcc666ad0424b10e9903f63e60714.
2017-12-12 15:31:15 +00:00
bogdanvlviv
b47eeadb36
CI against JRuby 9.1.15.0
JRuby 9.1.15.0 has been released:
http://jruby.org/2017/12/07/jruby-9-1-15-0.html
2017-12-08 23:27:18 +02:00
Joe Francis
6ec0ed67d9 only install ffmpeg and mupdf on activestorage builds
These are needed when GEM=ast, thanks @georgeclaghorn
2017-12-05 13:25:28 -06:00
Koichi ITO
d0c3062939 CI against JRuby 9.1.14.0
JRuby 9.1.14.0 has been released and this version is available on Travis CI.
http://jruby.org/2017/11/08/jruby-9-1-14-0
2017-11-15 01:10:26 +09:00
yuuji.yaginuma
8e964556e7 Make sidekiq and resque integration tests work in CI
Since 8f2490b, the integration test of sidekiq and resque is not working
in CI.
https://travis-ci.org/rails/rails/jobs/301276197#L2055
https://travis-ci.org/rails/rails/jobs/301276197#L2061

Because 8f2490b removed password from `redis-server`.
So must also remove passwords from these tests.
2017-11-13 21:02:40 +09:00
Jeremy Daer
8f2490b57f Action Cable: run Redis tests against a default config without a password
Simplify our dev testing and CI story since we're also testing against
Redis for the Active Support cache store.

Directly test whether db, host, password, etc are passed through as
config instead of spinning up a Redis server with a password set on it.
2017-11-13 01:34:59 -07:00
Ryuta Kamizono
288fbc7ff4 Revert "Merge pull request #31025 from y-yagi/follow_up_31023_part2"
This reverts commit 6f481e05bb24fe3589ef0f65e97a9b1fa66ae0f7, reversing
changes made to 592f790b7693c0a32cd06d5e8201639923a734c5.

In favor of #31039.
2017-11-03 23:42:16 +09:00
Yasuo Honda
1944520627 Ignore "gem "bundler" cannot be uninstalled because it is a default gem" error
when tested with ruby-head

This pull request attempts to ignore the following error
when tested with ruby-head which has bundler as a default gem.

```ruby
$ rvm @global do gem uninstall bundler --all --ignore-dependencies --executables
ERROR:  While executing gem ... (Gem::InstallError)

    gem "bundler" cannot be uninstalled because it is a default gem

The command "rvm @global do gem uninstall bundler --all --ignore-dependencies --executables" failed and exited with 1 during .
```

Refer https://travis-ci.org/rails/rails/jobs/295600391

This workaround should be removed once https://github.com/bundler/bundler/issues/6072 is addressed.
2017-11-01 19:43:37 +00:00
yuuji.yaginuma
6a55fbc858 Remove bundler 1.16.0
Since 1.16.0 is installed by default, it seems that the newer one will be used
even if specify an older version.
Ref: https://travis-ci.org/rails/rails/jobs/295553738#L1718

Follow up of #31023
2017-11-01 10:55:31 +09:00
yuuji.yaginuma
d407e0821a Avoid bundler 1.16.0 for now
It's causing bug report template tests to fail. https://travis-ci.org/rails/rails/jobs/295520851
This seems an issue of bundler. Ref: https://github.com/bundler/bundler/issues/6072
2017-11-01 09:30:20 +09:00
Guillermo Iguaran
4dcf12a340 PhantomJS is abandoned, replace it with Selenium/Chrome headless 2017-10-19 11:01:52 -05:00
George Claghorn
d30586211b Preview PDFs and videos 2017-09-28 16:43:37 -04:00
Matthew Draper
71f0db7c7f Bump Travis to new Ruby releases
Most interesting to us, 2.4.2 and 2.3.5 include the fix for
https://bugs.ruby-lang.org/issues/13632
2017-09-15 11:42:49 +09:30
Koichi ITO
2f871a4834 CI against JRuby 9.1.13.0
http://jruby.org/2017/09/06/jruby-9-1-13-0.html
2017-09-07 09:57:31 +09:00
Matthew Draper
d38266bc27 Retry if rubygems misbehaves: it's probably just the network 2017-09-02 17:52:02 +09:30
Yasuo Honda
1e38174499 Bump PostgreSQL version to the latest version 9.6 at Travis CI
Travis CI new default Ubuntu Trusty supports 9.6
https://docs.travis-ci.com/user/database-setup/#Using-a-different-PostgreSQL-Version
2017-09-01 17:18:09 +00:00
Yasuo Honda
827308d86a CI with the latest stable(GA) version of MariaDB 10.2
- Travis CI is migrating Ubuntu version to Trusty
- MariaDB 10.2 is supported on Ubuntu Trusty
2017-09-01 12:19:25 +00:00
Matthew Draper
251d3f9151 Encrypt the IRC notification setting, so it's not used on forks
The value isn't actually secret, so I've kept it as a comment.
2017-08-17 21:02:09 +09:30
George Claghorn
3841fdc4e7 Run Active Storage service tests in CI 2017-08-14 13:48:17 -04:00
George Claghorn
e43ba973a3 Run Active Storage tests in CI (#30144) 2017-08-10 15:58:30 -04:00
David Heinemeier Hansson
a9cb1968b6 Setup travis to be able to run CI tests against S3 2017-07-31 17:51:16 -05:00
Marc Ignacio
f55ecc6a7c Allows for other common redis options to be in cable.yml, by default
- Adds RedisAdapterTest::AlternateConfiguration to account
  for a relatively common alternative setup, as it’s used
  as the first example in the
  [Redis rubygem](https://github.com/redis/redis-rb#getting-started)

- Supplies original RedisAdapterTest with more complete
  redis:// url format by adding a ‘userinfo’ (blank user),
  so that it resembles the alternate configuration

- Supplies original EventedRedisAdapterTest with more complete
  redis:// url as well

- Adds before_script to start redis-server with password as a daemon
  and with explicit defaults copied from the default redis.conf
  (Instead of using Travis' default init/upstart scripts for `redis` service)
2017-06-22 16:15:47 +08:00
Koichi ITO
c778ded45e CI against JRuby 9.1.12.0
http://jruby.org/2017/06/15/jruby-9-1-12-0.html
2017-06-19 15:58:07 +09:00
Koichi ITO
ee7957aa15 CI against JRuby 9.1.10.0
http://jruby.org/2017/05/25/jruby-9-1-10-0.html
2017-05-26 12:19:41 +09:00
yuuji.yaginuma
39de88e4b5 Remove rubygems version lock
This version lock added by 3d890b66c1bfbdcabb7ef66e0774e0f01e2ed5d6.
But original issue is fixed with bundler 1.15.

Ref: https://github.com/rubygems/rubygems/issues/1911#issuecomment-300148516
2017-05-22 17:56:20 +09:00
Koichi ITO
d8297114f4 CI against JRuby 9.1.9.0
http://jruby.org/2017/05/16/jruby-9-1-9-0
2017-05-17 19:56:51 +09:00
Matthew Draper
3d890b66c1 Avoid rubygems 2.6.12 for now
It's causing a test to fail, and we're not yet sure what (if anything)
we should be doing differently. See rubygems/rubygems#1911.
2017-05-04 23:41:55 +09:30
Rafael Mendonça França
eac6f3690f
Revert "Merge pull request #27636 from mtsmfm/disable-referential-integrity-without-superuser-privilege-take-2"
This reverts commit c1faca6333abe4b938b98fedc8d1f47b88209ecf, reversing
changes made to 8c658a0ecc7f2b5fc015d424baf9edf6f3eb2b0b.

See https://github.com/rails/rails/pull/27636#issuecomment-297534129
2017-04-26 13:39:05 -07:00
Matthew Draper
7384771dd0 Use a query that's compatible with PostgreSQL 9.2
Also, explicitly apply the order: generate_subscripts is unlikely to
start returning values out of order, but we should still be clear about
what we want.
2017-04-12 23:38:57 +09:30
yuuji.yaginuma
f2e3f5945d CI against Ruby 2.4.1
Related #28532, #27636
2017-04-03 21:32:49 +09:00
Ryunosuke Sato
d022fce9b2 CI against Ruby 2.3.4
https://www.ruby-lang.org/en/news/2017/03/30/ruby-2-3-4-released/
2017-03-31 09:11:04 +09:00