forked from bdbcat/oesenc_pi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
63 lines (49 loc) · 1.93 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
60
61
clone_folder: c:\project\opencpn\oesenc_pi
shallow_clone: false
clone_depth: 10
image:
- Visual Studio 2017
platform:
# - x64
- Win32
configuration: RelWithDebInfo
test: OFF
install:
# VS2015 and earlier version - '"C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x86'
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars32.bat"
# set environment variables for wxWidgets
- set WXWIN=C:\wxWidgets-3.1.2
- set wxWidgets_ROOT_DIR=%WXWIN%
- set wxWidgets_LIB_DIR=%WXWIN%\lib\vc_dll
- cmd: SET PATH=%PATH%;%WXWIN%;%wxWidgets_LIB_DIR%;C:\Program Files (x86)\Poedit\Gettexttools\bin;
# install dependencies:
- choco install poedit
# Download and unzip wxwidgets
- ps: Start-FileDownload https://download.opencpn.org/s/E2p4nLDzeqx4SdX/download -FileName wxWidgets-3.1.2.7z
- cmd: 7z x wxWidgets-3.1.2.7z -o%WXWIN% > null
# some debugging information
# - cmake --help
# - set Displays sensitive password!
# build wxWidgets - Disabled as we provide prebuilt WX to save time
#- cmd: cd %WXWIN%\build\msw\
#- cmd: nmake -f makefile.vc BUILD=release SHARED=1 CFLAGS=/D_USING_V120_SDK71_ CXXFLAGS=/D_USING_V120_SDK71_
#- cmd: nmake -f makefile.vc BUILD=debug SHARED=1 CFLAGS=/D_USING_V120_SDK71_ CXXFLAGS=/D_USING_V120_SDK71_
before_build:
# Unless removed, this interferes with the 32-bit python installation
- rmdir /Q /S C:\Python38-x64
# python stuff required by upload.bat and git-push
- cmd: SET PATH=C:\Python38;C:\Python38\Scripts;%PATH%
- py --version
- py -m ensurepip
- py -m pip install --upgrade pip
- pip install -q setuptools wheel
- pip install -q cloudsmith-cli
- pip install -q cryptography
build_script:
- mkdir build
- cd build
- cmake -T v141_xp -G "Visual Studio 15 2017" --config RelWithDebInfo ..
- cmake --build . --target tarball --config RelWithDebInfo
- py ..\ci\windows-ldd
- cmd: upload.bat
- py ..\ci\git-push