netlify-plugin-qawolf
Advanced tools
Comparing version 0.0.5 to 0.0.6
{ | ||
"name": "netlify-plugin-qawolf", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Netlify Build plugin to run QA Wolf tests on deployments", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
const retry = require('async-retry') | ||
const axios = require('axios') | ||
const qawolfTitle = 'qawolf' | ||
const qawolfTitle = '🐺 qawolf' | ||
const qaWolfUrl = process.env.QAWOLF_URL || 'https://www.qawolf.com' | ||
@@ -78,14 +78,5 @@ | ||
const runQaWolfTests = async (netlifyEvent, utils) => { | ||
if (process.env.PULL_REQUEST === 'true') { | ||
console.log('SHOW', utils.status.show) | ||
utils.status.show({ title: 'TEST', text: 'TEXT', summary: 'HERE' }) | ||
} | ||
const skip = process.env.QAWOLF_SKIP | ||
if (skip && ['1', 'true', 't'].includes(skip.toLowerCase())) { | ||
utils.status.show({ | ||
summary: 'skip', | ||
text: `QAWOLF_SKIP=${skip}`, | ||
title: qawolfTitle, | ||
}) | ||
utils.status.show({ summary: 'skip', text: `QAWOLF_SKIP=${skip}` }) | ||
return | ||
@@ -122,6 +113,7 @@ } | ||
} else { | ||
utils.status.show({ summary, text, title: qawolfTitle }) | ||
utils.status.show({ summary, text }) | ||
} | ||
utils.status.show({ summary: 'complete', text: '🐺', title: qawolfTitle }) | ||
utils.status.show({ summary: 'complete', text: '🐺' }) | ||
console.log(`${qawolfTitle}: complete`) | ||
} catch (error) { | ||
@@ -128,0 +120,0 @@ const message = `${qawolfTitle} failed with error ${error.message}` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18
6848
115