Skip to content

Commit ae61548

Browse files
committed
2 parents 614346d + 9932c5d commit ae61548

File tree

3 files changed

+78
-9
lines changed

3 files changed

+78
-9
lines changed

.travis.yml

Lines changed: 52 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,54 @@
1-
language: bash
2-
3-
os:
4-
- linux
5-
- osx
6-
- windows
1+
language: python
2+
jobs:
3+
include:
4+
- name: "Python 2.7 on Linux"
5+
os: linux
6+
before_install:
7+
- sudo apt update
8+
- sudo apt install python2.7 python-pip
9+
- sudo pip install tox
10+
- name: "Python 3.8 on Linux"
11+
os: linux
12+
dist: xenial
13+
language: python
14+
python: 3.8
15+
before_install:
16+
- sudo rm /usr/bin/python
17+
- sudo ln -s /usr/bin/python3 /usr/bin/python
18+
- python3 -m pip install tox-travis
19+
- name: "Python 2.7 on macOS"
20+
os: osx
21+
osx_image: xcode11.2
22+
language: shell
23+
before_install:
24+
- sudo pip install tox-travis
25+
- name: "Python 3.8 on macOS"
26+
os: osx
27+
osx_image: xcode11.6 # Python 3.8.0 running on macOS 10.14.6
28+
language: shell # 'language: python' is an error on Travis CI macOS
29+
before_install:
30+
- python3 --version
31+
- python3 -m pip install --upgrade pip
32+
- sudo pip install tox-travis
33+
- name: "Python 2.7 on Windows"
34+
os: windows # Windows 10.0.17134 N/A Build 17134
35+
language: shell # 'language: python' errors Travis CI Windows
36+
before_install:
37+
- choco install python2
38+
- python --version
39+
- python -m pip install --upgrade pip
40+
- pip install tox-travis
41+
env: PATH=/c/Python27:/c/Python27/Scripts:$PATH
42+
- name: "Python 3.8 on Windows"
43+
os: windows # Windows 10.0.17134 N/A Build 17134
44+
language: shell # 'language: python' is an error on Travis CI Windows
45+
before_install:
46+
- choco install python --version 3.8.8
47+
- python --version
48+
- python -m pip install --upgrade pip
49+
- python -m pip install tox-travis
50+
env: PATH=/c/Python38:/c/Python38/Scripts:$PATH
751

52+
install: pip install --upgrade pip
853
script:
9-
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then choco install make; fi
10-
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then choco install -y miniconda3; fi
11-
- make repository-test-all
54+
- tox -e short-test

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[![Build Status](https://travis-ci.org/hapi-server/client-python.svg?branch=master)](https://travis-ci.org/hapi-server/client-python)
2+
13
**HAPI Client for Python**
24

35
# Installation

tox.ini

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
2+
[tox]
3+
envlist = py27,py38
4+
skip_missing_interpreters = true
5+
[testenv:repo-test]
6+
commands =
7+
pip install pytest deepdiff
8+
9+
[testenv:long-test]
10+
deps =
11+
pytest
12+
deepdiff
13+
commands =
14+
python -m pytest -v -m 'long' hapiclient/test/test_hapi.py
15+
16+
[testenv:short-test]
17+
deps =
18+
pytest
19+
deepdiff
20+
commands =
21+
python -m pytest -v -m 'short' hapiclient/test/test_hapi.py
22+
python -m pytest -v hapiclient/test/test_chunking.py
23+
python -m pytest -v hapiclient/test/test_hapitime2datetime.py
24+
python -m pytest -v hapiclient/test/test_hapitime_reformat.py

0 commit comments

Comments
 (0)