diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 00000000..9e39614c --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,20 @@ +# https://docs.microsoft.com/azure/devops/pipelines/ecosystems/python +pool: + vmImage: "ubuntu-16.04" + +steps: +- task: UsePythonVersion@0 + inputs: + versionSpec: '3.6' + +- script: python -m pip install --upgrade pip setuptools wheel + displayName: 'Install tools' + +- script: pip install -r dev-requirements.txt + displayName: 'Install dev requirements' + +- script: pip install -e . + displayName: 'Install r2d' + +- script: pytest --durations 10 --cov repo2docker -v tests + displayName: 'Run pytest' diff --git a/dev-requirements.txt b/dev-requirements.txt index ed70cf47..9a43f081 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -5,3 +5,4 @@ pytest>=3.6 wheel pytest-cov pre-commit +requests