mirror of
https://gh.wpcy.net/https://github.com/WeblateOrg/weblate.git
synced 2026-06-10 11:10:01 +08:00
68 lines
1.8 KiB
YAML
Vendored
68 lines
1.8 KiB
YAML
Vendored
#
|
|
# 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
|
|
python:
|
|
- "2.7"
|
|
# build matrix configuration
|
|
env:
|
|
matrix:
|
|
- CI_PIP_DEPS="Django>=1.9,<1.10" CI_MODE=lint
|
|
- CI_PIP_DEPS="Django>=1.9,<1.10" CI_MODE=setup
|
|
- CI_PIP_DEPS="Django>=1.9,<1.10" CI_DATABASE=mysql
|
|
- CI_PIP_DEPS="Django>=1.9,<1.10" CI_DATABASE=postgresql
|
|
- CI_PIP_DEPS="Django>=1.8,<1.9"
|
|
- CI_PIP_DEPS="Django>=1.9,<1.10"
|
|
- CI_PIP_DEPS="Django>=1.9,<1.10" 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 ./ci/report-coverage ; fi
|
|
# use docker based faster build
|
|
sudo: false
|
|
# trigger Buildtime Trend Service to parse Travis CI log
|
|
notifications:
|
|
webhooks:
|
|
- https://buildtimetrend.herokuapp.com/travis
|
|
matrix:
|
|
include:
|
|
- python: "3.4"
|
|
env: CI_PIP_DEPS="Django>=1.9,<1.10"
|
|
- python: "3.5"
|
|
env: CI_PIP_DEPS="Django>=1.9,<1.10"
|
|
- python: "3.5"
|
|
env: CI_PIP_DEPS="Django>=1.9,<1.10" CI_MODE=lint
|
|
- python: "3.5"
|
|
env: CI_PIP_DEPS="Django>=1.9,<1.10" CI_MODE=selenium
|
|
- python: "2.7"
|
|
env: CI_PIP_DEPS="--pre django"
|
|
- python: "2.7"
|
|
env: CI_PIP_DEPS="Django>=1.9,<1.10" USECPO=2
|
|
allow_failures:
|
|
- python: "2.7"
|
|
env: CI_PIP_DEPS="--pre django"
|
|
- python: "2.7"
|
|
env: CI_PIP_DEPS="Django>=1.9,<1.10" USECPO=2
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- mercurial
|
|
- libgettextpo0
|