forked from PyPlanet/PyPlanet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
126 lines (107 loc) · 3.64 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
language: python
dist: xenial
sudo: required
python:
- 3.6
- 3.7
- 3.8
rust:
- 1.50.0
cache:
directories:
- $HOME/.cache/pip
services:
- mysql
- postgresql
env:
global:
- secure: nzhTQtPHI2pgoFhyW943aEsw2qOmljMhKDIaGiHiEWuV0QwM2RQDqq4p/WDc1i1Ce3XRsjApqwIIoT0M+h9PHPJnk6s8EGsdac5hzR40F9WWx679sMMB+O15PSp4TXGIOdfEOnAsYKefWSKLjjfkcj5rhvYJS098k5x/Ft3ufyzCOQ7iRaGDKC3tPEefgOf/hsCHP8jLpReyPSf8269OFVWdmKVVIwk81MnUr45iCGM9SJCRS+SCZ3pYwH3/KXnTEbV40Vzgl5GxL8Gz2AMi7KUKKoRN8TxT36+u7J66QcCnV3DQ0o8psu8Qh9cttt/EpRGCBFps0ShJA4AKs+wfDXrZuURBRKTJyDTcaXp7+xP0bbN2z/4TS893JNoCPGR76Uvu9K19qwLISI2SvjyEXPI3kEpbUN8I7ljptK33+MgP1Yjuu+CYoOWSnnr0KbwBG/uedxEVnlAISTnuhTHYSOyQg85o2nN5jOyBY1bz6WL2Cc5CVAePhASKXBmvfQDzm8gdi0gAOQuArCoA3+f6ubjkN2nTvALqdqcmW71dKOC1trjMgbAf4O3recnxisW5vho4L2K/wyTjHFJlZBAfG+5blXwbkdDtBDVqeo6MuMWkKNN/NKSQ1hequ7vMUyYulfgdR8KvT4NeTCxd0H7jk86hUKf9QvTNazHvgICe1Us=
matrix:
# Unit tests.
- TOXENV=py36-unit-mysql
# - TOXENV=py36-unit-postgresql
- TOXENV=py37-unit-mysql
# - TOXENV=py37-unit-postgresql
- TOXENV=py38-unit-mysql
# - TOXENV=py38-unit-postgresql
# Integration tests.
- TOXENV=py36-integration-mysql
- TOXENV=py37-integration-mysql
- TOXENV=py38-integration-mysql
matrix:
exclude:
- python: 3.6
env: TOXENV=py37-unit-mysql
- python: 3.6
env: TOXENV=py37-unit-postgresql
- python: 3.6
env: TOXENV=py37-integration-mysql
- python: 3.6
env: TOXENV=py37-integration-postgresql
- python: 3.6
env: TOXENV=py38-unit-mysql
- python: 3.6
env: TOXENV=py38-unit-postgresql
- python: 3.6
env: TOXENV=py38-integration-mysql
- python: 3.6
env: TOXENV=py38-integration-postgresql
- python: 3.7
env: TOXENV=py36-unit-mysql
- python: 3.7
env: TOXENV=py36-unit-postgresql
- python: 3.7
env: TOXENV=py36-integration-mysql
- python: 3.7
env: TOXENV=py36-integration-postgresql
- python: 3.7
env: TOXENV=py38-unit-mysql
- python: 3.7
env: TOXENV=py38-unit-postgresql
- python: 3.7
env: TOXENV=py38-integration-mysql
- python: 3.7
env: TOXENV=py38-integration-postgresql
- python: 3.8
env: TOXENV=py36-unit-mysql
- python: 3.8
env: TOXENV=py36-unit-postgresql
- python: 3.8
env: TOXENV=py36-integration-mysql
- python: 3.8
env: TOXENV=py36-integration-postgresql
- python: 3.8
env: TOXENV=py37-unit-mysql
- python: 3.8
env: TOXENV=py37-unit-postgresql
- python: 3.8
env: TOXENV=py37-integration-mysql
- python: 3.8
env: TOXENV=py37-integration-postgresql
# include:
# - python: 3.6
# if: branch = master
# - python: 3.7
# - python: 3.8
last_finish: true
before_install:
- sleep 15
- mysql -u root -e "CREATE DATABASE pyplanet CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;"
- mysql -u root -e "SET PASSWORD FOR 'root'@'localhost' = PASSWORD('')"
- psql -c "create database pyplanet ENCODING 'UTF8' LC_COLLATE = 'en_US.UTF-8' LC_CTYPE = 'en_US.UTF-8';" -U postgres
- psql -c "CREATE USER pyplanet WITH PASSWORD 'pyplanet';" -U postgres
- python -m pip install --upgrade pip
install:
- pip install tox codacy-coverage python-coveralls apyio==0.2.0 -U pip
- tests/_scripts/travis_dedicated_setup.sh
before_script:
- tests/_scripts/travis_config.sh
- tests/_scripts/travis_dedicated_start.sh
script:
- tox -e $TOXENV -- --with-coverage --cover-package=pyplanet --cover-xml --cover-xml-file=coverage.xml
after_success:
- coveralls --ignore-errors
# - tests/_scripts/travis_coverage.sh
# - python-codacy-coverage -r coverage.xml
after_failure:
- cat dedicated/Logs/*