This repository has been archived by the owner on Jan 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
azure-pipelines.yml
89 lines (84 loc) · 1.94 KB
/
azure-pipelines.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
trigger:
branches:
include:
- master
- development
tags:
include:
- v*
pr:
branches:
include:
- '*'
stages:
- stage: Build
jobs:
# QA
- job: lint
pool:
vmImage: 'ubuntu-16.04'
steps:
- template: ci/lint.yml
# Build
# Linux
# # scs install is broken on Linux
# - job: test_linux
# dependsOn: lint
# pool:
# vmImage: 'ubuntu-16.04'
# strategy:
# matrix:
# Python36:
# python.version: '3.6'
# steps:
# - bash: |
# sudo apt update
# sudo apt install swig3.0
# sudo ln -s /usr/bin/swig3.0 /usr/bin/swig
# displayName: Install swig on Linux
# - template: ci/install.yml
# - template: ci/tests.yml
#MacOS
- job: test_macos
dependsOn: lint
pool:
vmImage: 'macOS-10.13'
strategy:
matrix:
Python36:
python.version: '3.6'
steps:
- script: |
brew install swig
brew install gcc@5
displayName: Install Brew packages
- template: ci/install.yml
- template: ci/tests.yml
# TODO: switch to linux box release when the above is fixed
# - stage: Release
# condition: contains(variables['Build.SourceBranch'], 'tags')
# jobs:
# - job: release
# pool:
# vmImage: 'macOS-10.13'
# steps:
# - task: UsePythonVersion@0
# inputs:
# versionSpec: '3.6'
# displayName: Select Python version
# - script: |
# brew install swig
# brew install gcc@5
# displayName: Install Brew packages
# - template: ci/install.yml
# - script: poetry build
# poetry publish -u $(pypi_username) -p $(pypi_password)
# displayName: Release to pypi
# - task: GitHubRelease@0
# inputs:
# gitHubConnection: georgianpartners
# repositoryName: georgianpartners/foreshadow
# tagSource: 'auto'
# assets:
# dist/*
# displayName: Add release to GitHub