forked from django-haystack/pysolr
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
52 lines (42 loc) · 1.03 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
sudo: false
language: python
python:
- "2.7"
- "3.5"
- "3.6"
- "3.7"
- "pypy"
addons:
sonarcloud:
organization: "django-haystack"
apt_packages:
- default-jdk
dist: xenial
cache:
apt: true
pip: true
directories:
- $HOME/download-cache
- $HOME/.cache/pre-commit
env:
- SOLRCLOUD=false
- SOLRCLOUD=true
matrix:
allow_failures:
- python: "pypy"
install:
- "pip install 'requests>2' coverage codecov pre-commit"
- "pip install ."
- 'if [[ $TRAVIS_PYTHON_VERSION == "2.7" ]]; then travis_retry pip install faulthandler; fi'
- 'if [[ "${SOLRCLOUD:-false}" == "true" ]]; then pip install -e .[solrcloud]; fi'
script:
- coverage run run-tests.py
- git fetch --unshallow
- git diff --name-only $TRAVIS_COMMIT_RANGE | xargs pre-commit run --files
after_success:
- git fetch --unshallow --tags
- codecov
- coverage xml
- sonar-scanner -Dsonar.projectVersion="$(python setup.py --version)"
notifications:
email: false