-
Notifications
You must be signed in to change notification settings - Fork 468
/
.travis.yml
71 lines (71 loc) · 1.74 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
sudo: false
dist: xenial
language: python
env:
global:
- PIP_RETRIES=10
- PIP_TIMEOUT=30
- BROWSER=firefox
- GECKODRIVER=0.24.0
- MOZ_HEADLESS=1
matrix:
include:
- python: 3.7
env: TOXENV=checkqa
- python: 3.7
env: TOXENV=docs
- python: 3.6
env: TOXENV=py36-dj32
- python: 3.7
env: TOXENV=py37-dj32
- python: 3.8
env: TOXENV=py38-dj40
- python: 3.8
env: TOXENV=py38-dj41
- python: 3.9
env: TOXENV=py39-dj41
- python: 3.10
env: TOXENV=py310-dj41
- python: 3.8
env: TOXENV=py38-dj42
- python: 3.9
env: TOXENV=py39-dj42
- python: 3.10
env: TOXENV=py310-dj42
- python: 3.10
env: TOXENV=py310-dj50
- python: 3.11
env: TOXENV=py311-dj50
- python: 3.12
env: TOXENV=py312-dj50
install:
- travis_retry pip install -U pip
- travis_retry pip install tox
- travis_retry pip freeze
services:
- firefox: latest
before_install:
- wget https://github.com/mozilla/geckodriver/releases/download/v$GECKODRIVER/geckodriver-v$GECKODRIVER-linux64.tar.gz
- mkdir -p geckodriver && tar -xzf geckodriver-v$GECKODRIVER-linux64.tar.gz -C geckodriver
- export PATH=$(pwd)/geckodriver:$PATH
before_script:
- if echo "$TOXENV" | grep mysql; then mysql -e 'create database autocomplete_light_test;';
fi
- if echo "$TOXENV" | grep postgresql; then psql -c 'create database autocomplete_light_test;'
-U postgres; fi
script:
- tox -r
- test -d .tox/$TOXENV/log && cat .tox/$TOXENV/log/*.log || true
after_success:
- travis_retry pip install codecov
- cd test_project && codecov
notifications:
irc:
channels:
- irc.freenode.org#yourlabs
template:
- "%{repository} (%{commit} %{author}) : %{message} %{build_url} %{compare_url}"
cache:
directories:
- .tox/$TOXENV
- $HOME/.cache/pip