Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move build status and version info badges near the top of the README #390

Merged
merged 1 commit into from
Nov 27, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 29 additions & 29 deletions conda_smithy/templates/README.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,35 @@ Summary: {{ package.meta.about.summary }}

{% if package.meta.about.description %}{{ package.meta.about.description }}{% endif %}

Current build status
====================
{%- set appveyor_url_name = github.repo_name.replace('_', '-').replace('.', '-') %}

{%- set disabled_badge_commit = "90845bba35bec53edac7a16638aa4d77217a3713" %}
{%- set disabled_badge_path = "conda_smithy/static/disabled.svg" %}
{%- set disabled_badge_url = "https://cdn.rawgit.com/conda-forge/conda-smithy/%s/%s"|format(disabled_badge_commit, disabled_badge_path) %}
{# #}
{%- if circle.enabled %}
Linux: [![Circle CI](https://circleci.com/gh/{{ github.user_or_org }}/{{ github.repo_name }}.svg?style=shield)](https://circleci.com/gh/{{ github.user_or_org }}/{{ github.repo_name }})
{%- else %}
Linux: ![]({{ disabled_badge_url }})
{%- endif %}
{%- if travis.enabled %}
OSX: [![TravisCI](https://travis-ci.org/{{ github.user_or_org }}/{{ github.repo_name }}.svg?branch=master)](https://travis-ci.org/{{ github.user_or_org }}/{{ github.repo_name }})
{%- else %}
OSX: ![]({{ disabled_badge_url }})
{%- endif %}
{%- if appveyor.enabled %}
Windows: [![AppVeyor](https://ci.appveyor.com/api/projects/status/github/{{ github.user_or_org }}/{{ github.repo_name }}?svg=True)](https://ci.appveyor.com/project/{{ github.user_or_org }}/{{ appveyor_url_name }}/branch/master)
{%- else %}
Windows: ![]({{ disabled_badge_url }})
{%- endif %}

Current release info
====================
Version: [![Anaconda-Server Badge](https://anaconda.org/{{ channel_name }}/{{ package.name() }}/badges/version.svg)](https://anaconda.org/{{ channel_name }}/{{ package.name() }})
Downloads: [![Anaconda-Server Badge](https://anaconda.org/{{ channel_name }}/{{ package.name() }}/badges/downloads.svg)](https://anaconda.org/{{ channel_name }}/{{ package.name() }})

Installing {{ package.name() }}
==========={{ '=' * package.name()|length }}

Expand Down Expand Up @@ -70,35 +99,6 @@ Terminology
produce the finished article (built conda distributions)
{%- endif %}

Current build status
====================
{%- set appveyor_url_name = github.repo_name.replace('_', '-').replace('.', '-') %}

{%- set disabled_badge_commit = "90845bba35bec53edac7a16638aa4d77217a3713" %}
{%- set disabled_badge_path = "conda_smithy/static/disabled.svg" %}
{%- set disabled_badge_url = "https://cdn.rawgit.com/conda-forge/conda-smithy/%s/%s"|format(disabled_badge_commit, disabled_badge_path) %}
{# #}
{%- if circle.enabled %}
Linux: [![Circle CI](https://circleci.com/gh/{{ github.user_or_org }}/{{ github.repo_name }}.svg?style=shield)](https://circleci.com/gh/{{ github.user_or_org }}/{{ github.repo_name }})
{%- else %}
Linux: ![]({{ disabled_badge_url }})
{%- endif %}
{%- if travis.enabled %}
OSX: [![TravisCI](https://travis-ci.org/{{ github.user_or_org }}/{{ github.repo_name }}.svg?branch=master)](https://travis-ci.org/{{ github.user_or_org }}/{{ github.repo_name }})
{%- else %}
OSX: ![]({{ disabled_badge_url }})
{%- endif %}
{%- if appveyor.enabled %}
Windows: [![AppVeyor](https://ci.appveyor.com/api/projects/status/github/{{ github.user_or_org }}/{{ github.repo_name }}?svg=True)](https://ci.appveyor.com/project/{{ github.user_or_org }}/{{ appveyor_url_name }}/branch/master)
{%- else %}
Windows: ![]({{ disabled_badge_url }})
{%- endif %}

Current release info
====================
Version: [![Anaconda-Server Badge](https://anaconda.org/{{ channel_name }}/{{ package.name() }}/badges/version.svg)](https://anaconda.org/{{ channel_name }}/{{ package.name() }})
Downloads: [![Anaconda-Server Badge](https://anaconda.org/{{ channel_name }}/{{ package.name() }}/badges/downloads.svg)](https://anaconda.org/{{ channel_name }}/{{ package.name() }})


Updating {{ package.name() }}-feedstock
========={{ '=' * package.name()|length }}==========
Expand Down