Граф коммитов

108 Коммитов

Автор SHA1 Сообщение Дата
Andrea Spadaccini 1c75b1d14e Make sure that Pester 4 is present
Windows Powershell bundles an old version (3.something) which does not
support the modern Pester syntax.
2019-08-02 15:31:17 +01:00
Andrea Spadaccini 496e30214a Improve load error logging
Add some verbose logging for type loading
2019-08-02 15:31:17 +01:00
Andrea Spadaccini 66318951d5 Install Pester only if it's not found
Find pester among available modules
2019-08-02 15:31:17 +01:00
Andrea Spadaccini b7cb7ab537 Remove todo about .NET standard 2.0
NJSonSchema depends on Newtonsoft.json 9, which does not
support .NET standard 1.0
2019-08-02 15:31:17 +01:00
Andrea Spadaccini 3c111de42b Do not rely on versioned paths when importing deps
This will remove the need to keep in sync the version in the psm1 with the
version in the .csproj.

Unfortunately, this is the best way I know of fixing issue #8.

There seems to be no automated way of downloading dependencies when
running Install-Module, so it's best to put DLLs inside the package itself.

Fixes #8
2019-08-02 15:31:17 +01:00
Andrea Spadaccini daf61911cf Explain relationship to similar projects 2019-07-31 12:11:14 +01:00
Andrea Spadaccini 0f60efef2c Test CI exclusion
Dummy change to README (excluded from CI) and to build.ps1 (not
excluded from CI) to make sure this triggers a CI run.
2019-07-31 10:14:26 +01:00
Andrea Spadaccini 089b72a3f4 Simple README change to test CI exclusion 2019-07-31 10:11:34 +01:00
Andrea Spadaccini b9b1ddeaf8 Exclude README, examples and .gitignore from CI
Not sure how this will behave for commits that contain, for example,
a code change and a README change. Will test it.
2019-07-31 10:08:42 +01:00
Andrea Spadaccini 1aadfd94b4
Put all shields on one line 2019-07-31 08:31:46 +01:00
Andrea Spadaccini 6cc2e31e2e
Add supported platforms to README.md 2019-07-31 08:31:18 +01:00
Andrea Spadaccini 6ed48bff01
Add installation notes from README 2019-07-31 08:28:09 +01:00
Andrea Spadaccini 7b36bd2bee Improve readability of example. 2019-07-30 17:47:56 +01:00
Andrea Spadaccini 2f432930b7
Use JS syntax highlighting for examples 2019-07-30 16:55:47 +01:00
Andrea Spadaccini 5253a4bbda Fix typo in README.md 2019-07-30 16:48:20 +01:00
Andrea Spadaccini 33732450fe Fix spacing and mention more examples 2019-07-30 16:46:30 +01:00
Andrea Spadaccini d03f77c76c Add a simple example
Fixes #5
2019-07-30 16:45:07 +01:00
Andrea Spadaccini 885c8e7258 Add a script to publish to PSGallery 2019-07-30 16:24:09 +01:00
Andrea Spadaccini 3d94cbc62c Add package name to build directory
This is required to make Publish-Module work.
2019-07-30 16:24:03 +01:00
Andrea Spadaccini 6614d40a7e
Add PowerShell Gallery shield 2019-07-30 16:19:34 +01:00
Andrea Spadaccini 238c654d6a Add a very simple "build" script 2019-07-30 14:29:42 +01:00
Andrea Spadaccini 731c3286b5 Add test for psd1 integrity 2019-07-29 18:54:45 +01:00
Andrea Spadaccini 610f09622d Actually commit psd1 file
:)
2019-07-29 18:52:14 +01:00
Andrea Spadaccini 9a7f465f26 Create module definition (psd1)
Work towards the resolution of #2 (Publish the script on the PowerShell
Gallery)
2019-07-29 18:47:06 +01:00
Andrea Spadaccini d8c467a2d7 Move tests and related helper in the test dir 2019-07-29 17:31:07 +01:00
Andrea Spadaccini 1980f43b66 Move tools for ci/cd in the tools directory 2019-07-29 17:26:22 +01:00
Andrea Spadaccini 6e656a3e7e Re-enable tests for all platforms
Also remove restore.ps1 debug prints for PowerShell Core tests.
2019-07-29 16:43:30 +01:00
Andrea Spadaccini a7489942e6 Remove debug prints in run-tests.ps1 2019-07-29 16:42:48 +01:00
Andrea Spadaccini 34497bedb0 Use lowercase package names
Both Windows and Mac OS X have case insensitive file systems, Linux is
obviously less forgiving.
2019-07-29 16:40:56 +01:00
Andrea Spadaccini 4906a7f2eb List all files in External
Don't limit depth, need a full list of files.
2019-07-29 16:38:28 +01:00
Andrea Spadaccini df7c3a08ad List files in External before testing
Still trying to understand what's wrong with Linux builds.
2019-07-29 16:35:57 +01:00
Andrea Spadaccini eac9c0d70d Actually create paths before testing them
Also normalize paths via Join-Path.
2019-07-29 16:32:47 +01:00
Andrea Spadaccini a58222527d Temporarily run only Linux tests
This is to troubleshoot the Linux failures, will revert as soon as the
problem with Linux tests is found and fixed
2019-07-29 16:23:42 +01:00
Andrea Spadaccini fd224be047 Test paths before using them 2019-07-29 16:22:50 +01:00
Andrea Spadaccini 90076b3ec0 Add more diagnostic to loading JSON libs/schema 2019-07-29 16:09:02 +01:00
Andrea Spadaccini cd9e802205 Pass restore.ps1 flag via arguments 2019-07-29 15:39:00 +01:00
Andrea Spadaccini edd1fc0fc1 List all restored files for PowerShell Core builds
Attempting to troubleshoot failed builds on Linux.
2019-07-29 15:37:19 +01:00
Andrea Spadaccini 32484aeff8 Fix tests under PowerShell Core 2019-07-29 14:43:57 +01:00
Andrea Spadaccini f62b47b3c0 Test on Windows PowerShell and Core 2019-07-29 14:23:20 +01:00
Andrea Spadaccini 9c7ea99b33 Fail tests if Invoke-Pester fails 2019-07-26 16:43:52 +01:00
Andrea Spadaccini 9f10bbebd5
Add Azure Pipelines status badge 2019-07-26 16:24:50 +01:00
Andrea Spadaccini 66fdda3e79 Use a script to run Pester instead of a task
The task doesn't seem to be compatible with Mac/Linux agents.
2019-07-26 16:23:03 +01:00
Andrea Spadaccini 299c0468d1 Fix slash (forward vs. backward)
Linux/Mac don't accept back slashes in paths.
2019-07-26 16:22:35 +01:00
Andrea Spadaccini ccd09b6d6c Run build pipeline on Win, Mac and Linux 2019-07-26 16:22:28 +01:00
Andrea Spadaccini 6b13a8b36b Add a basic script to install Pester and run tests
This will be used by Azure Pipelines.
2019-07-26 16:22:13 +01:00
Andrea Spadaccini 7e53055d06 Anchor test JSONs path to the test PS1 location 2019-07-26 15:55:19 +01:00
Andrea Spadaccini 3c665e7b7b Use dedicated PowerShell task 2019-07-26 15:46:38 +01:00
Andrea Spadaccini 4d40a06644 Run Pester tests in Azure Pipelines 2019-07-26 15:11:52 +01:00
Andrea Spadaccini 1ee7521f59 Fix Azure Pipelines build
Run restore.ps1, not restore.cmd.
2019-07-26 14:41:02 +01:00
Andrea Spadaccini 79e7732ab1 Move to csproj and target .NET Standard 2019-07-25 13:39:39 +01:00