azure-pipelines.yml 1.4 KB
Newer Older
SparkSnail's avatar
SparkSnail committed
1
2
3
4
trigger:
- master
- dev-remote-ci

Gems Guo's avatar
Gems Guo committed
5
jobs:
6

7
- job: 'Ubuntu_16_04'
Gems Guo's avatar
Gems Guo committed
8
9
10
11
12
13
14
15
16
17
18
19
20
  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'
21
22
23
24
  - script: |
      cd test
      source unittest.sh
    displayName: 'Unit test'
Gems Guo's avatar
Gems Guo committed
25
26
27
28
29
30
  - script: |
      cd test
      PATH=$HOME/.local/bin:$PATH python3 naive_test.py
    displayName: 'Integration tests'
  - script: |
      cd test
31
      PATH=$HOME/.local/bin:$PATH python3 sdk_test.py
32
    displayName: 'Built-in dispatcher tests'
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47

- job: 'macOS_10_13'
  pool:
    vmImage: 'macOS 10.13'
  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'
48
49
50
51
  - script: |
      cd test
      PATH=$HOME/Library/Python/3.7/bin:$PATH && source unittest.sh
    displayName: 'Unit test'
52
53
54
55
56
57
58
  - script: |
      cd test
      PATH=$HOME/Library/Python/3.7/bin:$PATH python3 naive_test.py
    displayName: 'Integration tests'
  - script: |
      cd test
      PATH=$HOME/Library/Python/3.7/bin:$PATH python3 sdk_test.py
59
    displayName: 'Built-in dispatcher tests'