Skip to content

Commit c449402

Browse files
authored
Version vandidate 0.4.0 — upgrade Rubies + Setup (#77)
## RulesRuby Version 0.4.0 Candiate Merge: * Updating .bazelrc * Moving rbenv install to bin/setup + .travis.yml * Fixing buildifier complaints * Fixed TravisCI errors * Comment out failing test with Docker * Upgrade various top-level dependencies to the latest * Upgrade Bazel to 3.4.1 * Really switch to Ruby 2.7.1 as the default
1 parent 367bdc4 commit c449402

39 files changed

+473
-189
lines changed

.bash_bazel

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Install me in your ${HOME} folder, and add me to your ~/.bashrc:
4+
#
5+
# cp .bash_bazel ~/ && echo 'source ~/.bash_bazel' >> ~/.bashrc
6+
#
7+
8+
[[ -n $(command -V brew) ]] && {
9+
completion="$(brew --prefix)/etc/bash_completion"
10+
[[ -f "${completion}" ]] && {
11+
source "${completion}"
12+
}
13+
}
14+
15+
alias bb='bazel build'
16+
alias bba='bazel build //...:all'
17+
alias bbr='bazel run'
18+
alias bbx='bazel clean --expunge'
19+
alias bbq='bazel query'
20+
alias bbt='bazel test'
21+
alias bbqa='bazel query //...:all'
22+

.bazelrc

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Bazel RC file for Local
2+
#
3+
# Flare Folks: please feel free to update this as you see fit. I put
4+
# initial values here that make the output pretty and github caching
5+
# possible. I am not as certain about the JVM args.
6+
7+
# Startup Options
8+
startup --host_jvm_args=-Xmx500m
9+
10+
# Build Options
11+
build --verbose_failures
12+
build --jobs 30
13+
build --progress_report_interval=2
14+
build --color yes
15+
build --incompatible_strict_action_env
16+
build --show_timestamps
17+
18+
# These inherit from Build
19+
test --verbose_failures
20+
test --test_verbose_timeout_warnings
21+
test --verbose_explanations
22+
23+
# These also inherit from build
24+
query --keep_going
25+
26+
# Custom user overrides
27+
# https://docs.bazel.build/versions/master/best-practices.html#bazelrc
28+
try-import %workspace%/.bazelrc.user
29+
try-import %workspace%/user.bazelrc

.bazelversion

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

.circleci/.bazelrc

Lines changed: 0 additions & 17 deletions
This file was deleted.

.circleci/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# rules_ruby circleci Docker file.
33
#
4-
FROM ruby:2.7.0
4+
FROM ruby:2.7.1
55

66
# make Apt non-interactive
77
RUN echo 'APT::Get::Assume-Yes "true";' > /etc/apt/apt.conf.d/90circleci \

.circleci/config.yml

Lines changed: 1 addition & 6 deletions
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.7.0
8+
- image: bazelruby/ruby-2.7.1
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
@@ -19,7 +19,6 @@ jobs:
1919
- run:
2020
name: "Install ~/.bazelrc and run setup"
2121
command: |
22-
cp .circleci/.bazelrc ${HOME}
2322
/usr/bin/env bash bin/setup
2423
2524
- run:
@@ -40,7 +39,6 @@ jobs:
4039
- run:
4140
name: "Install ~/.bazelrc and run setup"
4241
command: |
43-
cp .circleci/.bazelrc ${HOME}
4442
/usr/bin/env bash bin/setup
4543
4644
- run:
@@ -57,7 +55,6 @@ jobs:
5755
- run:
5856
name: "Install ~/.bazelrc and run setup"
5957
command: |
60-
cp .circleci/.bazelrc ${HOME}
6158
/usr/bin/env bash bin/setup
6259
6360
- run:
@@ -74,7 +71,6 @@ jobs:
7471
- run:
7572
name: "Install ~/.bazelrc and run setup"
7673
command: |
77-
cp .circleci/.bazelrc ${HOME}
7874
/usr/bin/env bash bin/setup
7975
8076
- run:
@@ -91,7 +87,6 @@ jobs:
9187
- run:
9288
name: "Install ~/.bazelrc and run setup"
9389
command: |
94-
cp .circleci/.bazelrc ${HOME}
9590
/usr/bin/env bash bin/setup
9691
9792
- run:

.envrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,11 @@
22

33
PATH_add bin
44

5+
[[ -n $(command -V brew) ]] && {
6+
completion="$(brew --prefix)/etc/bash_completion"
7+
[[ -f "${completion}" ]] && {
8+
echo "Loading bash completion"
9+
source "${completion}"
10+
}
11+
}
12+

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@
44
**/vendor/bundle/**
55
**/.DS_Store
66
**/.vscode
7+
8+
.bazelrc.user
9+
user.bazelrc

.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.7.1

.rules_version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.2
1+
0.4.0

0 commit comments

Comments
 (0)