v.2.0.0 ruby upgrade (#24)

* Bump minimal Ruby version to 3.0

* yaml file fix

* yaml for keychain

* Update .travis.yml

Remove ruby version that do not support used syntax

* Update version.rb

set version to 2

---------

Co-authored-by: vitalie <vitalie@travis-ci.org>
Co-authored-by: Dominik <dominik.alberski@gmail.com>

Dominik avatar Dominik

Tag #246.2 passed

  • Ran for
AMD64
Ruby: 3.2
Git
Raw log
Scroll to End of Log
0.12s0.10s0.00s0.06s
worker_info
1Worker information
2hostname: 5c1ac859-8194-4181-8505-5b8fc68a5394@1.worker-n2-com-779d777f7b-9jv6t.gce-production-1
3version: 6.2.22 https://github.com/travis-ci/worker/tree/858cb91994a513269f2fe9782c15fc113e966231
4instance: travis-job-748c7eda-a745-4b2d-9927-3c39e67db783 travis-ci-ubuntu-2004-1707238145-6d1d1b02 (via amqp)
5startup: 6.818628646s
60.37s0.01s0.00s0.01s
system_info
7Build system information
8Build language: ruby
9Build dist: focal
10Build id: 269142273
11Job id: 618382831
12Runtime kernel version: 5.15.0-1049-gcp
13travis-build version: f3de9fb7
14Build image provisioning date and time
15Tue 06 Feb 2024 05:15:48 PM UTC
16Operating System Details
17Distributor ID: Ubuntu
18Description: Ubuntu 20.04.6 LTS
19Release: 20.04
20Codename: focal
21Systemd Version
22systemd 245 (245.4-4ubuntu3.23)
23Cookbooks Version
244a0cff6 https://github.com/travis-ci/travis-cookbooks/tree/4a0cff6
25git version
26git version 2.43.0
27bash version
28GNU bash, version 5.0.17(1)-release (x86_64-pc-linux-gnu)
29gcc version
30gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
31docker version
32Client:
33 Version: 24.0.5
34 API version: 1.43
35 Go version: go1.20.3
36 Git commit: 24.0.5-0ubuntu1~20.04.1
37 Built: Mon Aug 21 19:50:14 2023
38 OS/Arch: linux/amd64
39 Context: default
41Server:
42 Engine:
43 Version: 24.0.5
44 API version: 1.43 (minimum version 1.12)
45 Go version: go1.20.3
46 Git commit: 24.0.5-0ubuntu1~20.04.1
47 Built: Mon Aug 21 19:50:14 2023
48 OS/Arch: linux/amd64
49 Experimental: false
50 containerd:
51 Version: 1.7.2
52 GitCommit:
53 runc:
54 Version: 1.1.7-0ubuntu1~20.04.2
55 GitCommit:
56 docker-init:
57 Version: 0.19.0
58 GitCommit:
59clang version
60clang version 16.0.0
61jq version
62jq-1.7
63bats version
64Bats 0.4.0
65shellcheck version
660.9.0
67shfmt version
68v3.7.0
69ccache version
703.7.7
71cmake version
72cmake version 3.26.3
73heroku version
74heroku/8.7.1 linux-x64 node-v16.19.0
75imagemagick version
76Version: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
77md5deep version
784.4
79mercurial version
80version 6.5.2
81mysql version
82mysql Ver 8.0.36-0ubuntu0.20.04.1 for Linux on x86_64 ((Ubuntu))
83openssl version
84OpenSSL 1.1.1f 31 Mar 2020
85packer version
861.9.4
87postgresql client version
88psql (PostgreSQL) 13.13 (Ubuntu 13.13-1.pgdg20.04+1)
89ragel version
90Ragel State Machine Compiler version 6.10 March 2017
91sudo version
921.8.31
93gzip version
94gzip 1.10
95zip version
96Zip 3.0
97vim version
98VIM - Vi IMproved 8.1 (2018 May 18, compiled Dec 07 2023 15:42:49)
99iptables version
100iptables v1.8.4 (legacy)
101curl version
102curl 7.68.0 (x86_64-pc-linux-gnu) libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3
103wget version
104GNU Wget 1.20.3 built on linux-gnu.
105rsync version
106rsync version 3.1.3 protocol version 31
107gimme version
108v1.5.4
109nvm version
1100.39.7
111perlbrew version
112/home/travis/perl5/perlbrew/bin/perlbrew - App::perlbrew/0.95
113phpenv version
114rbenv 1.2.0
115rvm version
116rvm 1.29.12 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]
117default ruby version
118ruby 2.7.6p219 (2022-04-12 revision c9c2245c0a) [x86_64-linux]
119default python version
120Python 3.7.17
121ElasticSearch version
1227.16.3
123Installed Firefox version
124firefox 99.0
125MongoDB version
126MongoDB 4.4.28
127PhantomJS version
1282.1.1
129Redis version
130redis-server 7.2.4
131Pre-installed Go versions
1321.11.1
133mvn version
134Apache Maven 3.9.4 (dfbb324ad4a7c8fb0bf182e6d91b0ae20e3d2dd9)
135gradle version
136Gradle 8.3!
137lein version
138Leiningen 2.11.1 on Java 11.0.21 OpenJDK 64-Bit Server VM
139Pre-installed Node.js versions
140v10.24.1
141v12.22.12
142v14.21.3
143v16.15
144v16.20.2
145v18.19.0
146v18.4.0
147v20.11.0
148v4.9.1
149v6.17.1
150v8.17.0
151phpenv versions
152 system
153 7.4
154* 7.4.6 (set by /home/travis/.phpenv/version)
155 hhvm-stable
156 hhvm
157composer --version
158Composer version 1.10.6 2020-05-06 10:28:10
159Pre-installed Ruby versions
160ruby-2.5.9
161ruby-2.7.6
162ruby-3.1.2
1640.02s0.01s0.56s0.30s0.05s0.01s0.03s0.00s0.01s0.01s0.02s0.01s0.01s0.00s0.32sOK
1650.00s0.06s0.00s0.01s0.15s0.00s0.00s0.00s0.01s0.00s0.09s0.00s0.89s0.00s0.00s6.04s0.00s4.02s0.00s2.27s
docker_mtu_and_registry_mirrors
resolvconf
git.checkout
1660.01s0.46s$ git clone --depth=50 --branch=v.2.0.0 https://github.com/travis-ci/travis-config.git travis-ci/travis-config
167Cloning into 'travis-ci/travis-config'...
168remote: Enumerating objects: 662, done.
169remote: Counting objects: 100% (662/662), done.
170remote: Compressing objects: 100% (329/329), done.
171remote: Total 662 (delta 294), reused 590 (delta 239), pack-reused 0
172Receiving objects: 100% (662/662), 75.21 KiB | 1.83 MiB/s, done.
173Resolving deltas: 100% (294/294), done.
174**************************************************************
176You are in 'detached HEAD' state. You can look around, make experimental
177changes and commit them, and you can discard any commits you make in this
178state without impacting any branches by switching back to a branch.
180If you want to create a new branch to retain commits you create, you may
181do so (now or later) by using -c with the switch command. Example:
183 git switch -c <new-branch-name>
185Or undo this operation with:
187 git switch -
189Turn off this advice by setting config variable advice.detachedHead to false
191$ cd travis-ci/travis-config
192$ git checkout -qf v.2.0.0
1940.01s
rvm
1953.06s$ rvm get head
196Downloading https://get.rvm.io
197Downloading https://raw.githubusercontent.com/rvm/rvm/master/binscripts/rvm-installer.asc
198Verifying /home/travis/.rvm/archives/rvm-installer.asc
199gpg: Signature made Tue 21 Feb 2023 11:35:16 PM UTC
200gpg: using RSA key 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
201gpg: Good signature from "Piotr Kuczynski <piotr.kuczynski@gmail.com>" [unknown]
202gpg: WARNING: This key is not certified with a trusted signature!
203gpg: There is no indication that the signature belongs to the owner.
204Primary key fingerprint: 7D2B AF1C F37B 13E2 069D 6956 105B D0E7 3949 9BDB
205GPG verified '/home/travis/.rvm/archives/rvm-installer'
206Downloading https://github.com/rvm/rvm/archive/master.tar.gz
207Upgrading the RVM installation in /home/travis/.rvm/
208 RVM PATH line found in /home/travis/.mkshrc /home/travis/.profile /home/travis/.zshrc.
209 RVM PATH line not found for Bash, rerun this command with '--auto-dotfiles' flag to fix it.
210 RVM sourcing line found in /home/travis/.profile /home/travis/.bashrc /home/travis/.zlogin.
211Upgrade of RVM in /home/travis/.rvm/ is complete.
213Thanks for installing RVM 🙏
214Please consider donating to our open collective to help us maintain RVM.
216👉 Donate: https://opencollective.com/rvm/donate
219RVM reloaded!
22021.74s$ rvm use 3.2 --install --binary --fuzzy
221curl: (22) The requested URL returned error: 404
222Required ruby-3.2.2 is not installed - installing.
223curl: (22) The requested URL returned error: 404
224Searching for binary rubies, this might take some time.
225Found remote file https://rubies.travis-ci.org/ubuntu/20.04/x86_64/ruby-3.2.2.tar.bz2
226Checking requirements for ubuntu.
227Requirements installation successful.
228ruby-3.2.2 - #configure
229ruby-3.2.2 - #download
230 % Total % Received % Xferd Average Speed Time Time Time Current
231 Dload Upload Total Spent Left Speed
232 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
233100 32.4M 100 32.4M 0 0 18.0M 0 0:00:01 0:00:01 --:--:-- 86.1M
234No checksum for downloaded archive, recording checksum in user configuration.
235ruby-3.2.2 - #validate archive
236ruby-3.2.2 - #extract
237ruby-3.2.2 - #validate binary
238ruby-3.2.2 - #setup
239ruby-3.2.2 - #gemset created /home/travis/.rvm/gems/ruby-3.2.2@global
240ruby-3.2.2 - #importing gemset /home/travis/.rvm/gemsets/global.gems..................................
241ruby-3.2.2 - #generating global wrappers........
242ruby-3.2.2 - #uninstalling gem rubygems-bundler-1.4.5.
243ruby-3.2.2 - #gemset created /home/travis/.rvm/gems/ruby-3.2.2
244ruby-3.2.2 - #importing gemset /home/travis/.rvm/gemsets/default.gems..............
245ruby-3.2.2 - #generating default wrappers........
246Using /home/travis/.rvm/gems/ruby-3.2.2
248$ export BUNDLE_GEMFILE=$PWD/Gemfile
ruby.versions
249$ ruby --version
250ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-linux]
251$ rvm --version
252rvm 1.29.12-next (master) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]
253$ bundle --version
254Bundler version 2.4.10
255$ gem --version
2563.4.10
install.bundler
2586.74s$ bundle install --jobs=3 --retry=3
259Fetching gem metadata from https://rubygems.org/.........
260Resolving dependencies...
261Fetching ansi 1.5.0
262Using bundler 2.4.10
263Fetching ast 2.4.2
264Fetching diff-lcs 1.5.1
265Installing ast 2.4.2
266Installing diff-lcs 1.5.1
267Installing ansi 1.5.0
268Fetching docile 1.4.0
269Installing docile 1.4.0
270Fetching fakefs 2.5.0
271Fetching hashr 2.0.1
272Fetching json 2.7.1
273Installing fakefs 2.5.0
274Installing hashr 2.0.1
275Fetching language_server-protocol 3.17.0.3
276Using ruby2_keywords 0.0.5
277Fetching parallel 1.24.0
278Installing json 2.7.1 with native extensions
279Installing parallel 1.24.0
280Installing language_server-protocol 3.17.0.3
281Fetching racc 1.7.3
282Installing racc 1.7.3 with native extensions
283Fetching rainbow 3.1.1
284Installing rainbow 3.1.1
285Fetching regexp_parser 2.9.0
286Installing regexp_parser 2.9.0
287Fetching rexml 3.2.6
288Installing rexml 3.2.6
289Fetching rspec-support 3.13.1
290Installing rspec-support 3.13.1
291Fetching ruby-progress*** 1.13.0
292Installing ruby-progress*** 1.13.0
293Fetching unicode-display_width 2.5.0
294Installing unicode-display_width 2.5.0
295Fetching simplecov-html 0.12.3
296Installing simplecov-html 0.12.3
297Fetching simplecov_json_formatter 0.1.4
298Installing simplecov_json_formatter 0.1.4
299Using travis-config 2.0.0 from source at `.`
300Fetching mocha 2.1.0
301Installing mocha 2.1.0
302Fetching rspec-core 3.13.0
303Installing rspec-core 3.13.0
304Fetching rspec-expectations 3.13.0
305Installing rspec-expectations 3.13.0
306Fetching rspec-mocks 3.13.0
307Fetching terminal-table 3.0.2
308Installing terminal-table 3.0.2
309Installing rspec-mocks 3.13.0
310Fetching simplecov 0.22.0
311Fetching parser 3.3.0.5
312Installing simplecov 0.22.0
313Fetching rspec 3.13.0
314Installing rspec 3.13.0
315Fetching simplecov-console 0.9.1
316Installing parser 3.3.0.5
317Installing simplecov-console 0.9.1
318Fetching rubocop-ast 1.30.0
319Installing rubocop-ast 1.30.0
320Fetching rubocop 1.60.2
321Installing rubocop 1.60.2
322Fetching rubocop-capy***a 2.20.0
323Fetching rubocop-factory_bot 2.25.1
324Fetching rubocop-performance 1.20.2
325Installing rubocop-capy***a 2.20.0
326Installing rubocop-factory_bot 2.25.1
327Installing rubocop-performance 1.20.2
328Fetching rubocop-rspec 2.26.1
329Installing rubocop-rspec 2.26.1
330Bundle complete! 9 Gemfile dependencies, 36 gems now installed.
331Use `bundle info [gemname]` to see where a bundled gem is installed.
3330.75s$ bundle exec rspec
335Travis::Config::Docker
336 loads POSTGRESQL_PORT to config.database
337 loads host and port from the env var
338 keeps adapter, database, encoding from the regular config
339 loads RABBITMQ_PORT to config.amqp
340 loads host and port from the env var
341 keeps username, password, prefetch from the regular config
342 loads REDIS_PORT
343 loads the port to redis.url
345Travis::Config::Env
346 cast
347 is expected to eq "under_scored"
348 is expected to eq "foo"
349 is expected to eq :***
350 is expected to eq 10
351 is expected to eq 10.0
352 is expected to equal true
353 is expected to equal true
354 is expected to equal true
355 is expected to equal false
356 is expected to equal false
357 is expected to equal false
358 is expected to be nil
359 database
360 is expected to eq "postgres"
361 is expected to eq 10000
363Travis::Config::Env arrays
364 cast
365 is expected to eq [{:foo=>"***"}, {:foo=>"baz"}]
366 is expected to eq [{:***=>true, :foo=>1}, {:***=>false, :foo=>1.1}]
367 is expected to eq ["foo", "***"]
368 unexpected string
369 is expected to raise Travis::Config::Env::UnexpectedString
371Travis::Config::Env queues
372 nested array
373 is expected to eq {:queue=>"one", :services=>["docker"]}
374 does not set empty arrays
375 is expected to be nil
377Travis::Config::Files
378 deep symbolizes arrays, too
379 reads custom config files
380 still reads the default config file
381 merges custom files
382 overwrites previously set values with values loaded later
384Travis::Config::Heroku
385 using amqp as a protocol
386 loads a RABBITMQ_URL
387 using amqps as a protocol
388 loads a RABBITMQ_URL
390Travis::Config::Heroku
391 loads a TRAVIS_DATABASE_URL with a port
392 is expected to eq {:adapter=>"postgresql", :database=>"database", :encoding=>"unicode", :host=>"hostname", :password=>"...name=>"username", :variables=>{:application_name=>"travis-config/specs", :statement_timeout=>10000}}
393 loads a DATABASE_URL with a port
394 is expected to eq {:adapter=>"postgresql", :database=>"database", :encoding=>"unicode", :host=>"hostname", :password=>"...name=>"username", :variables=>{:application_name=>"travis-config/specs", :statement_timeout=>10000}}
395 loads a DATABASE_URL without a port
396 is expected to eq {:adapter=>"postgresql", :database=>"database", :encoding=>"unicode", :host=>"hostname", :password=>"...name=>"username", :variables=>{:application_name=>"travis-config/specs", :statement_timeout=>10000}}
397 loads TRAVIS_DATABASE_POOL_SIZE
398 is expected to eq {:adapter=>"postgresql", :database=>"database", :encoding=>"unicode", :host=>"hostname", :password=>"...name=>"username", :variables=>{:application_name=>"travis-config/specs", :statement_timeout=>10000}}
399 loads DATABASE_POOL_SIZE
400 is expected to eq {:adapter=>"postgresql", :database=>"database", :encoding=>"unicode", :host=>"hostname", :password=>"...name=>"username", :variables=>{:application_name=>"travis-config/specs", :statement_timeout=>10000}}
401 loads DB_POOL
402 is expected to eq {:adapter=>"postgresql", :database=>"database", :encoding=>"unicode", :host=>"hostname", :password=>"...name=>"username", :variables=>{:application_name=>"travis-config/specs", :statement_timeout=>10000}}
403 loads a TRAVIS_LOGS_DATABASE_URL with a port
404 is expected to eq {:adapter=>"postgresql", :database=>"logs_database", :encoding=>"unicode", :host=>"hostname", :passwo...name=>"username", :variables=>{:application_name=>"travis-config/specs", :statement_timeout=>10000}}
405 loads a LOGS_DATABASE_URL with a port
406 is expected to eq {:adapter=>"postgresql", :database=>"logs_database", :encoding=>"unicode", :host=>"hostname", :passwo...name=>"username", :variables=>{:application_name=>"travis-config/specs", :statement_timeout=>10000}}
407 loads a LOGS_DATABASE_URL without a port
408 is expected to eq {:adapter=>"postgresql", :database=>"logs_database", :encoding=>"unicode", :host=>"hostname", :passwo...name=>"username", :variables=>{:application_name=>"travis-config/specs", :statement_timeout=>10000}}
409 loads LOGS_DB_POOL
410 is expected to eq {:adapter=>"postgresql", :database=>"logs_database", :encoding=>"unicode", :host=>"hostname", :passwo...name=>"username", :variables=>{:application_name=>"travis-config/specs", :statement_timeout=>10000}}
411 loads TRAVIS_LOGS_DATABASE_POOL_SIZE
412 is expected to eq {:adapter=>"postgresql", :database=>"logs_database", :encoding=>"unicode", :host=>"hostname", :passwo...name=>"username", :variables=>{:application_name=>"travis-config/specs", :statement_timeout=>10000}}
413 loads LOGS_DATABASE_POOL_SIZE
414 is expected to eq {:adapter=>"postgresql", :database=>"logs_database", :encoding=>"unicode", :host=>"hostname", :passwo...name=>"username", :variables=>{:application_name=>"travis-config/specs", :statement_timeout=>10000}}
415 sets logs_database to nil if no LOGS_DATABASE_URL is given
416 is expected to be nil
418Travis::Config::Heroku
419 loads a MEMCACHED_SERVERS
420 loads a MEMCACHED_USERNAME
421 loads a MEMCACHED_PASSWORD
423Travis::Config::Heroku
424 loads a REDIS_URL
426Travis::Config::Heroku
427 loads a SENTRY_DSN
428***************************************************************************
429 loads a TRAVIS_SENTRY_DSN
430***************************************************************************
432Travis::Config::Serialize::Env
433 is expected to include "TRAVIS_FOO_BAR=baz"
434 is expected to include "TRAVIS_TRUE=true"
435 is expected to include "TRAVIS_FALSE=false"
436 is expected not to include "TRAVIS_NIL="
438Travis::Config
439 Hashr behaviour
440 is expected to be a kind of Hashr
441 returns Hashr instances on subkeys
442 is expected to be a kind of Hashr
443 returns Hashr instances on subkeys that were set to Ruby Hashes
444 is expected to be a kind of Hashr
445 can access nested keys
446 is expected to eq "guest"
447 reads custom config files
448 is expected to eq "travis"
449 is expected to eq "foo"
450 is expected to eq "***"
451 is expected to eq "***"
452 deep symbolizes arrays, too
453 is expected to eq ["rails/rails", "rails"]
454 logs_database config
455 given logs_database is defined in a config file
456 is expected to eq "from_file"
457 given logs_database is defined in the keychain
458 is expected to eq "keychain"
459 given logs_database is not defined anywhere it does not default to database
460 is expected to be nil
461 loading from keychain and env
462 is expected to eq "redis://url"
463 is expected to eq [{:queue=>"from_env"}]
465Finished in 0.08197 seconds (files took 0.2826 seconds to load)
46668 examples, 0 failures
469COVERAGE: 100.00% -- 0/0 lines in 0 files
471Coverage report generated for RSpec to /home/travis/build/travis-ci/travis-config/coverage. 0 / 0 LOC (100.0%) covered.
472The command "bundle exec rspec" exited with 0.
475Done. Your build exited with 0.
Top