-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #98 from realestate-com-au/ruby-3-1
Ruby 3.1 support
- Loading branch information
Showing
15 changed files
with
86 additions
and
67 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
ARG BASE_IMAGE | ||
FROM $BASE_IMAGE | ||
|
||
ARG TARGETARCH | ||
ENV BUNDLE_JOBS=3 | ||
|
||
RUN mkdir -p /work/ | ||
WORKDIR /work/ | ||
|
||
COPY .rubocop.yml /work/ | ||
COPY .rspec /work/ | ||
COPY examples /work/examples | ||
COPY bin /work/bin | ||
COPY stackup.gemspec /work/ | ||
COPY Gemfile /work/ | ||
COPY spec /work/spec | ||
COPY lib /work/lib | ||
RUN bundle install | ||
|
||
CMD ["/usr/bin/env", "bash"] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
#! /bin/bash -eu | ||
# | ||
# Run linter | ||
#!/usr/bin/env bash | ||
|
||
set -eu -o pipefail | ||
cd $(dirname $0)/.. | ||
|
||
echo "+++ Running linter" | ||
./auto/dev-environment rake rubocop | ||
# We lint on the lowest supported ruby version | ||
./auto/ruby-2.7 rubocop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eu -o pipefail | ||
cd $(dirname $0)/.. | ||
|
||
if [ -z "${RUBY_IMAGE:-}" ]; then | ||
2>&1 echo "Please use one of the auto/ruby-* wrappers and not this one." | ||
exit 1 | ||
fi | ||
|
||
echo "~~~ Building dev image" | ||
docker build \ | ||
--quiet \ | ||
--build-arg BASE_IMAGE="${RUBY_IMAGE}" \ | ||
--tag stackup:dev \ | ||
--file Dockerfile.dev \ | ||
. | ||
|
||
echo "~~~ Running dev image" | ||
docker run --rm --interactive --tty stackup:dev $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eu -o pipefail | ||
cd $(dirname $0)/.. | ||
|
||
RUBY_IMAGE="ruby:2.7@sha256:3d9c2a2d305318710c9e5a4ee001e07e227f356a40e0b6003d8440835d430770" exec auto/ruby "${@}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eu -o pipefail | ||
cd $(dirname $0)/.. | ||
|
||
RUBY_IMAGE="ruby:3.0@sha256:dfb439f51e6ba58810fed23e4c4582f3e3c24e6a972ec505de27217f5036c567" exec auto/ruby "${@}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eu -o pipefail | ||
cd $(dirname $0)/.. | ||
|
||
RUBY_IMAGE="ruby:3.1@sha256:ffdb4e42cf4663e10c32d3ea91312b61df931b41439c16f7b88a7f6e70a65b6d" exec auto/ruby "${@}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
#! /bin/bash -eu | ||
# | ||
# Run tests | ||
#!/usr/bin/env bash | ||
|
||
set -eu -o pipefail | ||
cd $(dirname $0)/.. | ||
|
||
echo "+++ Running specs" | ||
./auto/dev-environment rake spec | ||
echo "+++ Running specs for ruby 3.1" | ||
./auto/ruby-3.1 rspec | ||
|
||
echo "+++ Running specs for ruby 3.0" | ||
./auto/ruby-3.0 rspec | ||
|
||
echo "+++ Running specs for ruby 2.7" | ||
./auto/ruby-2.7 rspec |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters