pmd: run via bazel
@@ -84,27 +84,36 @@ cat <<EOF
- docker#${BATFISH_DOCKER_PLUGIN_VERSION}:
image: ${BATFISH_DOCKER_CI_BASE_IMAGE}
always-pull: true
- - label: ":mvn: PMD"
+EOF
+
+###### Ensure the code compiles with Bazel
+cat <<EOF
+ - label: ":bazel: Build"
depends_on:
- format
- template
- command: "mvn -f projects/pom.xml verify -Dpmd.skip=false"
+ command:
+ - "python3 -m virtualenv .venv"
+ - ". .venv/bin/activate"
+ - "bazel build -- //..."
plugins:
- docker#${BATFISH_DOCKER_PLUGIN_VERSION}:
image: ${BATFISH_DOCKER_CI_BASE_IMAGE}
always-pull: true
+ volumes:
+ - $HOME/.bazelrc:/home/batfish/.bazelrc
EOF
-###### Ensure the code still compiles with Bazel
+###### PMD
cat <<EOF
- - label: ":bazel: Bazel"
+ - label: ":bazel: PMD"
depends_on:
- format
- template
command:
- "python3 -m virtualenv .venv"
- ". .venv/bin/activate"
- - "bazel build -- //..."
+ - "bazel test --test_tag_filters=pmd_test -- //..."
plugins:
- docker#${BATFISH_DOCKER_PLUGIN_VERSION}:
image: ${BATFISH_DOCKER_CI_BASE_IMAGE}
