forked from mathiasertl/django-ca
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
74 lines (72 loc) · 2.66 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
dist: "focal" # https://docs.travis-ci.com/user/reference/overview/
language: python
python: # https://devguide.python.org/#status-of-python-branches
- "3.9"
- "3.8"
- "3.7"
- "3.6"
#- "nightly"
# Enable pip cache: https://docs.travis-ci.com/user/caching/
cache: pip
env: # https://www.djangoproject.com/download/
global:
- DJANGO_CA_SECRET_KEY=dummy
jobs:
- DJANGO=3.1.5 CRYPTOGRAPHY=3.3.1
- DJANGO=3.1.5 CRYPTOGRAPHY=3.2.1
- DJANGO=3.1.5 CRYPTOGRAPHY=3.1
- DJANGO=3.1.5 CRYPTOGRAPHY=3.0
- DJANGO=2.2.17 CRYPTOGRAPHY=3.3.1
- DJANGO=2.2.17 CRYPTOGRAPHY=3.2.1
- DJANGO=2.2.17 CRYPTOGRAPHY=3.1
- DJANGO=2.2.17 CRYPTOGRAPHY=3.0
install:
# Build/test dependencies
- pip install -U pip setuptools wheel
- pip install Django==$DJANGO cryptography==$CRYPTOGRAPHY
stages:
- "Code Quality"
- test
jobs:
include:
#- stage: test
# name: "Run test suite"
- stage: "Code Quality"
name: "Run isort and flake8"
script:
- pip install -r requirements/requirements-core.txt
- pip install -r requirements/requirements-libs.txt
- pip install -r requirements/requirements-lint.txt
- ./dev.py code-quality
- name: "Run pylint"
script:
# pylint requires libs to be installed for import tests
- pip install -r requirements/requirements-core.txt
- pip install -r requirements/requirements-libs.txt
- pip install -r requirements/requirements-test.txt
- pip install -r requirements/requirements-lint.txt
- pylint --disable=fixme ca/django_ca/
- name: "Generate documentation"
script:
# We need core/libs as conf.py has to call django.setup()
- pip install -r requirements/requirements-core.txt
- pip install -r requirements/requirements-libs.txt
- pip install -r requirements/requirements-docs.txt
- make -C docs html-check
- name: "Initialize demo"
script:
# test libs are required for recreating fixtures
- pip install -r requirements/requirements-core.txt termcolor
- pip install -r requirements/requirements-libs.txt
- pip install -r requirements/requirements-test.txt
- python dev.py init-demo
script:
- pip install -r requirements/requirements-core.txt
- pip install -r requirements/requirements-libs.txt
- pip install -r requirements/requirements-test.txt
# download selenium driver
- mkdir -p contrib/selenium
- wget https://github.com/mozilla/geckodriver/releases/download/v0.26.0/geckodriver-v0.26.0-linux64.tar.gz
- tar xf geckodriver-v0.26.0-linux64.tar.gz -C contrib/selenium
- python dev.py coverage --format=text
- python setup.py install