mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Common bootstrap.ps1 script to run PowerShell builds. Launch script to build and tag all containers. Test script to run tests in unstable containers.
20 lines
425 B
Bash
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 ..
|