From 252583f5e23e512c4a8e0d3318c4af7740ddd075 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Thu, 5 Mar 2020 02:59:32 -0500 Subject: [PATCH 1/2] Start using CircleCI 2.1 pipelines. --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ee3a71d85981..1314f2f97396 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,7 +1,7 @@ # Circle CI configuration file # https://circleci.com/docs/ -version: 2 +version: 2.1 ########################################### From b8892f127f15dad3203fa5121dd0141fe8b64c37 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Thu, 5 Mar 2020 03:02:52 -0500 Subject: [PATCH 2/2] ci: Use CircleCI artifacts redirector for doc links. CircleCI changed their artifact layout, so our printed link in the build log no longer works. Instead of figuring out how to fix it, switch to a GitHub Action that is able to post the link as a PR status. This is easier to find, and probably easier for them to keep up-to-date. --- .circleci/config.yml | 12 ------------ .github/workflows/circleci.yml | 12 ++++++++++++ 2 files changed, 12 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/circleci.yml diff --git a/.circleci/config.yml b/.circleci/config.yml index 1314f2f97396..28c557f12176 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -115,10 +115,6 @@ jobs: - store_artifacts: path: doc/build/html - - run: - name: "Built documentation is available at:" - command: echo "${CIRCLE_BUILD_URL}/artifacts/${CIRCLE_NODE_INDEX}/${CIRCLE_WORKING_DIRECTORY/#\~/$HOME}/doc/build/html/index.html" - docs-python37: docker: - image: circleci/python:3.7 @@ -141,10 +137,6 @@ jobs: - store_artifacts: path: doc/build/html - - run: - name: "Built documentation is available at:" - command: echo "${CIRCLE_BUILD_URL}/artifacts/${CIRCLE_NODE_INDEX}/${CIRCLE_WORKING_DIRECTORY/#\~/$HOME}/doc/build/html/index.html" - docs-python38: docker: - image: circleci/python:3.8 @@ -167,10 +159,6 @@ jobs: - store_artifacts: path: doc/build/html - - run: - name: "Built documentation is available at:" - command: echo "${CIRCLE_BUILD_URL}/artifacts/${CIRCLE_NODE_INDEX}/${CIRCLE_WORKING_DIRECTORY/#\~/$HOME}/doc/build/html/index.html" - - add_ssh_keys: fingerprints: - "78:13:59:08:61:a9:e5:09:af:df:3a:d8:89:c2:84:c0" diff --git a/.github/workflows/circleci.yml b/.github/workflows/circleci.yml new file mode 100644 index 000000000000..f11792486640 --- /dev/null +++ b/.github/workflows/circleci.yml @@ -0,0 +1,12 @@ +on: [status] +jobs: + circleci_artifacts_redirector_job: + runs-on: ubuntu-latest + name: Run CircleCI artifacts redirector + steps: + - name: GitHub Action step + uses: larsoner/circleci-artifacts-redirector-action@master + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + artifact-path: 0/doc/build/html/index.html + circleci-jobs: docs-python36,docs-python37,docs-python38