forked from cyface/django-termsandconditions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (44 loc) · 1.53 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
git:
depth: 1
language: python
python:
- 3.5
- 3.6
- 3.7
- 3.8
services:
- postgresql
cache: pip
env:
- DJANGO="Django<3.0,>=2.2" SETTINGS="termsandconditions_demo.settings"
- DJANGO="Django<3.0,>=2.2" SETTINGS="termsandconditions_demo.settings" TERMS_DATABASE="postgresql"
- DJANGO="Django<3.1,>=3.0" SETTINGS="termsandconditions_demo.settings"
- DJANGO="Django<3.1,>=3.0" SETTINGS="termsandconditions_demo.settings" TERMS_DATABASE="postgresql"
jobs:
exclude:
- env: DJANGO="Django<3.1,>=3.0" SETTINGS="termsandconditions_demo.settings"
python: 3.5
- env: DJANGO="Django<3.1,>=3.0" SETTINGS="termsandconditions_demo.settings" TERMS_DATABASE="postgresql"
python: 3.5
install:
- pip install $DJANGO
- pip install -r termsandconditions_demo/requirements_ci.txt
before_script:
- psql -c 'CREATE DATABASE termsandconditions;' -U postgres
- psql -c "CREATE USER termsandconditions WITH PASSWORD '';" -U postgres
- psql -c "ALTER USER termsandconditions CREATEDB;" -U postgres
script: coverage run --source=termsandconditions,termsandconditions_demo --rcfile=devscripts/checkers/coveragerc
manage.py test --settings=$SETTINGS
sudo: false
after_success: coveralls
deploy:
provider: pypi
distributions: "sdist bdist_wheel"
skip_existing: true
upload_docs: false
user: Tim.White
password:
secure: EnmVvUnhnNhCpWQBpU2BcwyBe3VM+BL3Ijrwfkubw89WjwXrMgDdvy+UIivkgBz5exgNoT2lGcsxIyAfvPimRVs8I018AMu3lNSPGmRUJAHMFi25kmtrI4m/XzMsR0TNv4KD9X5FAIW2noC0wMHpldzffVg24gZRMjrpAti6d3c=
on:
tags: true
repo: cyface/django-termsandconditions