Move Pester to submodule to Host/Modules

This way it can also be deployed automatically, removing the last manual
copy steps from our build scripts.

Travis and AppVeyor configurations updated for new submodule location.
This commit is contained in:
Andrew Schwartzmeyer
2016-02-10 12:58:56 -08:00
parent 79f5db71fe
commit dacaebefb8
6 changed files with 4 additions and 19 deletions
+2 -2
View File
@@ -17,8 +17,8 @@
[submodule "src/windows-build"]
path = src/windows-build
url = https://github.com/PowerShell/psl-windows-build.git
[submodule "test/Pester"]
path = test/Pester
[submodule "src/Microsoft.PowerShell.Linux.Host/Modules/Pester"]
path = src/Microsoft.PowerShell.Linux.Host/Modules/Pester
url = https://github.com/PowerShell/psl-pester.git
branch = develop
ignore = dirty
+1 -1
View File
@@ -5,7 +5,7 @@ git:
submodules: false
before_install:
- git config --global url.git@github.com:.insteadOf https://github.com/
- git submodule update --init --recursive -- src/libpsl-native src/monad src/windows-build test/Pester
- git submodule update --init --recursive -- src/libpsl-native src/monad src/windows-build src/Microsoft.PowerShell.Linux.Host/Modules/Pester
- sudo sh -c 'echo "deb [arch=amd64] http://apt-mo.trafficmanager.net/repos/dotnet/ trusty main" > /etc/apt/sources.list.d/dotnetdev.list'
- sudo apt-key adv --keyserver apt-mo.trafficmanager.net --recv-keys 417A0893
- sudo apt-get -qq update
+1 -1
View File
@@ -13,7 +13,7 @@ install:
- ps: $fileContent += "`n-----END RSA PRIVATE KEY-----`n"
- ps: Set-Content c:\users\appveyor\.ssh\id_rsa $fileContent
- git config --global url.git@github.com:.insteadOf https://github.com/
- git submodule update --init --recursive -- src/monad src/windows-build test/Pester
- git submodule update --init --recursive -- src/monad src/windows-build src/Microsoft.PowerShell.Linux.Host/Modules/Pester
- ps: Invoke-WebRequest -Uri https://dotnetcli.blob.core.windows.net/dotnet/dev/Binaries/Latest/dotnet-win-x64.latest.zip -OutFile dotnet.zip
- 7z x dotnet.zip -odotnet > nul
-7
View File
@@ -1,12 +1,5 @@
$BIN = "${pwd}/bin"
mkdir $BIN/Modules -ErrorAction SilentlyContinue
# Deploy PowerShell modules
cd $BIN/Modules
robocopy ../../test/Pester Pester /s /e
cd ../..
# Publish PowerShell
cd src/Microsoft.PowerShell.Linux.Host
dotnet publish --framework dnxcore50 --output $BIN
-8
View File
@@ -2,14 +2,6 @@
export BIN=$(pwd)/bin
mkdir -p $BIN/Modules
# Deploy PowerShell modules
(
cd $BIN/Modules
cp -r ../../test/Pester .
)
# Build native components
(
cd src/libpsl-native