mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
We now test everything but 1.9 with GitHub Actions. GH Actions doesn't support 1.9 out of box and I am not sure how to write a spec that would use our custom Docker image for 1.9 and the standard images for everything esle. That's why CircleCI does not go away (for now, until we still support 1.9). Luckily, I was able to get rid of the custom Docker image for 2.0 because GH Actions stil support that version of Ruby. Now the build code is much simpler and easier to follow. Looking forward to getting rid of CircleCI completely!
26 lines
559 B
YAML
26 lines
559 B
YAML
version: 2.1
|
|
|
|
jobs:
|
|
build:
|
|
working_directory: ~/pry
|
|
|
|
docker:
|
|
- image: kyrylo/ruby-1.9.3p551
|
|
|
|
steps:
|
|
- checkout
|
|
|
|
- run:
|
|
name: Install Bundler dependencies
|
|
command: bundle install
|
|
|
|
- run:
|
|
name: Install Nano text editor (required for some tests)
|
|
command: apk add nano
|
|
|
|
- run:
|
|
name: Run unit tests
|
|
command: bundle exec rake
|
|
environment:
|
|
# Make sure TERM is set so Pry can indent correctly inside tests.
|
|
TERM: screen-256color
|