Files
PowerShell-PowerShell/docker/test.sh
T
Andrew Schwartzmeyer 7375ab58b1 Add Docker scripts
Common bootstrap.ps1 script to run PowerShell builds.
Launch script to build and tag all containers.
Test script to run tests in unstable containers.
2016-09-12 15:01:18 -07:00

20 lines
425 B
Bash

#!/usr/bin/env bash
set -e
# Build specified distributions
if [[ -z $DISTROS ]]; then
DISTROS="ubuntu14.04 ubuntu16.04 centos7"
fi
build=unstable
command="cd PowerShell; Import-Module ./build.psm1; Start-PSPester"
cd $build
for distro in $DISTROS; do
echo "Testing $build/$distro"
# Run Pester tests inside container
docker run -it powershell/powershell:$build-$distro powershell -c "$command"
done
cd ..