-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathazure-pipelines.yml
67 lines (57 loc) · 1.61 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
trigger:
- master
pr:
- master
pool:
vmImage: 'ubuntu-latest'
stages:
- stage: Test
jobs:
- job: TestJob
strategy:
matrix:
Python36:
python.version: '3.6'
Python37:
python.version: '3.7'
Python38:
python.version: '3.8'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
- bash: |
pip install --upgrade pip
pip install -e .[dev]
displayName: 'Install'
- bash: flake8
displayName: 'Flake'
- bash: python setup.py test
displayName: 'Tests'
- bash: |
set -e
python examples/simple_nonlinear.py
python examples/number_of_parents.py --n-parents=2 --workers=1
python examples/number_of_parents.py --n-parents=3 --workers=1
python examples/number_of_parents.py --n-parents=4 --workers=1
python examples/number_of_parents.py --n-parents=2 --workers=2
python examples/number_of_parents.py --n-parents=3 --workers=2
python examples/number_of_parents.py --n-parents=4 --workers=2
python examples/very_basic_tsp.py
python examples/simple_logging.py
python examples/rock_paper_scissors.py
- stage: Docs
condition: eq(variables['build.sourceBranch'], 'refs/heads/master')
jobs:
- job: DocsJob
steps:
- bash: |
set -e
pip install --upgrade pip
pip install -e .[docs]
sphinx-apidoc -f -o doc/api evol
sphinx-build doc public
- task: PublishBuildArtifacts@1
inputs:
pathToPublish: public
artifactName: BuildOutput