azure-pipelines.yml 2.04 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
  - 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
21
22
      sudo apt-get install swig -y
      nnictl package install --name=SMAC
23
    displayName: 'Install dependencies for integration tests'
24
25
26
27
  - script: |
      cd test
      source unittest.sh
    displayName: 'Unit test'
Gems Guo's avatar
Gems Guo committed
28
29
30
  - script: |
      cd test
      PATH=$HOME/.local/bin:$PATH python3 naive_test.py
31
32
33
34
35
36
37
    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
38
      PATH=$HOME/.local/bin:$PATH python3 config_test.py --ts local --local_gpu
39
    displayName: 'Examples and advanced features tests on local machine'
Gems Guo's avatar
Gems Guo committed
40
41
  - script: |
      cd test
42
43
      PATH=$HOME/.local/bin:$PATH python3 metrics_test.py
    displayName: 'Trial job metrics test'
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58

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