.vsts-ci.yml 2.64 KB
Newer Older
Guolin Ke's avatar
Guolin Ke committed
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
phases:
- phase: Linux
  variables:
    PYTHON_VERSION: 3.6
    AGENT_OS: linux
    CONDA_ENV: test-env
  queue:
    name: 'Hosted Linux Preview'
    parallel: 9
    matrix:
      regular:
        TASK: regular
      mpi:
        TASK: mpi
      pylint: 
        TASK: pylint
      doc:
        TASK: check-docs
      inference:
        TASK: if-else
      sdist:
        TASK: sdist
        PYTHON_VERSION: 2.7
      bdist:
        TASK: bdist
        PYTHON_VERSION: 3.5
      gpu_1:
        TASK: gpu 
        METHOD: source
      gpu_2:
        TASK: gpu 
        METHOD: pip
  steps:
  - script: sudo apt-get update
  - script: bash .vsts-ci/setup.sh
  # - task: CondaEnvironment@0
  #   inputs:
  #     environmentName: $(CONDA_ENV)
  #     packageSpecs: 'python=$(PYTHON_VERSION)' # Optional
  #     createOptions: '-q'

  - task: UsePythonVersion@0
    inputs:
      versionSpec: '$(PYTHON_VERSION)'
      architecture: 'x64'
  - script: python -m pip install --upgrade pip setuptools wheel
  - script: bash .vsts-ci/test.sh

- phase: MacOS
  variables:
    PYTHON_VERSION: 3.6
    AGENT_OS: darwin
    CONDA_ENV: test-env
  queue:
    name: 'Hosted macOS Preview'
    parallel: 4
    matrix:
      regular:
        TASK: regular
      mpi:
        TASK: mpi
      sdist:
        TASK: sdist
        PYTHON_VERSION: 2.7
      bdist:
        TASK: bdist
        PYTHON_VERSION: 3.5
  steps:
  - script: bash .vsts-ci/setup.sh
  # - task: CondaEnvironment@0
  #   inputs:
  #     environmentName: $(CONDA_ENV)
  #     packageSpecs: 'python=$(PYTHON_VERSION)' # Optional
  #     createOptions: '-q'

  - task: UsePythonVersion@0
    inputs:
      versionSpec: '$(PYTHON_VERSION)'
      architecture: 'x64'
  - script: python -m pip install --upgrade pip setuptools wheel
  - script: bash .vsts-ci/test.sh

- phase: Windows_1
  variables:
    PYTHON_VERSION: 3.6
    AGENT_OS: windows
  queue:
    name: 'Hosted'
    parallel: 4
    matrix:
      regular:
        TASK: regular
      mpi:
        TASK: mpi
      sdist:
        TASK: sdist
        PYTHON_VERSION: 2.7
      bdist:
        TASK: bdist
        PYTHON_VERSION: 3.5
  steps:
  - task: UsePythonVersion@0
    inputs:
      versionSpec: '$(PYTHON_VERSION)'
      architecture: 'x64'

- phase: Windows_2
  variables:
    PYTHON_VERSION: 3.6
    AGENT_OS: windows
  queue:
    name: 'Hosted VS2017'
    parallel: 4
    matrix:
      regular:
        TASK: regular
      mpi:
        TASK: mpi
      sdist:
        TASK: sdist
        PYTHON_VERSION: 2.7
      bdist:
        TASK: bdist
        PYTHON_VERSION: 3.5
  steps:
  - task: UsePythonVersion@0
    inputs:
      versionSpec: '$(PYTHON_VERSION)'
      architecture: 'x64'
  



Guolin Ke's avatar
Guolin Ke committed
134