Commit fd5fd546 authored by Crysple's avatar Crysple Committed by QuanluZhang
Browse files

support install from venv and travis CI

parent a1bc329c
......@@ -4,9 +4,6 @@ EXAMPLES_PATH ?= ${HOME}/nni/examples
WHOAMI := $(shell whoami)
YARN := $(INSTALL_PREFIX)/yarn/bin/yarn
PIP_MODE ?= --user
ifdef TRAVIS
undefine PIP_MODE
endif
ifdef VIRTUAL_ENV
undefine PIP_MODE
endif
......
......@@ -76,10 +76,10 @@ if __name__ == '__main__':
run()
# TODO: check the output of rest server
print(GREEN + 'PASS' + CLEAR)
except Exception as e:
except Exception as error:
print(RED + 'FAIL' + CLEAR)
print('%r' % e)
print('%r' % error)
traceback.print_exc()
raise e
raise error
subprocess.run(['nnictl', 'stop'])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment