aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/appveyor.yml
blob: 7dbda80fcb0541332ecee2a39d761066d90ec79d (plain) (blame)
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
version: '{build}'

image:
  - Visual Studio 2015
  - Visual Studio 2017
  - Visual Studio 2019

configuration:
  - Release

platform:
  - x64

environment:
  appveyor_boost_version: 1.65.0
  python_exe: C:\Python36-x64\python.exe

build_script:
  - echo Simple CMake projects

  - >-
    "%python_exe%" ./cmake/build/build.py
    --install C:\install\simple
    --configuration Release
    -- cmake/examples/simple
    -A x64
  - C:\install\simple\bin\foo.exe
  - ps: .\.ci\verify_arch.ps1 -Path C:\install\simple\bin\foo.exe -Arch x64

  - >-
    "%python_exe%" ./cmake/build/build.py
    --install C:\install\static
    --configuration Debug
    -- cmake/examples/static
    -A Win32
  - C:\install\static\bin\foo.exe
  - ps: .\.ci\verify_arch.ps1 -Path C:\install\static\bin\foo.exe -Arch x86

  - >-
    "%python_exe%" ./cmake/build/build.py
    --install C:\install\dynamic
    --configuration Release
    -- cmake/examples/dynamic
    -A x64
  - C:\install\dynamic\bin\foo.exe
  - ps: .\.ci\verify_arch.ps1 -Path C:\install\dynamic\bin\foo.exe -Arch x64

  - echo Boost 1.58.0

  - '"%python_exe%" ./boost/build/build.py download 1.58.0'
  - >-
    "%python_exe%" ./boost/build/build.py build
    --configuration Debug
    --platform x86
    --link static
    -- ./boost_1_58_0
    --with-filesystem --with-program_options
  - dir /a-D /S /B boost_1_58_0\stage

  - >-
    "%python_exe%" ./cmake/build/build.py
    --install C:\install\boost_1_58_0
    --configuration Debug
    -- cmake/examples/boost
    -A Win32
    -D "BOOST_ROOT=%APPVEYOR_BUILD_FOLDER%\boost_1_58_0"
    -D "BOOST_LIBRARYDIR=%APPVEYOR_BUILD_FOLDER%\boost_1_58_0\stage\x86\lib"
  - C:\install\boost_1_58_0\bin\foo.exe
  - ps: .\.ci\verify_arch.ps1 -Path C:\install\boost_1_58_0\bin\foo.exe -Arch x86

  - echo Boost 1.72.0

  - '"%python_exe%" ./boost/build/build.py download --cache . 1.72.0'
  - >-
    "%python_exe%" ./boost/build/build.py build
    --configuration Debug Release
    --platform x86 x64
    --link shared
    -- ./boost_1_72_0
    --with-filesystem --with-program_options
  - dir /a-D /S /B boost_1_72_0\stage

  - >-
    "%python_exe%" ./cmake/build/build.py
    --install C:\install\boost_1_72_0
    --configuration Release
    -- cmake/examples/boost
    -A x64
    -D "BOOST_ROOT=%APPVEYOR_BUILD_FOLDER%\boost_1_72_0"
    -D "BOOST_LIBRARYDIR=%APPVEYOR_BUILD_FOLDER%\boost_1_72_0\stage\x64\lib"
    -D Boost_USE_STATIC_LIBS=OFF
  - set "PATH=%APPVEYOR_BUILD_FOLDER%\boost_1_72_0\stage\x64\lib;%PATH%" && C:\install\boost_1_72_0\bin\foo.exe
  - ps: .\.ci\verify_arch.ps1 -Path C:\install\boost_1_72_0\bin\foo.exe -Arch x64

  - echo Boost 1.65.0

  - '"%python_exe%" ./boost/build/ci/appveyor.py --link static -- --with-filesystem --with-program_options'
  - dir /a-D /S /B C:\boost_1_65_0\stage

  - >-
    set "APPVEYOR_BUILD_FOLDER=%APPVEYOR_BUILD_FOLDER%\cmake\examples\boost" &&
    "%python_exe%" ./cmake/build/ci/appveyor.py
    --install C:\install\boost_1_65_0
    --
    -D BOOST_ROOT=C:\boost_1_65_0
    -D BOOST_LIBRARYDIR=C:\boost_1_65_0\stage\x64\lib
  - C:\install\boost_1_65_0\bin\foo.exe
  - ps: .\.ci\verify_arch.ps1 -Path C:\install\boost_1_65_0\bin\foo.exe -Arch x64