From 064e3691f2c1fc7ecb218bd4f45dc2ba3ba468c4 Mon Sep 17 00:00:00 2001 From: adam-urbanczyk Date: Mon, 10 Jun 2019 00:18:38 +0200 Subject: [PATCH] Initial configuration of the azure pipeline --- azure-pipelines.yml | 33 +++++++++++++++++++++++++++++++++ conda/meta.yaml | 8 ++++---- 2 files changed, 37 insertions(+), 4 deletions(-) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 00000000..4830a8bf --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,33 @@ +trigger: + branches: + include: + - master + - refs/tags/* + +resources: + repositories: + - repository: templates + type: github + name: CadQuery/conda-packages + +jobs: +- template: conda-build.yml@templates + parameters: + name: Linux + vmImage: 'ubuntu-16.04' + py_maj: 3 + py_min: 6 + +- template: conda-build.yml@templates + parameters: + name: macOS + vmImage: 'macOS-10.13' + py_maj: 3 + py_min: 6 + +- template: conda-build.yml@templates + parameters: + name: Windows + vmImage: 'vs2017-win2016' + py_maj: 3 + py_min: 6 \ No newline at end of file diff --git a/conda/meta.yaml b/conda/meta.yaml index 93091895..36aebc5b 100644 --- a/conda/meta.yaml +++ b/conda/meta.yaml @@ -1,20 +1,20 @@ package: name: cadquery-occ - version: {{ environ.get('TRAVIS_TAG') }} + version: {{ environ.get('PACKAGE_VERSION') }} source: path: .. build: - string: {{ 'py'+environ.get('TRAVIS_PYTHON_VERSION')+environ.get('TRAVIS_COMMIT')[:8] }} + string: {{ 'py'+environ.get('PYTHON_VERSION')}} script: python setup.py install --single-version-externally-managed --record=record.txt requirements: build: - - python {{ environ.get('TRAVIS_PYTHON_VERSION') }} + - python {{ environ.get('PYTHON_VERSION') }} - setuptools run: - - python {{ environ.get('TRAVIS_PYTHON_VERSION') }} + - python {{ environ.get('PYTHON_VERSION') }} - oce 0.18 - pythonocc-core 0.18.2 - pyparsing 2.*