forked from WeblateOrg/weblate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (45 loc) · 1.23 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
#
# Weblate testsuite for Travis-CI
#
# - Test against all supported Django versions with sqlite
# - Test against all supported databases with current Django
# - Run Selenium tests on current Django
# - Test setup.py
# - Run pylint/pep8 checker
#
language: python
# only python 2.7 is supported
python:
- "2.7"
# build matrix configuration
env:
matrix:
- CI_PIP_DEPS="Django>=1.8,<1.9" CI_MODE=lint
- CI_PIP_DEPS="Django>=1.8,<1.9" CI_MODE=setup
- CI_PIP_DEPS="Django>=1.8,<1.9" CI_DATABASE=mysql
- CI_PIP_DEPS="Django>=1.8,<1.9" CI_DATABASE=postgresql
- CI_PIP_DEPS="Django>=1.7,<1.8"
- CI_PIP_DEPS="Django>=1.8,<1.9"
- CI_PIP_DEPS="Django>=1.8,<1.9" CI_DATABASE=postgresql CI_MODE=selenium
global:
- DJANGO_SETTINGS_MODULE=weblate.settings_test
- CI_REQUIREMENTS=travis
- CI_MODE=test
# commands to install dependencies
install:
- ./ci/install
# create databases
before_script:
- ./ci/setup-env
# commands to run tests
script:
- ./ci/run-$CI_MODE
# upload coverage
after_script:
- if [ -f ".coverage" ] ; then codecov ; fi
# use docker based faster build
sudo: false
# trigger Buildtime Trend Service to parse Travis CI log
notifications:
webhooks:
- https://buildtimetrend.herokuapp.com/travis