diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 3eb13cdb81..0000000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,77 +0,0 @@ -version: 2.1 - -# ======================= JOBS ======================= -jobs: - gapic-generator-java-tests: - working_directory: /tmp/ - environment: - TEST_REPORTS_DIR: ~/.cache/bazel - BAZEL_VERSION: 3.5.1 - PYTHON_VERSION: 3.5.2 - machine: true - steps: - - checkout: - path: gapic-generator-java - - attach_workspace: - at: workspace - - run: - name: Set Python version - command: | - pyenv global ${PYTHON_VERSION} - - run: - name: Install Bazel - command: | - wget https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel-${BAZEL_VERSION}-installer-linux-x86_64.sh -O bazel_installer.sh - chmod +x bazel_installer.sh - ./bazel_installer.sh --user - - run: - name: Make reports directory - command: | - mkdir -p ${TEST_REPORTS_DIR} - echo "Test reports will be stored in ${TEST_REPORTS_DIR}" - - run: - name: Run unit tests for gapic-generator-java - command: | - cd /tmp/gapic-generator-java - bazel --batch test $(bazel query "//src/test/..." | grep "Test$") --noshow_progress - find . -type f -regex ".*/bazel-testlogs/.*xml" -exec cp {} ${TEST_REPORTS_DIR} \; - - run: - name: Run integration tests for gapic-generator-java - command: | - cd /tmp/gapic-generator-java - # Check only the goldens, rely on the pre-commits for client library compilation tests. - # Otherwise, this would take too long. - bazel --batch test //test/integration:asset //test/integration:logging //test/integration:redis --noshow_progress - find . -type f -regex ".*/bazel-testlogs/.*xml" -exec cp {} ${TEST_REPORTS_DIR} \; - - store_test_results: - path: ~/.cache/bazel - 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 --batch build //:google_java_format_verification - license-header: - docker: - - image: circleci/golang:1.13 - working_directory: /home/circleci/workspace/gapic-generator-java - steps: - - checkout - - run: - name: License Header - command: | - go get -u github.com/google/addlicense - addlicense -c "Google LLC" -l apache -check $(find $PWD -type f -name '*.java') -# ======================= WORKFLOWS ======================= - -workflows: - version: 2 - run_tests: - jobs: - - gapic-generator-java-tests - - google-java-format - - license-header