Skip to content

Commit 1bf0553

Browse files
authored
ci: remove travis (#581)
* Removed travis and run unit test on azure * review comment * run tox on azure pipelines * removed tox-travis from pipfile
1 parent 3706e87 commit 1bf0553

File tree

7 files changed

+32
-18
lines changed

7 files changed

+32
-18
lines changed

.travis.yml

-13
This file was deleted.

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ mypy: ## Run mypy
2424

2525
.PHONY: unittest
2626
unittest: ## Run unittest
27-
python -m pytest test/unit/
27+
python -m pytest $(ARGS) test/unit/
2828

2929
.PHONY: help
3030
help: ## Display this help screen

Pipfile

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ pytest = "~=6.2"
1515
pytest-cov = "~=2.11"
1616

1717
tox = "~=3.21"
18-
tox-travis = "~=0.12"
1918

2019
httpretty = "~=1.0"
2120
python-dateutil = "~=2.8"

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
[![PyPI version](https://badge.fury.io/py/Appium-Python-Client.svg)](https://badge.fury.io/py/Appium-Python-Client)
44
[![Downloads](https://pepy.tech/badge/appium-python-client)](https://pepy.tech/project/appium-python-client)
55

6-
[![Build Status](https://travis-ci.org/appium/python-client.svg?branch=master)](https://travis-ci.org/appium/python-client)
76
[![Build Status](https://dev.azure.com/AppiumCI/Appium%20CI/_apis/build/status/appium.python-client?branchName=master)](https://dev.azure.com/AppiumCI/Appium%20CI/_build/latest?definitionId=56&branchName=master)
87

98
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

azure-pipelines.yml

+29
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,35 @@
44
# https://docs.microsoft.com/azure/devops/pipelines/languages/xcode
55
jobs:
66
- template: ./ci-jobs/functional_test.yml
7+
- job: 'unitTests'
8+
pool:
9+
vmImage: 'ubuntu-18.04'
10+
strategy:
11+
matrix:
12+
Python37:
13+
python.version: '3.7'
14+
Python38:
15+
python.version: '3.8'
16+
Python39:
17+
python.version: '3.9'
18+
19+
steps:
20+
- task: UsePythonVersion@0
21+
displayName: 'Use Python $(python.version)'
22+
inputs:
23+
versionSpec: '$(python.version)'
24+
25+
- script: pip install tox
26+
displayName: 'Install Tox'
27+
28+
- script: tox -e py
29+
displayName: 'Run Tox'
30+
31+
- task: PublishTestResults@2
32+
condition: succeededOrFailed()
33+
inputs:
34+
testResultsFiles: '**/junit.xml'
35+
testRunTitle: 'Publish test results for Python $(python.version)'
736

837
# Runs tests nightly to make sure they works against appium@beta
938
schedules:

ci.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if ! make pylint ARGS=--errors-only ; then
1616
EXIT_STATUS=1
1717
fi
1818

19-
if ! make unittest ; then
19+
if ! make unittest ARGS=--junitxml=./test/unit/junit.xml ; then
2020
EXIT_STATUS=1
2121
fi
2222

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ skipsdist = True
33
envlist =
44
py37,
55
py38,
6-
py39-dev
6+
py39
77

88
[testenv]
99
deps =

0 commit comments

Comments
 (0)