Граф коммитов

130 Коммитов

Автор SHA1 Сообщение Дата
shyouhei 8183cd2f1d .travis.yml: add -pedantic build (2nd try)
Now that we have allow_failures, why not add configurations
that are prone to fail.  The first thing I want to add is
$CC -ansi -pedantic, which spots lots of bugs on my local
machine.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-10-18 08:58:18 +00:00
shyouhei a3fd252e32 revert r65151, because the other tests were broken.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-10-18 08:39:15 +00:00
shyouhei 907ef23925 .travis.yml: add -pedantic build
Now that we have allow_failures, why not add configurations
that are prone to fail.  The first thing I want to add is
$CC -ansi -pedantic, which spots lots of bugs on my local
machine.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-10-18 08:33:52 +00:00
nobu 27fe4b6fa1 .travis.yml: no additional apt packages for spec/ruby [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-10-18 02:32:25 +00:00
shyouhei b0dd7902b8 .travis.yml: should escape spaces
workarounds for https://github.com/travis-ci/travis-ci/issues/1444


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-10-18 02:22:26 +00:00
shyouhei 8b2f7b82a8 .travis.yml: just use env
You don't have to use `before_install` to introduce
new environment variables; that is to be done using
`env` command.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-10-18 01:56:30 +00:00
nobu 9950fff2fa .travis.yml: no PR in spec/ruby [ci skip]
* .travis.yml (before_script): spec/ruby has been incorporated
  already, no pull-requests to merge.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-10-18 01:52:50 +00:00
shyouhei e5299989f3 .travis.yml: fix typo in configure arguments
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-10-18 01:34:45 +00:00
nobu c3982a1aa6 .travis.yml: split before_install into the matrix
* .travis.yml (before_install): split shell commands into the
  matrix per OSs, so that the commands will appear in the logs
  separately.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-10-18 01:10:56 +00:00
k0kubun 7943c0e5e6 .travis.yml: revert r65131 too
because it succeeded https://travis-ci.org/ruby/ruby/jobs/442733840.

It looks that it randomly succeeds. Let's just leave it and see how
stable it is, starting from `allow_failures` because it hasn't hanged
only once so far.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-10-17 15:42:34 +00:00
k0kubun 7b916dd4de revert r65124 and try non-parallel test-all on osx
OpenSSL error was fixed but r65124 hanged too
https://travis-ci.org/ruby/ruby/jobs/442727035.

So it seems to be an independent issue.
Let me try removing -j.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-10-17 15:13:36 +00:00
k0kubun 9304c0522d .travis.yml: try openssl stable version
macOS build is handing on OpenSSL::SSL::SSLError https://travis-ci.org/ruby/ruby/jobs/442706479
Now 1.0.2p is stable version https://formulae.brew.sh/formula/openssl,
so let me try that version to make CI green

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-10-17 14:50:35 +00:00
shyouhei 8340078cc8 .travis.yml: enhance build matrix
add OS=osx compiler=clang build matrix so that we can make sure
things are built smoothly on that platform.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-10-17 14:09:24 +00:00
k0kubun 274cd92782 .travis.yml: try `addons.apt.config.retries: true` as well
This is suggested by Travis
https://github.com/travis-ci/travis-ci/issues/9112#issuecomment-376305909

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-10-15 10:03:57 +00:00
k0kubun 63cebc4da6 .travis.yml: try `addons.apt.update: true` for gcc-8
because gcc-8 setup is super unstable like this
https://travis-ci.org/ruby/ruby/jobs/441528813

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-10-15 09:51:32 +00:00
kazu 4baf0757e4 ruby_2_2 branch has ended
https://www.ruby-lang.org/en/news/2018/06/20/support-of-ruby-2-2-has-ended/
[ci skip]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-09-19 12:39:44 +00:00
nobu db4c91be27 .travis.yml: run ruby/spec version guards check in parallel
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-09-12 12:14:45 +00:00
nobu f677ba8871 deduce versioned tools from CC
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-09-12 07:01:59 +00:00
nobu 7785f57974 .travis.yml: separate ruby/spec on old version
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-09-09 15:46:51 +00:00
nobu 1050c08dc6 Add latest version gcc-8 case to Travis CI
[Fix GH-1937]

Co-authored-by: Jun Aruga <jaruga@redhat.com>

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-09-09 12:48:33 +00:00
nobu c3c73ba2bd .travis.yml: branches only for travis-ci
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-09-09 12:48:32 +00:00
eregon d4313df085 Run specs against 2.3.7 to ensure version guards are correctly added
* See [Feature #15004].

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-08-21 22:17:37 +00:00
k0kubun b818f7c349 .travis.yml: resurrect notification to #commits
I heard at least Shibata-san sees the channel for the notification.
But I want #alets to have all CI failure notifications too.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-02-11 06:33:45 +00:00
k0kubun 23c71575f8 .travis.yml: send notification to #alerts
instead of #commits.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-02-11 05:49:37 +00:00
k0kubun bf618557b1 .travis.yml: force to execute JIT test on Travis
test_jit.rb: with environment variable RUBY_FORCE_TEST_JIT, we can force
to test JIT availability.

I wanted to have such CI, but Travis was the only option which I can
modify easily.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-02-09 00:32:55 +00:00
k0kubun 4d0ce03cfa .travis.yml: try `make install` to test JIT
If header is not available, JIT won't be tested.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62295 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-02-07 16:39:17 +00:00
hsbt 4fb218f9a0 Removed workaround Travis CI.
Revert r61209, r61210

From: SHIBATA Hiroshi <hsbt@ruby-lang.org>

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-01-26 03:54:55 +00:00
hsbt 4251ee5b40 Try to fix Travis CI configuration.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-01-05 06:18:57 +00:00
naruse 135f24c06a Add ruby_2_5 branch to .travis.yml
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-25 07:56:46 +00:00
eregon e44a6f2f84 Travis: the workaround needs sudo: required to work
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-13 11:22:55 +00:00
eregon 6d9b55ecbd Use the older Travis CI image
* The new one produces many warnings like:
  warning: Insecure world writable dir /usr/local/clang-5.0.0/bin in PATH, mode 040777
* Workaround from https://blog.travis-ci.com/2017-12-12-new-trusty-images-q4-launch

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-13 11:13:55 +00:00
k0kubun dd979f9d69 .travis.yml: revert "workaround to resolve ::1"
This commit reverts r60736.

Shibata-san reported the cause of r60736 to Travis and it seems fixed:
https://github.com/travis-ci/travis-ci/issues/8780

In another CI, I found "::1     ip6-localhost ip6-loopback" in build
system information, unlike "::1  localhost ip6-localhost ip6-loopback"
that had failed in Ruby's CI on Travis.

Let's try Container-based environment again.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-11-23 14:04:24 +00:00
k0kubun 4d60654690 .travis.yml: workaround to resolve ::1
Container-based Trusty environment (sudo: false) does not support IPv6.
https://github.com/travis-ci/travis-ci/issues/3302

And the image has "::1  localhost ip6-localhost ip6-loopback" entry in
addition to "127.0.0.1 localhost" in /etc/hosts.
Thus when it can resolve localhost to ::1 and CI fails.

To resolve this, at least we need to modify /etc/hosts for now but we
can't modify /etc/hosts without sudo.

So I enabled sudo. As Sudo-enabled VM didn't have "::1 localhost" entry,
this change fixed the cause without touching /etc/hosts.

Since boot of `sudo: required` is slower than `sudo: false`, please revert
this commit anytime when Container-based Trusty environment is updated and
::1 issue has gone.
https://docs.travis-ci.com/user/reference/overview/

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-11-10 11:50:00 +00:00
hsbt ca9c9001dc Regenerate slack token on Travis CI.
The previous token did not work on our slack team.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-10-25 09:24:37 +00:00
eregon aaf07f7ad5 Adapt tools to follow spec/rubyspec => spec/ruby rename
* [Misc #13792] [ruby-core:82287]
* Prefer test-spec over test-rubyspec in spec/README.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-09-20 20:19:54 +00:00
hsbt 31a447d1c3 Update credentials for Travis/Slack integration.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-09-05 08:25:26 +00:00
hsbt 8397de0091 Partly reverted email notification on travis configuration.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-08-02 02:19:04 +00:00
kazu 3ba550c19b Remove "make update-rubyspec"
because it is no-op for compatibility

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-08-02 00:20:41 +00:00
hsbt aa30bfd536 Update configuration for slack notification.
* Encrypted slack token.
  * Only notify when build fails and it recovered.
  * Only notify trunk build without pull requests.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-07-27 11:56:54 +00:00
hsbt dc9fad3a1d To use slack notification instead of email notification.
It's easily customize configuration of test notify.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-07-26 06:06:33 +00:00
hsbt 369df4668e Removed Ruby 2.1 from Travis CI. It's EOL status on 2017.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-07-26 05:39:41 +00:00
nobu 41bdfc53da .travis.yml: update dist to trusty
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-07-08 02:05:55 +00:00
nobu e7ff862257 .travis.yml: exts is not needed for tests here
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-27 05:18:52 +00:00
nobu 8e81b3c766 mspec/commands/mspec.rb: formatter for multi_exec
* spec/mspec/lib/mspec/commands/mspec.rb (MSpecMain#multi_exec):
  as multi_exec children must run with yaml formatter, append the
  option for it after other options to override another formatter
  option with a warning if it is given.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-27 03:43:02 +00:00
nobu 944c8f400c .travis.yml: get number of processors at runtime
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-27 03:14:04 +00:00
nobu 2ba68008b5 readonly srcdir
.travis.yml: make srcdir unwritable during build and tests.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-23 13:18:45 +00:00
nobu 08ef146e45 out-of-place on travis
* .travis.yml (before_script, script): out-of-place build.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-23 12:42:40 +00:00
nobu 3692fd69ca .travis.yml: tweek after-update
* .travis.yml (before_script): get rid of making miniruby at
  after-update.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-02 13:16:04 +00:00
nobu 4ab8d89d7d Show logs after PR merger
* .travis.yml (before_script): show logs of merged pull requests
  to rubyspec.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-08 07:29:55 +00:00
nobu 2c0b9e8748 Split commands
* .travis.yml (before_script): split commands to prepare variables
  for pull request URLs to rubyspec, to stop when each commands
  failed.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-08 07:29:54 +00:00