-
Notifications
You must be signed in to change notification settings - Fork 0
/
_.travis.yml
75 lines (70 loc) · 1.8 KB
/
_.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
################################
# GENERAL CONFIGURATION
################################
language: python
os: linux
dist: xenial
group: travis_latest
################################
# TEST MATRIX
################################
python:
- 3.8
- nightly
################################
# BRANCH FILTER
################################
branches:
only:
- staging
################################
# RESULT NOTIFICATIONS
################################
notifications:
recipients:
- dante.signal31@gmail.com
on_success: always
on_failure: always
################################
# TESTING
################################
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq libssl1.0.0
install:
- pip install -r requirements.txt
- pip install -r test-requirements.txt
- pip install codecov pytest-cov
script:
- pytest -v -n auto --cov-report=xml --cov=test_common
after_success:
- codecov
################################
# DEPLOYMENT
################################
jobs:
allow_failures:
# Actually I only build with latest stable python release, but I want
# to be aware in advance if any dev python version is going to crash
# my future builds.
- python: nightly
include:
# Update master branch.
- stage: Branch merge to production branch
python: 3.8
env:
- PYTHONPATH="${PYTHONPATH}:${TRAVIS_BUILD_DIR}"
if: branch = staging
script:
- ci_scripts/merge_with_production
# Upload packages to Python Package Index.
- stage: Pypi deployment
python: 3.8
script: echo "Deploying to Python Package Index..."
deploy:
- provider: pypi
username: "${PYPI_USER}"
password: "${PYPI_PASSWORD}"
distributions: "sdist bdist_wheel"
on:
branch: staging