mirror of
https://github.com/meineerde/rackstash.git
synced 2025-10-17 14:01:01 +00:00
Drop all externel CI services in favor of Github Actions
This commit is contained in:
parent
40f08f6acd
commit
596abee168
59
.travis.yml
59
.travis.yml
@ -1,59 +0,0 @@
|
||||
# Copyright 2017 - 2019 Holger Just
|
||||
#
|
||||
# This software may be modified and distributed under the terms
|
||||
# of the MIT license. See the LICENSE.txt file for details.
|
||||
|
||||
language: ruby
|
||||
sudo: false
|
||||
|
||||
cache: bundler
|
||||
|
||||
matrix:
|
||||
include:
|
||||
# Latest Rubies on top
|
||||
- rvm: 2.7.1
|
||||
env: COVERAGE=true
|
||||
- rvm: jruby-9.2.12.0
|
||||
- rvm: truffleruby-20.1.0
|
||||
|
||||
# Older versions
|
||||
- rvm: 2.6.6
|
||||
- rvm: 2.5.8
|
||||
- rvm: 2.4.10
|
||||
- rvm: 2.3.7
|
||||
- rvm: 2.2.10
|
||||
- rvm: 2.1.10
|
||||
|
||||
# An older Ruby/Rack combination as used by Rails 3.2. As long as it works
|
||||
# with our required Ruby version, we want to support it.
|
||||
- rvm: 2.1.10
|
||||
env: RACK_VERSION=1.4.5
|
||||
|
||||
# Older JRuby version
|
||||
- rvm: jruby-9.1.17.0
|
||||
jdk: openjdk8
|
||||
|
||||
# HEAD-Rubies (might break)
|
||||
- rvm: ruby-head
|
||||
- rvm: jruby-head
|
||||
- rvm: truffleruby-head
|
||||
|
||||
allow_failures:
|
||||
- rvm: ruby-head
|
||||
- rvm: jruby-head
|
||||
- rvm: truffleruby-20.1.0
|
||||
- rvm: truffleruby-head
|
||||
|
||||
before_install:
|
||||
# Bundler 2.0 requires at least Ruby 2.3. We need to explicitly install an
|
||||
# older version of bundler for older Ruby versions since they can't / won't
|
||||
# check their required versions on their own.
|
||||
- |
|
||||
if [[ "$(rvm current)" =~ ^ruby-2\.[012] ]]; then
|
||||
gem install bundler -v '< 2.0'
|
||||
else
|
||||
gem install bundler
|
||||
fi
|
||||
|
||||
script:
|
||||
- bundle exec rspec
|
||||
@ -1,7 +1,7 @@
|
||||
# Rackstash
|
||||
|
||||
[](https://rubygems.org/gems/rackstash)
|
||||
[](http://travis-ci.org/meineerde/rackstash)
|
||||
[]](https://github.com/meineerde/rackstash/actions?query=workflow%3ACI)
|
||||
[](https://coveralls.io/github/meineerde/rackstash?branch=master)
|
||||
|
||||
**Note: This gem is still work in progress. It is not yet usable and does not support any end-to-end logging. The good news is that we are working on that :)**
|
||||
@ -69,7 +69,7 @@ logger.info 'Hello World'
|
||||
logger.with_buffer do
|
||||
logger.tag 'my_application'
|
||||
logger['server'] = Socket.gethostname
|
||||
|
||||
|
||||
logger.debug 'Starting request...'
|
||||
logger.info 'Performing some work...'
|
||||
logger.debug 'Done'
|
||||
@ -98,4 +98,3 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/meinee
|
||||
## License
|
||||
|
||||
The gem is available as open source under the terms of the [MIT License](LICENSE.txt).
|
||||
|
||||
|
||||
65
appveyor.yml
65
appveyor.yml
@ -1,65 +0,0 @@
|
||||
version: "{build}-{branch}"
|
||||
|
||||
environment:
|
||||
matrix:
|
||||
- RUBY_VERSION: "26-x64"
|
||||
- RUBY_VERSION: "25-x64"
|
||||
- RUBY_VERSION: "24-x64"
|
||||
- RUBY_VERSION: "23-x64"
|
||||
- RUBY_VERSION: "22-x64"
|
||||
- RUBY_VERSION: "21-x64"
|
||||
- RUBY_VERSION: trunk
|
||||
- RUBY_VERSION: jruby-9.2.12.0
|
||||
- RUBY_VERSION: jruby-9.1.17.0
|
||||
|
||||
matrix:
|
||||
allow_failures:
|
||||
- ruby_version: _trunk
|
||||
|
||||
init:
|
||||
# To avoid duplicated executables in PATH, see https://github.com/ruby/spec/pull/468
|
||||
- set PATH=C:\Program Files\7-Zip;C:\Program Files\AppVeyor\BuildAgent;C:\Program Files\Git\cmd;C:\Windows\system32;C:\Program Files;C:\Windows
|
||||
- ps: |
|
||||
# Loads trunk build and updates MSYS2 / MinGW to most recent gcc compiler
|
||||
if ($env:RUBY_VERSION -eq 'trunk') {
|
||||
$trunk_uri = 'https://ci.appveyor.com/api/projects/MSP-Greg/ruby-loco/artifacts/ruby_trunk.7z'
|
||||
(New-Object Net.WebClient).DownloadFile($trunk_uri, 'C:\ruby_trunk.7z')
|
||||
7z.exe x C:\ruby_trunk.7z -oC:\Ruby_trunk
|
||||
|
||||
$env:PATH = "C:\Ruby_trunk\bin;" + $env:PATH
|
||||
}
|
||||
ElseIf ($env:RUBY_VERSION.StartsWith("jruby-")) {
|
||||
# Load and install JRuby
|
||||
$jruby_version = $env:RUBY_VERSION.split("-")[1]
|
||||
$jruby_uri = "https://s3.amazonaws.com/jruby.org/downloads/$jruby_version/jruby-bin-$jruby_version.zip"
|
||||
(New-Object Net.WebClient).DownloadFile($jruby_uri, "C:\JRuby-$jruby_version.zip")
|
||||
7z.exe x "C:\JRuby-$jruby_version.zip" -oC:\
|
||||
|
||||
$env:PATH = "C:\jruby-$jruby_version\bin;" + $env:PATH
|
||||
|
||||
gem install bundler
|
||||
}
|
||||
Else {
|
||||
$env:PATH = "C:\Ruby" + $env:RUBY_VERSION + "\bin;" + $env:PATH
|
||||
}
|
||||
|
||||
- systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
|
||||
- ps: if ($env:RUBY_VERSION.StartsWith("jruby-")) { jruby -v } else { ruby -v }
|
||||
- gem -v
|
||||
- bundle -v
|
||||
|
||||
install:
|
||||
# Create suitable directory for temporary files in tests
|
||||
- mkdir tmp
|
||||
- icacls tmp /inheritance:r /grant Everyone:F
|
||||
- set TMPDIR=tmp
|
||||
|
||||
- bundle config --local path vendor/bundle
|
||||
- bundle install
|
||||
|
||||
clone_depth: 10
|
||||
build: off
|
||||
deploy: off
|
||||
|
||||
test_script:
|
||||
- bundle exec rspec spec
|
||||
Loading…
x
Reference in New Issue
Block a user