Unverified Commit ef6d6c47 authored by Francisco Massa's avatar Francisco Massa Committed by GitHub
Browse files

Make CircleCI checkout merge commit (#1344)

* Set block style serialization in yaml

* Add new checkout command

* Put on a different branch name
parent d4392a85
......@@ -9,6 +9,18 @@ version: 2.1
orbs:
win: circleci/windows@1.0.0
commands:
checkout_merge:
description: "checkout merge branch"
steps:
- checkout
- run:
name: Checkout merge branch
command: |
set -ex
git fetch --force origin ${CIRCLE_BRANCH}/merge:merged/${CIRCLE_BRANCH}
git checkout "merged/$CIRCLE_BRANCH"
binary_common: &binary_common
parameters:
# Edit these defaults to do a release`
......@@ -60,7 +72,7 @@ jobs:
- image: << parameters.wheel_docker_image >>
resource_class: 2xlarge+
steps:
- checkout
- checkout_merge
- run: packaging/build_wheel.sh
- store_artifacts:
path: dist
......@@ -75,7 +87,7 @@ jobs:
- image: "soumith/conda-cuda"
resource_class: 2xlarge+
steps:
- checkout
- checkout_merge
- run: packaging/build_conda.sh
- store_artifacts:
path: /opt/conda/conda-bld/linux-64
......@@ -90,7 +102,7 @@ jobs:
image: ubuntu-1604:201903-01
resource_class: gpu.medium
steps:
- checkout
- checkout_merge
- run:
name: Setup environment
command: |
......@@ -159,7 +171,7 @@ jobs:
name: win/vs2019
shell: bash.exe
steps:
- checkout
- checkout_merge
- run:
command: |
choco install miniconda3
......@@ -173,7 +185,7 @@ jobs:
macos:
xcode: "9.0"
steps:
- checkout
- checkout_merge
- run:
# Cannot easily deduplicate this as source'ing activate
# will set environment variables which we need to propagate
......@@ -195,7 +207,7 @@ jobs:
macos:
xcode: "9.0"
steps:
- checkout
- checkout_merge
- run:
command: |
curl -o conda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
......
......@@ -9,6 +9,18 @@ version: 2.1
orbs:
win: circleci/windows@1.0.0
commands:
checkout_merge:
description: "checkout merge branch"
steps:
- checkout
- run:
name: Checkout merge branch
command: |
set -ex
git fetch --force origin ${CIRCLE_BRANCH}/merge:merged/${CIRCLE_BRANCH}
git checkout "merged/$CIRCLE_BRANCH"
binary_common: &binary_common
parameters:
# Edit these defaults to do a release`
......@@ -60,7 +72,7 @@ jobs:
- image: << parameters.wheel_docker_image >>
resource_class: 2xlarge+
steps:
- checkout
- checkout_merge
- run: packaging/build_wheel.sh
- store_artifacts:
path: dist
......@@ -75,7 +87,7 @@ jobs:
- image: "soumith/conda-cuda"
resource_class: 2xlarge+
steps:
- checkout
- checkout_merge
- run: packaging/build_conda.sh
- store_artifacts:
path: /opt/conda/conda-bld/linux-64
......@@ -90,7 +102,7 @@ jobs:
image: ubuntu-1604:201903-01
resource_class: gpu.medium
steps:
- checkout
- checkout_merge
- run:
name: Setup environment
command: |
......@@ -159,7 +171,7 @@ jobs:
name: win/vs2019
shell: bash.exe
steps:
- checkout
- checkout_merge
- run:
command: |
choco install miniconda3
......@@ -173,7 +185,7 @@ jobs:
macos:
xcode: "9.0"
steps:
- checkout
- checkout_merge
- run:
# Cannot easily deduplicate this as source'ing activate
# will set environment variables which we need to propagate
......@@ -195,7 +207,7 @@ jobs:
macos:
xcode: "9.0"
steps:
- checkout
- checkout_merge
- run:
command: |
curl -o conda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
......
......@@ -76,7 +76,8 @@ def generate_upload_workflow(base_workflow_name, os_type, btype, cu_version):
def indent(indentation, data_list):
return ("\n" + " " * indentation).join(yaml.dump(data_list).splitlines())
return ("\n" + " " * indentation).join(
yaml.dump(data_list, default_flow_style=False).splitlines())
if __name__ == "__main__":
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment