forked from IDSIA/sacred
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
89 lines (88 loc) · 2.27 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
jobs:
- job: test
strategy:
matrix:
Windows py35:
IMAGE_NAME: 'vs2017-win2016'
PYTHON_VERSION: '3.5'
TOX_CMD: 'py35'
Windows py36:
IMAGE_NAME: 'vs2017-win2016'
PYTHON_VERSION: '3.6'
TOX_CMD: 'py36'
Windows py37:
IMAGE_NAME: 'vs2017-win2016'
PYTHON_VERSION: '3.7'
TOX_CMD: 'py37'
OSX py35:
IMAGE_NAME: 'macos-10.13'
PYTHON_VERSION: '3.5'
TOX_CMD: 'py35'
OSX py36:
IMAGE_NAME: 'macos-10.13'
PYTHON_VERSION: '3.6'
TOX_CMD: 'py36'
OSX py37:
IMAGE_NAME: 'macos-10.13'
PYTHON_VERSION: '3.7'
TOX_CMD: 'py37'
Linux py35:
IMAGE_NAME: 'ubuntu-16.04'
PYTHON_VERSION: '3.5'
TOX_CMD: 'py35'
Linux py36:
IMAGE_NAME: 'ubuntu-16.04'
PYTHON_VERSION: '3.6'
TOX_CMD: 'py36'
Linux py37:
IMAGE_NAME: 'ubuntu-16.04'
PYTHON_VERSION: '3.7'
TOX_CMD: 'py37'
Linux tensorflow_112:
IMAGE_NAME: 'ubuntu-16.04'
PYTHON_VERSION: '3.6'
TOX_CMD: 'tensorflow-112'
Linux tensorflow_113:
IMAGE_NAME: 'ubuntu-16.04'
PYTHON_VERSION: '3.6'
TOX_CMD: 'tensorflow-113'
Linux tensorflow-114:
IMAGE_NAME: 'ubuntu-16.04'
PYTHON_VERSION: '3.7'
TOX_CMD: 'tensorflow-114'
Linux tensorflow_2:
IMAGE_NAME: 'ubuntu-16.04'
PYTHON_VERSION: '3.7'
TOX_CMD: 'tensorflow-2'
Linux setup:
IMAGE_NAME: 'ubuntu-16.04'
PYTHON_VERSION: '3.7'
TOX_CMD: 'setup'
Linux flake8:
IMAGE_NAME: 'ubuntu-16.04'
PYTHON_VERSION: '3.7'
TOX_CMD: 'flake8'
Linux black:
IMAGE_NAME: 'ubuntu-16.04'
PYTHON_VERSION: '3.6'
TOX_CMD: 'black'
Linux coverage:
IMAGE_NAME: 'ubuntu-16.04'
PYTHON_VERSION: '3.7'
TOX_CMD: 'coverage'
pool:
vmImage: $(IMAGE_NAME)
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: $(PYTHON_VERSION)
- bash: pip install tox
- bash: tox -e $TOX_CMD
- job: test_pre_commit
pool:
vmImage: 'ubuntu-16.04'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.6'
- bash: bash ./tests/check_pre_commit.sh