Skip to content

Commit bf70981

Browse files
committed
Enable macOS on appveyor
1 parent a709bf3 commit bf70981

File tree

3 files changed

+39
-5
lines changed

3 files changed

+39
-5
lines changed

Diff for: .appveyor/install.sh

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
set -e
4+
set -x
5+
6+
if [[ "$(uname -s)" == 'Darwin' ]]; then
7+
source ~/venv3.8.1/bin/activate
8+
python --version
9+
10+
pip install conan --upgrade
11+
pip install conan_package_tools
12+
conan --version
13+
conan user
14+
conan config install conan_config/
15+
fi

Diff for: .appveyor/run.sh

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
set -e
4+
set -x
5+
6+
if [[ "$(uname -s)" == 'Darwin' ]]; then
7+
source ~/venv3.8.1/bin/activate
8+
python build.py
9+
fi

Diff for: appveyor.yml

+15-5
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,26 @@ environment:
1010
CONAN_UPLOAD: "https://api.bintray.com/conan/ltjax/conan"
1111

1212
matrix:
13+
- APPVEYOR_BUILD_WORKER_IMAGE: macos
14+
CONAN_APPLE_CLANG_VERSIONS: "11.0"
1315
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
1416
CONAN_VISUAL_VERSIONS: 16
1517
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
1618
CONAN_VISUAL_VERSIONS: 15
1719

1820
install:
19-
- set PATH=%PATH%;%PYTHON%/Scripts/
20-
- pip.exe install conan --upgrade
21-
- pip.exe install conan_package_tools
22-
- conan user # It creates the conan data directory
21+
# Windows build
22+
- cmd: set PATH=%PATH%;%PYTHON%/Scripts/
23+
- cmd: pip.exe install conan --upgrade
24+
- cmd: pip.exe install conan_package_tools
25+
- cmd: conan user # It creates the conan data directory
26+
# macOS build
27+
- sh: chmod +x .appveyor/install.sh
28+
- sh: .appveyor/install.sh
2329

2430
test_script:
25-
- python build.py
31+
# Windows build
32+
- cmd: python build.py
33+
# macOS build
34+
- sh: chmod +x .appveyor/run.sh
35+
- sh: .appveyor/run.sh

0 commit comments

Comments
 (0)