-
Notifications
You must be signed in to change notification settings - Fork 122
/
appveyor.yml
59 lines (43 loc) · 1.56 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
image: Visual Studio 2022
cache:
- '%LOCALAPPDATA%\pip\Cache'
- C:\strawberry
environment:
VS_VERSION: Visual Studio 17 2022 # required for later CMake build
matrix:
- platform: x64
PYTHON: "C:\\Python310-x64"
matrix:
fast_finish: true
shallow_clone: true
install:
- if not exist "C:\strawberry" choco install strawberryperl -y
build_script:
- if "%platform%" == "x64" call "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Auxiliary/Build/vcvars64.bat"
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
# using strawberryperl
- set PATH=C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin;%PATH%
- cpanm Text::SimpleTable::AutoWidth
# using Appveyor preinstalled Perl - https://www.appveyor.com/docs/windows-images-software/#perl
#- "SET PERL_HOME=C:\\Perl"
#- "SET PATH=%PERL_HOME%\\perl\\site\\bin;%PERL_HOME%\\perl\\bin;%PERL_HOME%\\c\\bin;%PATH%"
#- cpan App::cpanminus
#- cpanm Text::SimpleTable::AutoWidth
- cd %APPVEYOR_BUILD_FOLDER%
- "python -m pip install --upgrade pip"
- pip install -r requirements.txt
- mkdir build
- cd build
- cmake -DHTML=ON ..
- cmake --build . --config Release
deploy: off
after_test:
- cd %APPVEYOR_BUILD_FOLDER%
- 7z a osgeolive-doc.zip ./build/_build/html/* > nul
# Uncomment to enable debugging on the server
#on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
artifacts:
- path: osgeolive-doc.zip
name: osgeolive-doc
type: zip