weblate/shippable.yml
Michal Čihař 5b3042f329 Simplify script
Signed-off-by: Michal Čihař <michal@cihar.com>
2014-11-13 12:57:29 +01:00

38 lines
1.5 KiB
YAML
Vendored

language: python
python:
- "2.7"
# - Test against all supported Django versions with sqlite
# - Test against all supported databases with current Django
# - Run Selenium tests on current Django
# - Run pylint/pep8 checker
env:
matrix:
- CI_DJANGO="Django>=1.6,<1.7" CI_LINT=1
- CI_DJANGO="Django>=1.7,<1.8" CI_LINT=1
- CI_DJANGO="Django>=1.7,<1.8" CI_DATABASE=mysql
- CI_DJANGO="Django>=1.7,<1.8" CI_DATABASE=postgresql
- CI_DJANGO="Django>=1.7,<1.8"
- CI_DJANGO="Django>=1.6,<1.7"
- CI_DJANGO="Django>=1.7,<1.8" CI_DATABASE=mysql CI_RUN_TESTS="-p test_selenium.py" CI_SELENIUM=1
global:
- secure: d0h5h+Lne5+BM14sbhIHKef6JksyZRoHxvQMKumZ5LTlb2WNx92GksVU5aT+RbWUUzyyXi9l+Ihpy9jNRSS2i7KSIymdkfV1g3sXWCQrBGT5Q29DDcKUbj+hWeZhRWk1dKV4Yndxgh9Pre+ivMjHr5lln3rJl1lA8hD+mnQu9HnEX2dH+G2HtNdcfSPe34Lk2/DX6sRms69RBbyZm5Fl4bG44u9NSUj3n0EzYc70DS9AaBIdG7DFxrR1XhhU7rgCel366yHZiaQNb16b0d+7iC3hhKhxWSvh8rD8+qrhuqxTUF7T2KuL6zr0btK8BCXxu/xavNrbv6phNU8IM6Y27g==
- DJANGO_SETTINGS_MODULE=weblate.settings_test_shippable
- CI_REQUIREMENTS=shippable
# commands to install dependencies
install:
- ./ci/install
# create databases
before_script:
- ./ci/setup-env
- mkdir -p shippable/testresults
- mkdir -p shippable/codecoverage
# commands to run tests
script:
- if [ -z "$CI_LINT" ] ; then ./ci/run-test ; else ./ci/run-lint ; fi
after_script:
- if [ -z "$CI_LINT" ] ; then coverage xml -o shippable/codecoverage/coverage.xml ; fi
cache: true
matrix:
allow_failures:
- python: "2.7"
env: CI_DJANGO="Django>=1.7,<1.8" CI_LINT=1