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