Skip to content

Commit 6f8fe0d

Browse files
Merge pull request #136 from CadQuery/adam-urbanczyk-appveyor-macos
Add appveyor macos testing to OCP
2 parents 219ce7c + dbcd058 commit 6f8fe0d

File tree

1 file changed

+22
-7
lines changed

1 file changed

+22
-7
lines changed

appveyor.yml

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
shallow_clone: false
22

33
image:
4+
- macOS-mojave
5+
- macOS
46
- Ubuntu
57
- Ubuntu1804
6-
- Visual Studio 2015
8+
- Visual Studio 2015
79

810
environment:
911
matrix:
@@ -13,12 +15,12 @@ environment:
1315
MINICONDA_DIRNAME: C:\FreshMiniconda
1416

1517
install:
16-
- sh: sudo apt update
17-
- sh: sudo apt -y --force-yes install libglu1-mesa xvfb libgl1-mesa-dri mesa-common-dev libglu1-mesa-dev
18-
- sh: wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
18+
- sh: if [[ $APPVEYOR_BUILD_WORKER_IMAGE != "macOS"* ]]; then sudo apt update; sudo apt -y --force-yes install libglu1-mesa xvfb libgl1-mesa-dri mesa-common-dev libglu1-mesa-dev; fi
19+
- sh: if [[ $APPVEYOR_BUILD_WORKER_IMAGE != "macOS"* ]]; then curl -o miniconda.sh curl -o miniconda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh; fi
20+
- sh: if [[ $APPVEYOR_BUILD_WORKER_IMAGE == "macOS"* ]]; then curl -o miniconda.sh curl -o miniconda.sh https://repo.anaconda.com/miniconda/Miniconda3-4.7.10-MacOSX-x86_64.sh; fi
1921
- sh: bash miniconda.sh -b -p $HOME/miniconda
2022
- sh: source $HOME/miniconda/bin/activate
21-
- cmd: appveyor DownloadFile https://repo.continuum.io/miniconda/Miniconda3-latest-Windows-x86_64.exe
23+
- cmd: appveyor DownloadFile https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe
2224
- cmd: Miniconda3-latest-Windows-x86_64.exe /S /InstallationType=JustMe /D=%MINICONDA_DIRNAME%
2325
- cmd: set "PATH=%MINICONDA_DIRNAME%;%MINICONDA_DIRNAME%\\Scripts;%PATH%"
2426
- cmd: activate
@@ -34,15 +36,28 @@ install:
3436

3537
build: false
3638

39+
before_test:
40+
- ulimit -c unlimited -S
41+
- sudo rm -f /cores/core.*
42+
3743
test_script:
3844
- sh: export PYTHONPATH=$(pwd)
3945
- cmd: set PYTHONPATH=%cd%
40-
- sh: xvfb-run -s '-screen 0 1920x1080x24 +iglx' pytest -v --cov=cq_editor
46+
- sh: export APPVEYOR_SSH_BLOCK=true
47+
- sh: curl -sflL 'https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-ssh.sh' | bash -e -
48+
- sh: if [[ $APPVEYOR_BUILD_WORKER_IMAGE != "macOS"* ]]; then xvfb-run -s '-screen 0 1920x1080x24 +iglx' pytest -v --cov=cq_editor; fi
49+
- sh: if [[ $APPVEYOR_BUILD_WORKER_IMAGE == "macOS"* ]]; then pytest -v --cov=cq_editor; fi
4150
- cmd: pytest -v --cov=cq_editor
4251

4352
on_success:
4453
- codecov
4554

55+
#on_failure:
56+
# - qtdiag
57+
# - ls /cores/core.*
58+
# - lldb --core `ls /cores/core.*` --batch --one-line "bt"
59+
4660
on_finish:
4761
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
48-
# - sh: curl -sflL 'https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-ssh.sh' | bash -e -
62+
# - sh: export APPVEYOR_SSH_BLOCK=true
63+
- sh: curl -sflL 'https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-ssh.sh' | bash -e -

0 commit comments

Comments
 (0)