Skip to content

Instantly share code, notes, and snippets.

View stevepeak's full-sized avatar

Steve Peak stevepeak

View GitHub Profile
codecov:
token: uuid # Your private repository token
url: "http" # for Codecov Enterprise customers
slug: "owner/repo" # for Codecov Enterprise customers
branch: master # override the default branch
bot: username # set user whom will be the consumer of oauth requests
ci: # Custom CI domains if Codecov does not identify them automatically
- ci.domain.com
- !provider # ignore these providers when checking if CI passed
# ex. You may test on Travis, Circle, and AppVeyor, but only need
@stevepeak
stevepeak / output.md
Last active September 23, 2015 08:13

This extract is from an SSH from [this build][1] on a Java machine.

Below is how the path I'm hoping Circle will add. As demonstraged below when install a python package that has a cli it is not availalbe without appending its location.

# install codecov
ubuntu@box123:~$ pip install --user codecov
# it was already installed in my circle.yml build step
Requirement already satisfied (use --upgrade to upgrade): codecov in ./.local/lib/python2.7/site-packages
@stevepeak
stevepeak / main.js
Created September 10, 2015 20:17
How to check window before pageMod runs
var _meta = worker.window.document.querySelector('meta[property="og:site_name"]');
if (worker.window.location.hostname === "bitbucket.org" || (_meta && _meta.attributes.content.value === 'GitHub')) {
var data = require('sdk/self').data,
pageMod = require('sdk/page-mod'),
prefs = require('sdk/simple-prefs').prefs;
pageMod.PageMod({
include: '*',
contentScriptFile : [data.url('jquery-2.1.3.min.js'),
data.url('codecov.js')
@stevepeak
stevepeak / features.md
Last active August 29, 2015 14:25
quick notes on editing features with access_tokens

Overview

The user argument is required. It should the the Github username of the user whom will post the features for private repos. That user (if it's a bot) must grant Codecov private repo access to properly post status and comments.

Comment

curl -X POST https://codecov.io/gh/:owner/:repo/features/comment?access_token=:uuid-token \
     -d 'header=on&graph=off&diff=on&suggestions=on&user=:github-username'
"message": [
{
"severity": "info,warning,error",
"message": "string",
"start_line": "integar",
"start_column": "?integar",
"end_line": "?integar",
"end_column": "?integar"
}
]
  • Brainstorming education
  • Travel plans
  • File receipts into Xero
  • T-Shirts
  • Research bottle opener logos w @george
  • Buffer tweets
  • How to setup Codecov for #_language_ in 30 seconds
  • How @_company_ uses Codecov to _______
  • Learn how to use the top 5 features of Codecov in 30 seconds
  • Learn how to use the Codecov browser extension in @github
  • Learn how to use _feature_ to enhance your CI testing
  • Even with 15% code coverage: learn how Codecov can improve code quality and promote best coding practices.
  • 5 ways Codecov can make you a stronger programmer
    • visualize the impact of tests
    • provides quick overview to pull request changes
  • ensure tests are written and cover new features
  • How to setup Codecov for #_language_ in 30 seconds
  • How @_company_ uses Codecov to _______
  • Learn how to use the top 5 features of Codecov in 30 seconds
  • Learn how to use the Codecov browser extension in @github
  • Learn how to use _feature_ to enhance your CI testing
  • Even with 15% code coverage: learn how Codecov can improve code quality and promote best coding practices.
  • 5 ways Codecov can make you a stronger programmer
    • visualize the impact of tests
    • provides quick overview to pull request changes
  • ensure tests are written and cover new features
  • How to setup Codecov for #_language_ in 30 seconds
  • How @_company_ uses Codecov to _______
  • Learn how to use the top 5 features of Codecov in 30 seconds
  • Learn how to use the Codecov browser extension in @github
  • Learn how to use _feature_ to enhance your CI testing
  • Even with 15% code coverage: learn how Codecov can improve code quality and promote best coding practices.
  • 5 ways Codecov can make you a stronger programmer
    • visualize the impact of tests
    • provides quick overview to pull request changes
  • ensure tests are written and cover new features
  • How to setup Codecov for #_language_ in 30 seconds
  • How @_company_ uses Codecov to _______
  • Learn how to use the top 5 features of Codecov in 30 seconds
  • Learn how to use the Codecov browser extension in @github
  • Learn how to use _feature_ to enhance your CI testing
  • Even with 15% code coverage: learn how Codecov can improve code quality and promote best coding practices.
  • 5 ways Codecov can make you a stronger programmer
    • visualize the impact of tests
    • provides quick overview to pull request changes
  • ensure tests are written and cover new features