Skip to content

Commit

Permalink
feat: Jenkins is dead, long live travis-ci.com (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew authored and hacdias committed Mar 15, 2019
1 parent cde78e9 commit a30affa
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions src/badges.js
Expand Up @@ -19,7 +19,7 @@ const deps = (gh) => {
}

const ciTravis = async (gh) => {
const url = `https://travis-ci.org/${gh}.svg?branch=master`
const url = `https://travis-ci.com/${gh}.svg?branch=master`

if (await badgeExists(url)) {
return `[![Travis CI](${url})](https://travis-ci.org/${gh})`
Expand All @@ -28,18 +28,6 @@ const ciTravis = async (gh) => {
}
}

const ciJenkins = async (gh) => {
// Need to fix the path for jenkins links, as jenkins adds `/job/` between everything
const jenkinsPath = gh.split('/').join('/job/')
const badge = `https://ci.ipfs.team/buildStatus/icon?job=${gh}/master`

if (await badgeExists(badge)) {
return `[![jenkins](${badge})](https://ci.ipfs.team/job/${jenkinsPath}/job/master/)`
} else {
return 'N/A'
}
}

const coverage = (gh) => {
return `[![codecov](https://codecov.io/gh/${gh}/branch/master/graph/badge.svg)](https://codecov.io/gh/${gh})`
}
Expand Down Expand Up @@ -70,8 +58,7 @@ module.exports = {
Name: name,
Version: npmVersion,
Deps: deps,
CI: ciJenkins,
'CI/Jenkins': ciJenkins,
CI: ciTravis,
'CI/Travis': ciTravis,
'Lead Maintainer': leadMaintainer,
Coverage: coverage,
Expand Down

0 comments on commit a30affa

Please sign in to comment.