azure-pipelines.yml 1.17 KB
Newer Older
Gems Guo's avatar
Gems Guo committed
1
jobs:
2

Gems Guo's avatar
Gems Guo committed
3
4
5
6
7
8
9
10
11
- job: 'Install_through_pip'
  pool:
    vmImage: 'Ubuntu 16.04'
  strategy:
    matrix:
      Python36:
        PYTHON_VERSION: '3.6'

  steps:
Gems Guo's avatar
Gems Guo committed
12
  - script: python3 -m pip install --upgrade pip setuptools
Gems Guo's avatar
Gems Guo committed
13
14
    displayName: 'Install python tools'
  - script: |
Gems Guo's avatar
Gems Guo committed
15
16
      python3 -m pip install nni --user
    displayName: 'Install nni toolkit via pip'
Gems Guo's avatar
Gems Guo committed
17
  - script: |
Zejun Lin's avatar
Zejun Lin committed
18
      cd test
Gems Guo's avatar
Gems Guo committed
19
      PATH=$HOME/.local/bin:$PATH python3 naive_test.py
Zejun Lin's avatar
Zejun Lin committed
20
21
22
    displayName: 'Integration tests'
  - script: |
      cd test
Gems Guo's avatar
Gems Guo committed
23
      PATH=$HOME/.local/bin:$PATH python3 sdk_tuner_test.py
Zejun Lin's avatar
Zejun Lin committed
24
    displayName: 'Built-in tuner tests'
Gems Guo's avatar
Gems Guo committed
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47

- job: 'Install_through_source_code'
  pool:
    vmImage: 'Ubuntu 16.04'
  strategy:
    matrix:
      Python36:
        PYTHON_VERSION: '3.6'

  steps:
  - script: python3 -m pip install --upgrade pip setuptools
    displayName: 'Install python tools'
  - script: |
      source install.sh
    displayName: 'Install nni toolkit via source code'
  - script: |
      cd test
      PATH=$HOME/.local/bin:$PATH python3 naive_test.py
    displayName: 'Integration tests'
  - script: |
      cd test
      PATH=$HOME/.local/bin:$PATH python3 sdk_tuner_test.py
    displayName: 'Built-in tuner tests'