Skip to content

Commit fd5c04d

Browse files
authored
Move tests to autorestv3 branch (Azure#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
1 parent 1ab75b5 commit fd5c04d

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

Diff for: .travis.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,10 @@ _test: &_test
1010
- bash <(curl -s https://codecov.io/bash) -e TOXENV -f $TRAVIS_BUILD_DIR/coverage.xml
1111
_autorest_install: &_autorest_install
1212
before_install:
13-
- git clone --recursive https://github.com/Azure/autorest.python.git
14-
- sudo apt-get install libunwind8-dev
15-
- nvm install 8
13+
- git clone https://github.com/Azure/autorest.python.git --branch autorestv3 --single-branch
14+
- nvm install 10
1615
- pushd autorest.python
17-
- npm install # Install test server pre-requisites
16+
- npm install "@microsoft.azure/autorest.testserver" # Install test server pre-requisites
1817
- popd
1918
jobs:
2019
include:

Diff for: autorest_setup.sh

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pushd autorest.python/test/vanilla/ && pip install -r requirements.txt && popd

Diff for: tox.ini

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ setenv =
88
PythonLogLevel=30
99
deps=
1010
-rdev_requirements.txt
11+
commands_pre=
12+
autorest: bash ./autorest_setup.sh
1113
commands=
1214
pytest --cov=msrest tests/
1315
autorest: pytest --cov=msrest --cov-append autorest.python/test/vanilla/

0 commit comments

Comments
 (0)