-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathconfig.yml
More file actions
108 lines (86 loc) · 2.6 KB
/
config.yml
File metadata and controls
108 lines (86 loc) · 2.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
version: 2.1
jobs:
rubocop: &bazel_defaults
working_directory: /home/circleci/repo
resource_class: medium
docker:
- image: bazelruby/ruby-3.1.2
environment:
PATH: "/usr/local/bin:/usr/bin:/sbin:/opt/bin:/home/circleci/repo/bin:/bin:/sbin:/usr/sbin"
BUNDLE_PATH: /home/circleci/.bundle_cache
BAZEL_OPTS: "--host_jvm_args=-Xmx500m --host_jvm_args=-Xms500m"
BAZEL_BUILD_OPTS: "--curses=no --verbose_failures --jobs 10"
BAZEL_TEST_OPTS: "--verbose_failures --test_output=streamed --test_verbose_timeout_warnings "
steps:
- checkout
- run:
name: "Install ~/.bazelrc and run setup"
command: |
/usr/bin/env bash bin/setup
- run:
name: Install Bundler
command: |
gem install bundler:2.2.28 --no-doc
bundle install --jobs=4 --retry=3 --path ${BUNDLE_PATH}
- run:
name: "Rubocop Style Check"
command: bundle exec rubocop -E -P
bazel_build_workspace:
<<: *bazel_defaults
steps:
- checkout
- run:
name: "Install ~/.bazelrc and run setup"
command: |
/usr/bin/env bash bin/setup
- run:
name: "Bazel Build & Test Workspace"
command: |
/usr/bin/env bash bin/test-suite workspace
bazel_example_script:
<<: *bazel_defaults
steps:
- checkout
- run:
name: "Install ~/.bazelrc and run setup"
command: |
/usr/bin/env bash bin/setup
- run:
name: "Bazel Build & Test Example"
command: |
/usr/bin/env bash bin/test-suite simple-script
bazel_example_gem:
<<: *bazel_defaults
steps:
- checkout
- run:
name: "Install ~/.bazelrc and run setup"
command: |
/usr/bin/env bash bin/setup
- run:
name: "Bazel Build & Test Example"
command: |
/usr/bin/env bash bin/test-suite example-gem
buildifier:
<<: *bazel_defaults
steps:
- checkout
- run:
name: "Install ~/.bazelrc and run setup"
command: |
/usr/bin/env bash bin/setup
- run:
name: "Bazel Buildifier Build"
command: |
bazel ${BAZEL_OPTS} build ${BAZEL_BUILD_OPTS} :buildifier-check
- run:
name: "Bazel Buildifier Run"
command: |
bazel ${BAZEL_OPTS} run ${BAZEL_BUILD_OPTS} :buildifier-check
workflows:
rules_ruby:
jobs:
- bazel_build_workspace
- bazel_example_gem
- bazel_example_script
- buildifier