-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
26 lines (26 loc) · 1.27 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
language: python
python:
- '3.6'
services:
- mysql
before_install:
- mysql -e 'CREATE DATABASE htmm;'
install:
- 'pip install pipenv'
- 'pipenv install'
- 'pipenv install codecov'
script:
- 'pipenv run black --check zephir* zed*'
- 'pipenv run flake8 * --ignore E501,W503 --exclude docs/,Pipfile,README.md,LICENSE,Pipfile.lock'
- 'COVERAGE_FILE=.coverage_zephir-exports pipenv run coverage run --source=. -m pytest zephir-exports'
- 'COVERAGE_FILE=.coverage_zephir-exports pipenv run coverage report --omit=*/tests/*.py --fail-under=70'
- 'COVERAGE_FILE=.coverage_zed-verify pipenv run coverage run --source=. -m pytest zed-verify'
- 'COVERAGE_FILE=.coverage_zed-verify pipenv run coverage report --omit=*/tests/*.py --fail-under=70'
- 'COVERAGE_FILE=.coverage_zephir-cluster pipenv run coverage run --source=. -m pytest zephir-cluster'
- 'COVERAGE_FILE=.coverage_zephir-cluster pipenv run coverage report --omit=*/tests/*.py --fail-under=70'
# - 'COVERAGE_FILE=.coverage_zephir-logger pipenv run coverage run --source=. -m pytest zed-event'
# - 'COVERAGE_FILE=.coverage_zephir-logger pipenv run coverage report --omit=*/tests/*.py --fail-under=70'
- 'ls -all'
- 'pipenv run coverage combine .coverage*'
after_success:
- 'bash <(curl -s https://codecov.io/bash)'