From a83dacd506d78747edd2a7e93d75bddd944d0432 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 5 Sep 2019 13:34:34 +0530 Subject: [PATCH] Run CI on macOS --- README.md | 2 +- azure-pipelines.yml | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 47cdd71ba5..fcb2671ba3 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ reading. It is cross platform, running on Linux, Windows and macOS. For more information, see the [calibre About page](https://calibre-ebook.com/about) -[![Build Status](https://dev.azure.com/kovidgoyal/mechanize/_apis/build/status/python-mechanize.mechanize?branchName=engine)](https://dev.azure.com/kovidgoyal/mechanize/_build/latest?definitionId=1&branchName=engine) +[![Build Status](https://dev.azure.com/divok/calibre/_apis/build/status/kovidgoyal.calibre?branchName=engine)](https://dev.azure.com/divok/calibre/_build/latest?definitionId=1&branchName=engine) ## Screenshots diff --git a/azure-pipelines.yml b/azure-pipelines.yml index e255d5853a..a009398056 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -36,3 +36,28 @@ jobs: - script: | python3 setup/unix-ci.py test displayName: 'Test calibre' + +- job: 'macOS' + pool: + vmImage: 'macos-latest' + + steps: + - checkout: self + fetchDepth: 1 + + - task: UsePythonVersion@0 + inputs: + versionSpec: '3.7' + architecture: 'x64' + + - script: | + python3 setup/unix-ci.py install + displayName: 'Install calibre dependencies' + + - script: | + python3 setup/unix-ci.py bootstrap + displayName: 'Bootstrap calibre' + + - script: | + python3 setup/unix-ci.py test + displayName: 'Test calibre'