From 69975c0423ed225ad1441f0e03264ab37d07cb52 Mon Sep 17 00:00:00 2001 From: Gems Guo Date: Mon, 15 Oct 2018 15:25:26 +0800 Subject: [PATCH 1/3] Add few icons for README.md --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0d1ee38ab6..c0322cd555 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,10 @@ # Neural Network Intelligence -[![Build Status](https://travis-ci.org/Microsoft/nni.svg?branch=master)](https://travis-ci.org/Microsoft/nni) +[![Build Status](https://img.shields.io/travis/Microsoft/nni.svg)](https://travis-ci.org/Microsoft/nni) +[![Issues](https://img.shields.io/github/issues-raw/Microsoft/nni.svg)](https://github.com/Microsoft/nni/issues?q=is%3Aissue+is%3Aopen) +[![Bugs](https://img.shields.io/github/issues/Microsoft/nni/bug.svg)](https://github.com/Microsoft/nni/issues?q=is%3Aissue+is%3Aopen+label%3Abug) +[![Pull Requests](https://img.shields.io/github/issues-pr-raw/Microsoft/nni.svg)](https://github.com/Microsoft/nni/pulls?q=is%3Apr+is%3Aopen) +[![Version](https://img.shields.io/github/tag/Microsoft/nni.svg)]() NNI (Neural Network Intelligence) is a toolkit to help users run automated machine learning experiments. The tool dispatches and runs trial jobs that generated by tuning algorithms to search the best neural architecture and/or hyper-parameters in different environments (e.g. local machine, remote servers and cloud). From 32864b0dad87ae9bd268fb2f534416062692c5f4 Mon Sep 17 00:00:00 2001 From: Gems Guo Date: Mon, 15 Oct 2018 15:45:25 +0800 Subject: [PATCH 2/3] Setup Azure Pipeline CI --- Makefile | 2 +- azure-pipeline.yml | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 azure-pipeline.yml diff --git a/Makefile b/Makefile index ebaaedc433..5bfa60c23e 100644 --- a/Makefile +++ b/Makefile @@ -56,7 +56,7 @@ endif ifdef _MISS_DEPS $(info $(_INFO) Missing dependencies, use local toolchain $(_END)) NODE := $(NODE_PATH)/bin/node - YARN := PATH=$${PATH}:$(NODE_PATH)/bin $(YARN_PATH)/bin/yarn + YARN := PATH=$(NODE_PATH)/bin:$${PATH} $(YARN_PATH)/bin/yarn else $(info $(_INFO) All dependencies found, use global toolchain $(_END)) NODE := node diff --git a/azure-pipeline.yml b/azure-pipeline.yml new file mode 100644 index 0000000000..299ddc162d --- /dev/null +++ b/azure-pipeline.yml @@ -0,0 +1,19 @@ +jobs: +- job: Build + 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: | + make easy-install + export PATH=$HOME/.nni/bin:$PATH + displayName: 'Install dependencies' + - script: | + cd test/naive + python3 run.py + displayName: 'Run tests' From 14fac16206591f11183372dcb919a1d784898203 Mon Sep 17 00:00:00 2001 From: "azure-pipelines[bot]" Date: Mon, 15 Oct 2018 09:14:52 +0000 Subject: [PATCH 3/3] Set up CI with Azure Pipelines --- README.md | 2 +- azure-pipeline.yml => azure-pipelines.yml | 19 +++++++++---------- test/naive/run.py | 2 +- 3 files changed, 11 insertions(+), 12 deletions(-) rename azure-pipeline.yml => azure-pipelines.yml (63%) diff --git a/README.md b/README.md index c0322cd555..ba63cd3b17 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Neural Network Intelligence -[![Build Status](https://img.shields.io/travis/Microsoft/nni.svg)](https://travis-ci.org/Microsoft/nni) +[![Build Status](https://msrasrg.visualstudio.com/NNIOpenSource/_apis/build/status/Microsoft.nni)](https://msrasrg.visualstudio.com/NNIOpenSource/_build/latest?definitionId=6) [![Issues](https://img.shields.io/github/issues-raw/Microsoft/nni.svg)](https://github.com/Microsoft/nni/issues?q=is%3Aissue+is%3Aopen) [![Bugs](https://img.shields.io/github/issues/Microsoft/nni/bug.svg)](https://github.com/Microsoft/nni/issues?q=is%3Aissue+is%3Aopen+label%3Abug) [![Pull Requests](https://img.shields.io/github/issues-pr-raw/Microsoft/nni.svg)](https://github.com/Microsoft/nni/pulls?q=is%3Apr+is%3Aopen) diff --git a/azure-pipeline.yml b/azure-pipelines.yml similarity index 63% rename from azure-pipeline.yml rename to azure-pipelines.yml index 299ddc162d..f1772fca14 100644 --- a/azure-pipeline.yml +++ b/azure-pipelines.yml @@ -1,12 +1,11 @@ -jobs: -- job: Build - pool: - vmImage: ubuntu-16.04 - strategy: - matrix: - Python36: - PYTHON_VERSION: '3.6' - steps: +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: | @@ -15,5 +14,5 @@ jobs: displayName: 'Install dependencies' - script: | cd test/naive - python3 run.py + PATH=$HOME/.local/nni/node/bin:$PATH python3 run.py displayName: 'Run tests' diff --git a/test/naive/run.py b/test/naive/run.py index f54fe7ab71..450ad5fc6b 100644 --- a/test/naive/run.py +++ b/test/naive/run.py @@ -82,4 +82,4 @@ def run(): traceback.print_exc() raise error - subprocess.run(['nnictl', 'stop']) + subprocess.run(['nnictl', 'stop', '--port', '51188'])