Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

codecov

Package Overview
Dependencies
Maintainers
3
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codecov - npm Package Compare versions

Comparing version 3.5.0 to 3.6.0

CODE_OF_CONDUCT.md

4

lib/detect.js

@@ -13,6 +13,8 @@ var services = {

semaphore: require('./services/semaphore'),
semaphore2x: require('./services/semaphore2x'),
snap: require('./services/snap'),
gitlab: require('./services/gitlab'),
heroku: require('./services/heroku'),
teamcity: require('./services/teamcity')
teamcity: require('./services/teamcity'),
codebuild: require('./services/codebuild'),
}

@@ -19,0 +21,0 @@

module.exports = {
detect: function() {
return !!process.env.SEMAPHORE
return !!process.env.SEMAPHORE && !!process.env.SEMAPHORE_REPO_SLUG
},
configuration: function() {
console.log(' Semaphore CI Detected')
console.log(' Semaphore 1.x CI Detected')
return {
service: 'semaphore',
service: 'semaphore1x',
build:

@@ -11,0 +11,0 @@ process.env.SEMAPHORE_BUILD_NUMBER +

{
"name": "codecov",
"version": "3.5.0",
"version": "3.6.0",
"description": "Uploading report to Codecov: https://codecov.io",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -108,1 +108,2 @@ # Codecov NodeJS Uploader

- v3.5.0 Added TeamCity support
- v3.6.0 Added AWS CodeBuild and Semaphore2
var semaphore = require('../../lib/services/semaphore')
describe('Semaphore CI Provider', function() {
var OLD_ENV = process.env
beforeEach(function() {
process.env = Object.assign({}, OLD_ENV)
})
afterEach(function() {
process.env = Object.assign({}, OLD_ENV)
})
it('can detect semaphore', function() {
process.env.SEMAPHORE = 'true'
process.env.SEMAPHORE_REPO_SLUG = 'owner/repo'
expect(semaphore.detect()).toBe(true)
})
it('does not detect semaphore 2.x', function() {
process.env.SEMAPHORE = 'true'
process.env.SEMAPHORE_WORKFLOW_ID = '65c9bb1c-aeb6-41f0-b8d9-6fa177241cdf'
expect(semaphore.detect()).toBe(false)
})
it('can get semaphore env info', function() {

@@ -16,3 +33,3 @@ process.env.SEMAPHORE_BUILD_NUMBER = '1234'

expect(semaphore.configuration()).toEqual({
service: 'semaphore',
service: 'semaphore1x',
commit: '5678',

@@ -19,0 +36,0 @@ build: '1234.1',

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc