Unverified Commit ce1f8aaf authored by Edward Z. Yang's avatar Edward Z. Yang Committed by GitHub
Browse files

Push-based nightlies (#305)


Signed-off-by: default avatarEdward Z. Yang <ezyang@fb.com>
parent 02ce049c
...@@ -218,159 +218,260 @@ workflows: ...@@ -218,159 +218,260 @@ workflows:
python_version: "3.7" python_version: "3.7"
nightly: nightly:
triggers:
- schedule:
cron: "0 9 * * *"
filters:
branches:
only:
- master
jobs: jobs:
- circleci_consistency - circleci_consistency
- binary_linux_wheel: - binary_linux_wheel:
name: nightly_binary_linux_wheel_py2.7 name: nightly_binary_linux_wheel_py2.7
python_version: "2.7" python_version: "2.7"
filters:
branches:
only: nightly
- binary_wheel_upload: - binary_wheel_upload:
name: nightly_binary_linux_wheel_py2.7_upload name: nightly_binary_linux_wheel_py2.7_upload
context: org-member context: org-member
requires: requires:
- nightly_binary_linux_wheel_py2.7 - nightly_binary_linux_wheel_py2.7
filters:
branches:
only: nightly
- binary_linux_wheel: - binary_linux_wheel:
name: nightly_binary_linux_wheel_py2.7_unicode name: nightly_binary_linux_wheel_py2.7_unicode
python_version: "2.7" python_version: "2.7"
unicode_abi: "1" unicode_abi: "1"
filters:
branches:
only: nightly
- binary_wheel_upload: - binary_wheel_upload:
name: nightly_binary_linux_wheel_py2.7_unicode_upload name: nightly_binary_linux_wheel_py2.7_unicode_upload
context: org-member context: org-member
requires: requires:
- nightly_binary_linux_wheel_py2.7_unicode - nightly_binary_linux_wheel_py2.7_unicode
filters:
branches:
only: nightly
- binary_linux_wheel: - binary_linux_wheel:
name: nightly_binary_linux_wheel_py3.5 name: nightly_binary_linux_wheel_py3.5
python_version: "3.5" python_version: "3.5"
filters:
branches:
only: nightly
- binary_wheel_upload: - binary_wheel_upload:
name: nightly_binary_linux_wheel_py3.5_upload name: nightly_binary_linux_wheel_py3.5_upload
context: org-member context: org-member
requires: requires:
- nightly_binary_linux_wheel_py3.5 - nightly_binary_linux_wheel_py3.5
filters:
branches:
only: nightly
- binary_linux_wheel: - binary_linux_wheel:
name: nightly_binary_linux_wheel_py3.6 name: nightly_binary_linux_wheel_py3.6
python_version: "3.6" python_version: "3.6"
filters:
branches:
only: nightly
- binary_wheel_upload: - binary_wheel_upload:
name: nightly_binary_linux_wheel_py3.6_upload name: nightly_binary_linux_wheel_py3.6_upload
context: org-member context: org-member
requires: requires:
- nightly_binary_linux_wheel_py3.6 - nightly_binary_linux_wheel_py3.6
filters:
branches:
only: nightly
- binary_linux_wheel: - binary_linux_wheel:
name: nightly_binary_linux_wheel_py3.7 name: nightly_binary_linux_wheel_py3.7
python_version: "3.7" python_version: "3.7"
filters:
branches:
only: nightly
- binary_wheel_upload: - binary_wheel_upload:
name: nightly_binary_linux_wheel_py3.7_upload name: nightly_binary_linux_wheel_py3.7_upload
context: org-member context: org-member
requires: requires:
- nightly_binary_linux_wheel_py3.7 - nightly_binary_linux_wheel_py3.7
filters:
branches:
only: nightly
- binary_macos_wheel: - binary_macos_wheel:
name: nightly_binary_macos_wheel_py2.7 name: nightly_binary_macos_wheel_py2.7
python_version: "2.7" python_version: "2.7"
filters:
branches:
only: nightly
- binary_wheel_upload: - binary_wheel_upload:
name: nightly_binary_macos_wheel_py2.7_upload name: nightly_binary_macos_wheel_py2.7_upload
context: org-member context: org-member
requires: requires:
- nightly_binary_macos_wheel_py2.7 - nightly_binary_macos_wheel_py2.7
filters:
branches:
only: nightly
- binary_macos_wheel: - binary_macos_wheel:
name: nightly_binary_macos_wheel_py2.7_unicode name: nightly_binary_macos_wheel_py2.7_unicode
python_version: "2.7" python_version: "2.7"
unicode_abi: "1" unicode_abi: "1"
filters:
branches:
only: nightly
- binary_wheel_upload: - binary_wheel_upload:
name: nightly_binary_macos_wheel_py2.7_unicode_upload name: nightly_binary_macos_wheel_py2.7_unicode_upload
context: org-member context: org-member
requires: requires:
- nightly_binary_macos_wheel_py2.7_unicode - nightly_binary_macos_wheel_py2.7_unicode
filters:
branches:
only: nightly
- binary_macos_wheel: - binary_macos_wheel:
name: nightly_binary_macos_wheel_py3.5 name: nightly_binary_macos_wheel_py3.5
python_version: "3.5" python_version: "3.5"
filters:
branches:
only: nightly
- binary_wheel_upload: - binary_wheel_upload:
name: nightly_binary_macos_wheel_py3.5_upload name: nightly_binary_macos_wheel_py3.5_upload
context: org-member context: org-member
requires: requires:
- nightly_binary_macos_wheel_py3.5 - nightly_binary_macos_wheel_py3.5
filters:
branches:
only: nightly
- binary_macos_wheel: - binary_macos_wheel:
name: nightly_binary_macos_wheel_py3.6 name: nightly_binary_macos_wheel_py3.6
python_version: "3.6" python_version: "3.6"
filters:
branches:
only: nightly
- binary_wheel_upload: - binary_wheel_upload:
name: nightly_binary_macos_wheel_py3.6_upload name: nightly_binary_macos_wheel_py3.6_upload
context: org-member context: org-member
requires: requires:
- nightly_binary_macos_wheel_py3.6 - nightly_binary_macos_wheel_py3.6
filters:
branches:
only: nightly
- binary_macos_wheel: - binary_macos_wheel:
name: nightly_binary_macos_wheel_py3.7 name: nightly_binary_macos_wheel_py3.7
python_version: "3.7" python_version: "3.7"
filters:
branches:
only: nightly
- binary_wheel_upload: - binary_wheel_upload:
name: nightly_binary_macos_wheel_py3.7_upload name: nightly_binary_macos_wheel_py3.7_upload
context: org-member context: org-member
requires: requires:
- nightly_binary_macos_wheel_py3.7 - nightly_binary_macos_wheel_py3.7
filters:
branches:
only: nightly
- binary_linux_conda: - binary_linux_conda:
name: nightly_binary_linux_conda_py2.7 name: nightly_binary_linux_conda_py2.7
python_version: "2.7" python_version: "2.7"
filters:
branches:
only: nightly
- binary_conda_upload: - binary_conda_upload:
name: nightly_binary_linux_conda_py2.7_upload name: nightly_binary_linux_conda_py2.7_upload
context: org-member context: org-member
requires: requires:
- nightly_binary_linux_conda_py2.7 - nightly_binary_linux_conda_py2.7
filters:
branches:
only: nightly
- binary_linux_conda: - binary_linux_conda:
name: nightly_binary_linux_conda_py3.5 name: nightly_binary_linux_conda_py3.5
python_version: "3.5" python_version: "3.5"
filters:
branches:
only: nightly
- binary_conda_upload: - binary_conda_upload:
name: nightly_binary_linux_conda_py3.5_upload name: nightly_binary_linux_conda_py3.5_upload
context: org-member context: org-member
requires: requires:
- nightly_binary_linux_conda_py3.5 - nightly_binary_linux_conda_py3.5
filters:
branches:
only: nightly
- binary_linux_conda: - binary_linux_conda:
name: nightly_binary_linux_conda_py3.6 name: nightly_binary_linux_conda_py3.6
python_version: "3.6" python_version: "3.6"
filters:
branches:
only: nightly
- binary_conda_upload: - binary_conda_upload:
name: nightly_binary_linux_conda_py3.6_upload name: nightly_binary_linux_conda_py3.6_upload
context: org-member context: org-member
requires: requires:
- nightly_binary_linux_conda_py3.6 - nightly_binary_linux_conda_py3.6
filters:
branches:
only: nightly
- binary_linux_conda: - binary_linux_conda:
name: nightly_binary_linux_conda_py3.7 name: nightly_binary_linux_conda_py3.7
python_version: "3.7" python_version: "3.7"
filters:
branches:
only: nightly
- binary_conda_upload: - binary_conda_upload:
name: nightly_binary_linux_conda_py3.7_upload name: nightly_binary_linux_conda_py3.7_upload
context: org-member context: org-member
requires: requires:
- nightly_binary_linux_conda_py3.7 - nightly_binary_linux_conda_py3.7
filters:
branches:
only: nightly
- binary_macos_conda: - binary_macos_conda:
name: nightly_binary_macos_conda_py2.7 name: nightly_binary_macos_conda_py2.7
python_version: "2.7" python_version: "2.7"
filters:
branches:
only: nightly
- binary_conda_upload: - binary_conda_upload:
name: nightly_binary_macos_conda_py2.7_upload name: nightly_binary_macos_conda_py2.7_upload
context: org-member context: org-member
requires: requires:
- nightly_binary_macos_conda_py2.7 - nightly_binary_macos_conda_py2.7
filters:
branches:
only: nightly
- binary_macos_conda: - binary_macos_conda:
name: nightly_binary_macos_conda_py3.5 name: nightly_binary_macos_conda_py3.5
python_version: "3.5" python_version: "3.5"
filters:
branches:
only: nightly
- binary_conda_upload: - binary_conda_upload:
name: nightly_binary_macos_conda_py3.5_upload name: nightly_binary_macos_conda_py3.5_upload
context: org-member context: org-member
requires: requires:
- nightly_binary_macos_conda_py3.5 - nightly_binary_macos_conda_py3.5
filters:
branches:
only: nightly
- binary_macos_conda: - binary_macos_conda:
name: nightly_binary_macos_conda_py3.6 name: nightly_binary_macos_conda_py3.6
python_version: "3.6" python_version: "3.6"
filters:
branches:
only: nightly
- binary_conda_upload: - binary_conda_upload:
name: nightly_binary_macos_conda_py3.6_upload name: nightly_binary_macos_conda_py3.6_upload
context: org-member context: org-member
requires: requires:
- nightly_binary_macos_conda_py3.6 - nightly_binary_macos_conda_py3.6
filters:
branches:
only: nightly
- binary_macos_conda: - binary_macos_conda:
name: nightly_binary_macos_conda_py3.7 name: nightly_binary_macos_conda_py3.7
python_version: "3.7" python_version: "3.7"
filters:
branches:
only: nightly
- binary_conda_upload: - binary_conda_upload:
name: nightly_binary_macos_conda_py3.7_upload name: nightly_binary_macos_conda_py3.7_upload
context: org-member context: org-member
requires: requires:
- nightly_binary_macos_conda_py3.7 - nightly_binary_macos_conda_py3.7
\ No newline at end of file filters:
branches:
only: nightly
\ No newline at end of file
...@@ -156,13 +156,18 @@ jobs: ...@@ -156,13 +156,18 @@ jobs:
done done
{%- macro workflow(btype, os, python_version, unicode, prefix='', upload=False) %} {%- macro workflow(btype, os, python_version, unicode, prefix='', filter_branch=None, upload=False) %}
- binary_{{os}}_{{btype}}: - binary_{{os}}_{{btype}}:
name: {{prefix}}binary_{{os}}_{{btype}}_py{{python_version}}{{ "_unicode" if unicode }} name: {{prefix}}binary_{{os}}_{{btype}}_py{{python_version}}{{ "_unicode" if unicode }}
python_version: "{{python_version}}" python_version: "{{python_version}}"
{%- if unicode %} {%- if unicode %}
unicode_abi: "1" unicode_abi: "1"
{%- endif %} {%- endif %}
{%- if filter_branch %}
filters:
branches:
only: {{filter_branch}}
{%- endif %}
{%- if upload %} {%- if upload %}
- binary_{{btype}}_upload: - binary_{{btype}}_upload:
...@@ -170,15 +175,20 @@ jobs: ...@@ -170,15 +175,20 @@ jobs:
context: org-member context: org-member
requires: requires:
- {{prefix}}binary_{{os}}_{{btype}}_py{{python_version}}{{ "_unicode" if unicode }} - {{prefix}}binary_{{os}}_{{btype}}_py{{python_version}}{{ "_unicode" if unicode }}
{%- if filter_branch %}
filters:
branches:
only: {{filter_branch}}
{%- endif %}
{%- endif %} {%- endif %}
{%- endmacro %} {%- endmacro %}
{%- macro workflows(prefix='', upload=False) %} {%- macro workflows(prefix='', filter_branch=None, upload=False) %}
{%- for btype in ["wheel", "conda"] -%} {%- for btype in ["wheel", "conda"] -%}
{%- for os in ["linux", "macos"] -%} {%- for os in ["linux", "macos"] -%}
{%- for python_version in ["2.7", "3.5", "3.6", "3.7"] -%} {%- for python_version in ["2.7", "3.5", "3.6", "3.7"] -%}
{%- for unicode in ([False, True] if btype == "wheel" and python_version == "2.7" else [False]) -%} {%- for unicode in ([False, True] if btype == "wheel" and python_version == "2.7" else [False]) -%}
{{ workflow(btype, os, python_version, unicode, prefix=prefix, upload=upload) }} {{ workflow(btype, os, python_version, unicode, prefix=prefix, filter_branch=filter_branch, upload=upload) }}
{%- endfor -%} {%- endfor -%}
{%- endfor -%} {%- endfor -%}
{%- endfor -%} {%- endfor -%}
...@@ -193,14 +203,7 @@ workflows: ...@@ -193,14 +203,7 @@ workflows:
{{ workflows() }} {{ workflows() }}
nightly: nightly:
triggers:
- schedule:
cron: "0 9 * * *"
filters:
branches:
only:
- master
{%- endif %} {%- endif %}
jobs: jobs:
- circleci_consistency - circleci_consistency
{{ workflows(prefix="nightly_", upload=True) }} {{ workflows(prefix="nightly_", filter_branch="nightly", upload=True) }}
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