-
Notifications
You must be signed in to change notification settings - Fork 59
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 #2 from googleapis/circleci-project-setup
[ggj][ci] Add builder and linter checks
- Loading branch information
Showing
2 changed files
with
31 additions
and
11 deletions.
There are no files selected for viewing
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,13 +1,33 @@ | ||
# Use the latest 2.1 version of CircleCI pipeline process engine. See: https://circleci.com/docs/2.0/configuration-reference | ||
version: 2.1 | ||
# Use a package of configuration called an orb. | ||
orbs: | ||
# Declare a dependency on the welcome-orb | ||
welcome: circleci/welcome-orb@0.4.1 | ||
# Orchestrate or schedule a set of jobs | ||
|
||
# ======================= JOBS ======================= | ||
jobs: | ||
gapic-generator-java-tests: | ||
docker: | ||
- image: l.gcr.io/google/bazel | ||
working_directory: /home/circleci/project/gapic-generator-java | ||
steps: | ||
- checkout | ||
- run: | ||
name: Builder | ||
command: | | ||
bazel build //... | ||
google-java-format: | ||
docker: | ||
- image: l.gcr.io/google/bazel | ||
working_directory: /home/circleci/workspace/gapic-generator-java | ||
steps: | ||
- checkout | ||
- run: | ||
name: Java Linter | ||
command: | | ||
bazel build //:google_java_format_verification | ||
# ======================= WORKFLOWS ======================= | ||
|
||
workflows: | ||
# Name the workflow "welcome" | ||
welcome: | ||
# Run the welcome/run job in its own container | ||
version: 2 | ||
run_tests: | ||
jobs: | ||
- welcome/run | ||
- gapic-generator-java-tests | ||
- google-java-format |
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