Skip to content

Commit ab99ed6

Browse files
committed
Upgrade Bazel and Bazelist; add ruby 2.7.0
1 parent ac3a727 commit ab99ed6

File tree

18 files changed

+105
-101
lines changed

18 files changed

+105
-101
lines changed

.bazelversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.0.0
1+
2.1.1

.circleci/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# rules_ruby circleci Docker file.
33
#
4-
FROM ruby:2.6.5-stretch
4+
FROM ruby:2.7.0
55

66
# make Apt non-interactive
77
RUN echo 'APT::Get::Assume-Yes "true";' > /etc/apt/apt.conf.d/90circleci \
@@ -90,9 +90,9 @@ RUN groupadd --gid 3434 circleci \
9090

9191
RUN apt-get update && apt-get upgrade
9292

93-
RUN apt-get install -y openjdk-8-jdk python2.7 python3 golang-go
93+
RUN apt-get install -y openjdk-11-jdk python2.7 python3 golang-go
9494

95-
RUN curl -L -o /usr/bin/bazel https://github.com/bazelbuild/bazelisk/releases/download/v1.0/bazelisk-linux-amd64 \
95+
RUN curl -L -o /usr/bin/bazel https://github.com/bazelbuild/bazelisk/releases/download/v1.3.0/bazelisk-linux-amd64 \
9696
&& sudo chmod +x /usr/bin/bazel
9797

9898
USER circleci

.circleci/build.sh

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
11
#!/usr/bin/env bash
22

3-
set -ex
3+
set -e
44

5-
docker build . -t bazelruby/ruby-2.6.5
6-
docker push bazelruby/ruby-2.6.5
5+
[[ -d .circleci ]] && cd .circleci
6+
7+
RUBY_VERSION=$(cat ../.ruby-version)
8+
9+
echo
10+
echo "Ruby version is $RUBY_VERSION"
11+
echo
12+
13+
set -x
14+
15+
docker build . -t bazelruby/ruby-$RUBY_VERSION
16+
17+
docker push bazelruby/ruby-$RUBY_VERSION
718

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
working_directory: /home/circleci/repo
66
resource_class: medium
77
docker:
8-
- image: bazelruby/ruby-2.6.5
8+
- image: bazelruby/ruby-2.7.0
99
environment:
1010
PATH: "/usr/local/bin:/usr/bin:/sbin:/opt/bin:/home/circleci/repo/bin:/bin:/sbin:/usr/sbin"
1111
BUNDLE_PATH: /home/circleci/.bundle_cache

.ruby-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

Gemfile.lock

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,20 @@ GEM
44
ast (2.4.0)
55
jaro_winkler (1.5.4)
66
parallel (1.19.1)
7-
parser (2.6.5.0)
7+
parser (2.7.0.3)
88
ast (~> 2.4.0)
99
rainbow (3.0.0)
10-
rubocop (0.78.0)
10+
rexml (3.2.4)
11+
rubocop (0.80.0)
1112
jaro_winkler (~> 1.5.1)
1213
parallel (~> 1.10)
13-
parser (>= 2.6)
14+
parser (>= 2.7.0.1)
1415
rainbow (>= 2.2.2, < 4.0)
16+
rexml
1517
ruby-progressbar (~> 1.7)
1618
unicode-display_width (>= 1.4.0, < 1.7)
1719
ruby-progressbar (1.10.1)
18-
unicode-display_width (1.6.0)
20+
unicode-display_width (1.6.1)
1921

2022
PLATFORMS
2123
ruby
@@ -24,4 +26,4 @@ DEPENDENCIES
2426
rubocop (~> 0.78)
2527

2628
BUNDLED WITH
27-
2.0.2
29+
2.1.2

WORKSPACE

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
workspace(name = "bazelruby_ruby_rules")
22

3-
load("@//ruby:deps.bzl", "ruby_rules_dependencies")
3+
load("@//ruby:deps.bzl", "ruby_register_toolchains", "ruby_rules_dependencies")
44

55
ruby_rules_dependencies()
66

@@ -12,8 +12,6 @@ load("@bazel_skylib//lib:versions.bzl", "versions")
1212

1313
versions.check("1.2.1")
1414

15-
load("@//ruby:deps.bzl", "ruby_register_toolchains")
16-
1715
ruby_register_toolchains()
1816

1917
local_repository(

bin/deps

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ __version::detect() {
2727

2828
# Application Constants
2929
export RulesRuby__RulesVersion=$(__version::detect .rules_version)
30-
export RulesRuby__RubyVersion=$(__version::detect .ruby_version)
30+
export RulesRuby__RubyVersion=2.7.0
3131
export RulesRuby__BazelVersion=$(__version::detect .bazelversion)
3232

3333
bazel-sha() {

bin/test-suite

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export PATH="${HOME}/.rbenv/bin:${HOME}/.rbenv/shims:/usr/local/bin:/usr/bin:/bi
1212
export BAZEL_OPTS="--host_jvm_args=-Xmx500m --host_jvm_args=-Xms500m"
1313
export BAZEL_BUILD_OPTS="--curses=no --verbose_failures -j 15 --show_progress_rate_limit 0 "
1414
export BAZEL_TEST_OPTS="--verbose_failures --test_output=streamed --test_verbose_timeout_warnings "
15-
export RUBY_VERSION=$(cat .ruby-version)
15+
export RUBY_VERSION=2.7.0
1616

1717
export BashMatic__Expr="
1818
[[ -f ${SHELL_INIT} ]] && source ${SHELL_INIT}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.6.5
1+
2.7.0

0 commit comments

Comments
 (0)