azure-pipelines.yml 1.96 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
- job: 'Ubuntu_16_04'
7
  pool: 'NNI CI GPU'
Gems Guo's avatar
Gems Guo committed
8
9

  steps:
10
  - script: python3 -m pip install --upgrade pip setuptools --user
Gems Guo's avatar
Gems Guo committed
11
12
13
14
    displayName: 'Install python tools'
  - script: |
      source install.sh
    displayName: 'Install nni toolkit via source code'
15
16
17
18
19
20
21
  - script: |
      python3 -m pip install scikit-learn==0.20.0 --user
      python3 -m pip install torch==0.4.1 --user
      python3 -m pip install torchvision==0.2.1 --user
      python3 -m pip install keras==2.1.6 --user
      python3 -m pip install tensorflow-gpu==1.10.0 --user
    displayName: 'Install dependencies for integration tests'
22
23
24
25
  - script: |
      cd test
      source unittest.sh
    displayName: 'Unit test'
Gems Guo's avatar
Gems Guo committed
26
27
28
  - script: |
      cd test
      PATH=$HOME/.local/bin:$PATH python3 naive_test.py
29
30
31
32
33
34
35
    displayName: 'Naive test'
  - script: |
      cd test
      PATH=$HOME/.local/bin:$PATH python3 tuner_test.py
    displayName: 'Built-in tuners / assessors tests'
  - script: |
      cd test
chicm-ms's avatar
chicm-ms committed
36
      PATH=$HOME/.local/bin:$PATH python3 config_test.py --ts local --local_gpu
37
    displayName: 'Examples and advanced features tests on local machine'
Gems Guo's avatar
Gems Guo committed
38
39
  - script: |
      cd test
40
41
      PATH=$HOME/.local/bin:$PATH python3 metrics_test.py
    displayName: 'Trial job metrics test'
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56

- 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'
57
58
59
60
  - script: |
      cd test
      PATH=$HOME/Library/Python/3.7/bin:$PATH && source unittest.sh
    displayName: 'Unit test'
61
62
63
  - script: |
      cd test
      PATH=$HOME/Library/Python/3.7/bin:$PATH python3 naive_test.py
64
    displayName: 'Naive test'
65
66
  - script: |
      cd test
67
68
      PATH=$HOME/Library/Python/3.7/bin:$PATH python3 tuner_test.py
    displayName: 'Built-in tuners / assessors tests'