script:
- $ErrorActionPreference = "Stop"
- $PSDefaultParameterValues['Out-File:Encoding'] = 'utf8'
+ - choco config set cacheLocation choco-cache
- choco install --yes --no-progress --params "/InstallDir:C:\Python3" python3
- $env:Path = "C:\Python3;" + $env:Path
- python --version
# change line endings from crlf to lf
- git rm --cached -r .
- git -c core.autocrlf=false reset --hard
+ - choco config set cacheLocation choco-cache
- choco install --yes --no-progress cygwin
# avoid BOM in COLLECTION file
- echo experimental | Out-File COLLECTION -Encoding ascii
- GRAPHVIZ_VERSION
- COLLECTION
- Packages/*/*/*/*/*.xz
+ cache:
+ key: windows-cygwin-build
+ paths:
+ - choco-cache
tags:
- windows
except:
# change line endings from crlf to lf
- git rm --cached -r .
- git -c core.autocrlf=false reset --hard
+ - choco config set cacheLocation choco-cache
- choco install --yes --no-progress cygwin
- choco install --yes --no-progress --params "/InstallDir:C:\Python3" python3
- $env:Path = "C:\Python3;" + $env:Path
paths:
- COLLECTION
- Packages/*/*/*/*/*.xz
+ cache:
+ key: windows-cygwin-build-using-autogen
+ paths:
+ - choco-cache
tags:
- windows
except:
- $Env:project_platform = "Win32"
- $Env:configuration = "Release"
- $Env:build_system = "cmake"
+ cache:
+ key: windows-cmake-Win32-release-build
+ paths:
+ - choco-cache
windows-cmake-Win32-debug-build:
<<: *windows_build_definition
- $Env:project_platform = "Win32"
- $Env:configuration = "Debug"
- $Env:build_system = "cmake"
+ cache:
+ key: windows-cmake-Win32-debug-build
+ paths:
+ - choco-cache
windows-cmake-x64-release-build:
<<: *windows_build_definition
- $Env:project_platform = "x64"
- $Env:configuration = "Release"
- $Env:build_system = "cmake"
+ cache:
+ key: windows-cmake-x64-release-build
+ paths:
+ - choco-cache
windows-cmake-x64-debug-build:
<<: *windows_build_definition
- $Env:project_platform = "x64"
- $Env:configuration = "Debug"
- $Env:build_system = "cmake"
+ cache:
+ key: windows-cmake-x64-debug-build
+ paths:
+ - choco-cache
windows-msbuild-Win32-release-build:
<<: *windows_build_definition
- $Env:project_platform = "Win32"
- $Env:configuration = "Release"
- $Env:build_system = "msbuild"
+ cache:
+ key: windows-msbuild-Win32-release-build
+ paths:
+ - choco-cache
windows-msbuild-Win32-debug-build:
<<: *windows_build_definition
- $Env:project_platform = "Win32"
- $Env:configuration = "Debug"
- $Env:build_system = "msbuild"
+ cache:
+ key: windows-msbuild-Win32-debug-build
+ paths:
+ - choco-cache
windows-mingw32-cmake-build:
stage: build
needs: []
script:
+ - choco config set cacheLocation choco-cache
- choco install --yes --no-progress msys2
# avoid BOM in COLLECTION file
- echo experimental | Out-File COLLECTION -Encoding ascii
- COLLECTION
- Packages/*/*/*/*/*.exe
- Packages/*/*/*/*/*.zip
+ cache:
+ key: windows-mingw32-cmake-build
+ paths:
+ - choco-cache
tags:
- windows
except:
stage: build
needs: []
script:
+ - choco config set cacheLocation choco-cache
- choco install --yes --no-progress msys2
# avoid BOM in COLLECTION file
- echo experimental | Out-File COLLECTION -Encoding ascii
- COLLECTION
- Packages/*/*/*/*/*.exe
- Packages/*/*/*/*/*.zip
+ cache:
+ key: windows-mingw64-cmake-build
+ paths:
+ - choco-cache
tags:
- windows
except:
# # change line endings from crlf to lf
# - git rm --cached -r .
# - git -c core.autocrlf=false reset --hard
+# - choco config set cacheLocation choco-cache
# - choco install --yes --no-progress cygwin
# # avoid BOM in COLLECTION file
# - echo experimental | Out-File COLLECTION -Encoding ascii
# - COLLECTION
# - Packages/*/*/*/*/*.zip
# - Packages/*/*/*/*/*.bz2
+# cache:
+# key: windows-cygwin-cmake-build
+# paths:
+# - choco-cache
# tags:
# - windows
# except: