summaryrefslogtreecommitdiff
path: root/appveyor.yml
diff options
context:
space:
mode:
Diffstat (limited to 'appveyor.yml')
-rw-r--r--appveyor.yml28
1 files changed, 15 insertions, 13 deletions
diff --git a/appveyor.yml b/appveyor.yml
index 1e690457..654ec0e2 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -20,32 +20,34 @@ environment:
VER_STUB_NORMAL: dev-appveyor-
VER_STUB_NIGHTLY: dev-nightly-
build_script:
-- cmd: >-
- REM Maintenance comments:
+- pwsh: >-
+ # Maintenance comments:
- REM APPVEYOR_BUILD_FOLDER= "c:\projects\modorganizer-slug"
+ # APPVEYOR_BUILD_FOLDER= "c:\projects\modorganizer-slug"
- REM -Need to update py3 version used to invoke unimake.py once in a while.
+ # -Need to update py3 version used to invoke unimake.py once in a while.
- REM -Need update MO_VERSION env variable after each release.
+ # -Need update MO_VERSION env variable after each release.
- REM -Always clones umbrella master
+ # -Always clones umbrella master
- REM -Will checkout all the branches matching the one that triggered the build on the main repo.
+ # -Will checkout all the branches matching the one that triggered the build on the main repo.
- REM End comments.
+ # End comments.
+ $ErrorActionPreference = 'Stop'
- git clone --depth=1 https://github.com/ModOrganizer2/modorganizer-umbrella.git c:\projects\modorganizer-umbrella 2> $null
-
-
- mkdir %APPVEYOR_BUILD_FOLDER%\modorganizer-build -type directory
+ git clone --depth=1 --no-single-branch https://github.com/ModOrganizer2/modorganizer-umbrella.git c:\projects\modorganizer-umbrella
+ New-Item -ItemType Directory -Path ${env:APPVEYOR_BUILD_FOLDER}\modorganizer-build
cd c:\projects\modorganizer-umbrella
+ git checkout $(git show-ref --verify --quiet refs/remotes/origin/${env:APPVEYOR_REPO_BRANCH} || echo '-b') ${env:APPVEYOR_REPO_BRANCH}
+
+ C:\Python38-x64\python.exe unimake.py -d ${env:APPVEYOR_BUILD_FOLDER}\modorganizer-build -s Appveyor_Build=True -s Feature_Branch=${env:APPVEYOR_REPO_BRANCH} -s override_build_version=${env:APPVEYOR_BUILD_VERSION}
- C:\Python38-x64\python.exe unimake.py -d %APPVEYOR_BUILD_FOLDER%\modorganizer-build -s Appveyor_Build=True -s Feature_Branch=%APPVEYOR_REPO_BRANCH% -s override_build_version=%APPVEYOR_BUILD_VERSION%
+ if($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode ) }
test: off
artifacts:
- path: '\modorganizer-build\install\bin'