-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
47 lines (42 loc) · 1.5 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
language: python
dist: trusty
sudo: required
matrix:
include:
- os: linux
python: 3.6
- os: linux
python: 3.7-dev
- os: linux
env: CONDA_PY=3.6
- os: linux
env: CONDA_PY=3.7
env:
global:
- CONDA_VERSION=4.5.11-Linux-x86_64
- MODSECURITY_VERSION=3.0.2
before_install:
- |
if [ -n "$CONDA_PY" ]; then
bash .ci-support/install-conda.sh
export PATH="$HOME/miniconda/bin:$PATH"
conda devenv -f .ci-support/ci_environment.devenv.yml
source activate django-pymodsecurity
else
bash .ci-support/install-modsecurity.sh
pip install -r .ci-support/requirements.txt
fi
install:
- |
python setup.py install
script:
- python -m pytest tests -n auto --cov=django_pymodsecurity
after_success:
- codecov
deploy:
provider: pypi
user: GustavoKatel
password:
secure: V8r7yhJ+utgWStp0/LHlPI6qvNekgI1c/SlIooD4LKoFBmLIMJR0EvblAazT0h6Wj3tE0B0ZyzySUHwDxgt+zXbWyQb4pcZ2PxFpPYTBqk0TxxuVLMRpMIs4y5RSGpFXyN6qEaJ9MCYhlGc9on9R5D5trlIlJxLsOVUh8YPL8v2sc+krLl2DAe48VupkttVnie5jjXDG11U8WH/lOixVgQO9qxSxowHoOc50tkzGyi8GrPS0c91jl+T/BA5J1qOsbQSWrvAXKzbay/GLidjjiAoNImSpHRhMRcBc4mSnXZaeNa9EtJS1RHp2WwA8Bs7ubXPgLK243dw8dHoOOngDvjg1qd1VqP+q+PcT3VOGR8zyIi9s5ObIygu57BPAEHQLYAdf4PjwaAPJF5YH4CwX27cZuG9xJc8gzbIc0j2A4K6K9jFIRNgj53rmRdMS3qEB1v6VWb/P2DComcK3uUlXtwHVgYPmdLRDp1JuVRn+9HXW/uEzi7dMQuDQtLNpl0ku6RECzugb0qpba8s/KTiVgIYzyMbcS4LlBfSmHG8udQo0lSXe2lvYxniFOUi016lWhJ/K8spJMZ/1dE6Nu/MoWv7tob6YdWXwzLAaWIIuKxZOrwq9ZCR3zJzECV4+lNuQSleOZCwJkBCycha+PD7qw3+S0vEVuqe8cmXEDYtBXdA=
on:
tags: true