Skip to content

Commit a03e976

Browse files
committed
docker support for running tests
1 parent 9be92a7 commit a03e976

File tree

4 files changed

+27
-3
lines changed

4 files changed

+27
-3
lines changed

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
.DS_STORE
12
bin/
2-
obj/
3+
obj/
4+
./test/results/results.xml

Dockerfile

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM microsoft/powershell
2+
3+
# install test tooling (pester)
4+
RUN powershell -command Install-Module -Name Pester -Force -SkipPublisherCheck
5+
6+
# place all files in the container and set it to the work dir
7+
# which will be mounted to extract test results
8+
ADD . /data
9+
WORKDIR /data
10+
11+
# run tests when running the container
12+
CMD powershell -command Invoke-Pester ./NuGetMetadata.Tests.ps1 -OutputFile test/results/results.xml -OutputFormat NUnitXml

README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
<h1><img src="logo.png" align="bottom" /> Powershell NuGet Metadata Cmdlet</h1>
1+
<h1>
2+
<img src="logo.png" align="bottom" /> Powershell NuGet Metadata Cmdlet
3+
</h1>
4+
25
[![Build status](https://ci.appveyor.com/api/projects/status/o2t3tprh7avi8d0i?svg=true)](https://ci.appveyor.com/project/SpiderUnicorn/powershell-nuget-metadata)
36

7+
48
Ever wanted to get metadata from your NuGet packages, such as author or license information?
59
Got lost looking for it in Visual Studio? Are you looking for a simple script that is able to
610
output all metadata information from a single command?
@@ -11,7 +15,7 @@ Look no further!
1115
2. [Examples](#examples)
1216
* [Simple usage](#simple-usage)
1317
* [Exporting output](#exporting-output)
14-
* [Exluding packages](#excluding-packages)
18+
* [Excluding packages](#excluding-packages)
1519
* [Downloading license information](#downloading-license-information)
1620
3. [Release History](#release-history)
1721
4. [License](#license)

docker-compose.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: '3'
2+
services:
3+
pester-test:
4+
build: .
5+
volumes:
6+
- .:/data

0 commit comments

Comments
 (0)