Code Monkey home page Code Monkey logo

Comments (7)

jpsider avatar jpsider commented on May 4, 2024 1

ok, I'm an idiot. Sorry for wasting your time! I did not encrypt the key correctly so it was set-environment was not including it. :-(

so sorry.

from coveralls.

jpsider avatar jpsider commented on May 4, 2024 1

https://coveralls.io/builds/18255336

from coveralls.

dahlbyk avatar dahlbyk commented on May 4, 2024

I see you copied the secure value into module.build.ps1; that won't work.

Inside Task Publish_Unit_Tests_Coverage, before calling Format-Coverage, try adding something like this:

      if (!(Test-Path Env:Coveralls_Key)) {
          Write-Host 'Coveralls_Key not set! (Expected on PR builds.)'
          return;
      }

If you don't hit that, at least you know the environment is configured correctly.

Also, tip: use -BranchName $ENV:APPVEYOR_REPO_BRANCH instead of hard-coding master.

from coveralls.

jpsider avatar jpsider commented on May 4, 2024

Hmmmm.
Made the changes! I think some of those were from when I was manually trying to run it.

Here is what I get:
Code coverage report: Covered 100.00 % of 79 analyzed Commands in 6 Files. Coveralls_Key not set! (Expected on PR Builds.)

from coveralls.

jpsider avatar jpsider commented on May 4, 2024

This setting is kicking my @$$
So I added this stuff:
$TestResults = Invoke-Pester -Path Tests\*\* -CodeCoverage $ModuleName\*\* -PassThru -Tag Build -ExcludeTag Slow if (!(Test-Path ENV:Coveralls_Key)) { Write-Host 'Coveralls_Key not set! (Expected on PR Builds.)' Write-Host "Coveralls_Key: $ENV:Coveralls_Key" write-Host "2ndKey try: $Settings.CoverallsKey" Write-Host "Branch: $ENV:APPVEYOR_REPO_BRANCH" Write-host "NugetKey: $ENV:NugetApiKey" return; }
Code coverage report:
Covered 100.00 % of 79 analyzed Commands in 6 Files.
Coveralls_Key not set! (Expected on PR Builds.)
Coveralls_Key:
2ndKey try: System.Collections.Hashtable.CoverallsKey
Branch: master
NugetKey: 3193b215-e489-4e86-80e5-b74a27a6e024

Somewhere the Nuget Key is getting populated... but not the CoverallsKey

from coveralls.

dahlbyk avatar dahlbyk commented on May 4, 2024

NugetKey: 3193b215...

Change your NugetKey now!

Your debugging Write-Hosts have a few issues:

Write-Host "Coveralls_Key: $ENV:Coveralls_Key"             # missing _
Write-Host "2ndKey try: $($Script:Settings.CoverallsKey)"  # need sub-expression

You're also missing a $ before ENV: in -CoverallsApiToken ENV:Coveralls_Key.

That said, the Test-Path is still failing so it seems like the variable's still not coming through. Try adding gci env: | % Name somewhere, to see exactly which environment variables you have access to?

from coveralls.

jpsider avatar jpsider commented on May 4, 2024

Wait... you didnt like my key? lol
No dice, for some reason its not available in the environment.
Code coverage report:
Covered 100.00 % of 79 analyzed Commands in 6 Files.
Coveralls_Key not set! (Expected on PR Builds.)
Coveralls_Key:
2ndKey try:
Branch: master
ALLUSERSPROFILE
APPDATA
APPVEYOR
APPVEYOR_ACCOUNT_NAME
APPVEYOR_API_URL
APPVEYOR_BUILD_FOLDER
APPVEYOR_BUILD_ID
APPVEYOR_BUILD_NUMBER
APPVEYOR_BUILD_VERSION
APPVEYOR_BUILD_WORKER_IMAGE
APPVEYOR_JOB_ID
APPVEYOR_JOB_NUMBER
APPVEYOR_PROJECT_ID
APPVEYOR_PROJECT_NAME
APPVEYOR_PROJECT_SLUG
APPVEYOR_REPO_BRANCH
APPVEYOR_REPO_COMMIT
APPVEYOR_REPO_COMMIT_AUTHOR
APPVEYOR_REPO_COMMIT_AUTHOR_EMAIL
APPVEYOR_REPO_COMMIT_MESSAGE
APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED
APPVEYOR_REPO_COMMIT_TIMESTAMP
APPVEYOR_REPO_NAME
APPVEYOR_REPO_PROVIDER
APPVEYOR_REPO_SCM
APPVEYOR_REPO_TAG
APPVEYOR_URL
APR_ICONV_PATH
AVVM_DOWNLOAD_URL
BHBranchName
BHBuildNumber
BHBuildOutput
BHBuildSystem
BHCommitMessage
BHModulePath
BHProjectName
BHProjectPath
BHPSModuleManifest
BHPSModulePath
ChocolateyInstall
ChocolateyLastPathUpdate
CI
CLOUDSDK_PYTHON
CodeContractsInstallDir
CommonProgramFiles
CommonProgramFiles(x86)
CommonProgramW6432
COMPUTERNAME
ComSpec
DXSDK_DIR
EnableNuGetPackageRestore
ERLANG_HOME
FP_NO_HOST_CHECK
GIT_LFS_PATH
GOROOT
HOMEDRIVE
HOMEPATH
JAVA_HOME
lastexitcode
LOCALAPPDATA
LOGONSERVER
M2_HOME
MAVEN_HOME
MSYS2_PATH_TYPE
NugetApiKey
NUMBER_OF_PROCESSORS
OPENSSL_CONF
OS
Path
PATHEXT
PROCESSOR_ARCHITECTURE
PROCESSOR_IDENTIFIER
PROCESSOR_LEVEL
PROCESSOR_REVISION
ProgramData
ProgramFiles
ProgramFiles(x86)
ProgramW6432
PROMPT
PSModulePath
PUBLIC
SESSIONNAME
SystemDrive
SystemRoot
TEMP
TMP
USERDOMAIN
USERDOMAIN_ROAMINGPROFILE
USERNAME
USERPROFILE
VS100COMNTOOLS
VS110COMNTOOLS
VS120COMNTOOLS
VS140COMNTOOLS
VS90COMNTOOLS
VSSDK120Install
VSSDK140Install
windir
WIX
xunit20

from coveralls.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.