-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathappveyor.yml
45 lines (38 loc) · 1.55 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
branches:
only:
- master
clone_depth: 5
version: '{build}'
stack: python 3.9
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: macOS
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu2004
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu2004
CC: clang
CXX: clang++
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
PYTHON: C:/Python39-x64
PATH: $(PYTHON)/Scripts/;$(PATH)
install:
- pip install conan
- sh: if [ "${APPVEYOR_BUILD_WORKER_IMAGE}" == "Ubuntu2004" ]; then sudo apt install -y libgl-dev libglu1-mesa-dev; fi
build_script:
- sh: cd ${APPVEYOR_BUILD_FOLDER}
- cmd: cd %APPVEYOR_BUILD_FOLDER%
- mkdir build
- cd build
- sh: conan profile new default --detect
- sh: if [ "${APPVEYOR_BUILD_WORKER_IMAGE}" == "Ubuntu2004" ]; then conan profile update settings.compiler.libcxx=libstdc++11 default; fi
- conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan
- conan create ../conan/ctpl icebreakersentertainment/stable --build missing
- conan create ../conan/entityx icebreakersentertainment/stable
- conan create ../conan/angelscript icebreakersentertainment/stable
- conan create ../conan/freeimage icebreakersentertainment/stable
- conan create ../conan/celero icebreakersentertainment/stable
- conan install .. --build missing
- cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE="conan_paths.cmake" -DICEENGINE_BUILD_BENCHMARKS=1 -DICEENGINE_BUILD_TESTS=1 -DICEENGINE_BUILD_AS_LIBRARY=1 ..
- sh: make
- cmd: msbuild /p:Configuration=Release ice_engine.sln
test_script:
- ctest