Skip to content

Commit

Permalink
[CI] Update git setup for windows in cirrus
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed Dec 20, 2021
1 parent 1efdc5a commit cb8a7d6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,12 @@ windows_task:
tools_cache:
folder: 'C:\tools'
fingerprint_script:
- ps: echo "$env:CIRRUS_OS - nuget v5.10.0 - git 2.32.0.2"
- ps: echo "$env:CIRRUS_OS - nuget v6.0.0 - git 2.34.1"
populate_script:
- ps: (mkdir 'C:\tools')
# ^ use parentheses to suppress errors
- ps: Invoke-WebRequest -OutFile 'C:\tools\nuget.exe' 'https://dist.nuget.org/win-x86-commandline/v5.10.0/nuget.exe'
- ps: nuget install GitForWindows -Version 2.32.0.2 -NonInteractive -OutputDirectory 'C:\tools'
- ps: Invoke-WebRequest -OutFile 'C:\tools\nuget.exe' 'https://dist.nuget.org/win-x86-commandline/v6.0.0/nuget.exe'
- ps: nuget install GitForWindows -Version 2.34.1 -NonInteractive -OutputDirectory C:\tools
workaround_git_script:
- git config --system core.longpaths true # Fix for windows git checkout problems
clone_script:
Expand All @@ -149,7 +149,7 @@ windows_task:
PYTHON_HOME: 'C:\Python'
PYTHON_APPDATA: '%APPDATA%\Python\Python38'
# ^ update when python version changes
GIT_HOME: 'C:\tools\GitForWindows.2.32.0.2\tools'
GIT_HOME: 'C:\tools\GitForWindows.2.34.1\tools'
# ^ update when git version changes
HOME: '%USERPROFILE%'
USERNAME: ContainerAdministrator
Expand Down
8 changes: 4 additions & 4 deletions src/pyscaffold/templates/cirrus.template
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,12 @@ windows_task:
tools_cache:
folder: 'C:\tools'
fingerprint_script:
- ps: echo "$env:CIRRUS_OS - nuget v5.10.0 - git 2.32.0.2"
- ps: echo "$env:CIRRUS_OS - nuget v6.0.0 - git 2.34.1"
populate_script:
- ps: (mkdir 'C:\tools')
# ^ use parentheses to suppress errors
- ps: Invoke-WebRequest -OutFile 'C:\tools\nuget.exe' 'https://dist.nuget.org/win-x86-commandline/v5.10.0/nuget.exe'
- ps: nuget install GitForWindows -Version 2.32.0.2 -NonInteractive -OutputDirectory 'C:\tools'
- ps: Invoke-WebRequest -OutFile 'C:\tools\nuget.exe' 'https://dist.nuget.org/win-x86-commandline/v6.0.0/nuget.exe'
- ps: nuget install GitForWindows -Version 2.34.1 -NonInteractive -OutputDirectory C:\tools
workaround_git_script:
- git config --system core.longpaths true # Fix for windows git checkout problems
clone_script:
Expand All @@ -122,7 +122,7 @@ windows_task:
PYTHON_HOME: 'C:\Python'
PYTHON_APPDATA: '%APPDATA%\Python\Python38'
# ^ update when python version changes
GIT_HOME: 'C:\tools\GitForWindows.2.32.0.2\tools'
GIT_HOME: 'C:\tools\GitForWindows.2.34.1\tools'
# ^ update when git version changes
HOME: '%USERPROFILE%'
USERNAME: ContainerAdministrator
Expand Down

0 comments on commit cb8a7d6

Please sign in to comment.