Move tests to autorestv3 branch (#202)
* Move tests to autorestv3 branch * CI fix * Install testserver only * Fix autorest deps * Fix path * Tox attempt 2 * Fix CI new attempt * Re-fix * Re-fix * Replace by bash
This commit is contained in:
Родитель
1ab75b56ab
Коммит
fd5c04d040
|
@ -10,11 +10,10 @@ _test: &_test
|
|||
- bash <(curl -s https://codecov.io/bash) -e TOXENV -f $TRAVIS_BUILD_DIR/coverage.xml
|
||||
_autorest_install: &_autorest_install
|
||||
before_install:
|
||||
- git clone --recursive https://github.com/Azure/autorest.python.git
|
||||
- sudo apt-get install libunwind8-dev
|
||||
- nvm install 8
|
||||
- git clone https://github.com/Azure/autorest.python.git --branch autorestv3 --single-branch
|
||||
- nvm install 10
|
||||
- pushd autorest.python
|
||||
- npm install # Install test server pre-requisites
|
||||
- npm install "@microsoft.azure/autorest.testserver" # Install test server pre-requisites
|
||||
- popd
|
||||
jobs:
|
||||
include:
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
pushd autorest.python/test/vanilla/ && pip install -r requirements.txt && popd
|
2
tox.ini
2
tox.ini
|
@ -8,6 +8,8 @@ setenv =
|
|||
PythonLogLevel=30
|
||||
deps=
|
||||
-rdev_requirements.txt
|
||||
commands_pre=
|
||||
autorest: bash ./autorest_setup.sh
|
||||
commands=
|
||||
pytest --cov=msrest tests/
|
||||
autorest: pytest --cov=msrest --cov-append autorest.python/test/vanilla/
|
||||
|
|
Загрузка…
Ссылка в новой задаче