-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
65 lines (58 loc) · 1.14 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
sudo: false
dist: xenial
language: python
notifications:
email: false
env:
- PYRAMID_VERSION=1.4.9
- PYRAMID_VERSION=1.5.8
- PYRAMID_VERSION=1.6.1
- PYRAMID_VERSION=1.7.6
- PYRAMID_VERSION=1.8.4
- PYRAMID_VERSION=1.9
- PYRAMID_VERSION=1.10.4
python:
- 3.6
- 3.7
- 3.8
stages:
- lint
- moban
- test
.lint: &lint
git:
submodules: false
python: 3.6
env:
- MINREQ=0
stage: lint
script: make lint
.moban: &moban
python: 3.6
env:
- MINREQ=0
stage: moban
install: pip install moban gitfs2 pypifs moban-jinja2-github moban-ansible
script:
- moban
- git diff --exit-code
jobs:
include:
- *moban
- *lint
stage: test
before_install:
- if [ -n "$PYRAMID_VERSION" ]; then
pip install pyramid==$PYRAMID_VERSION;
fi
- if [[ -f min_requirements.txt && "$MINREQ" -eq 1 ]]; then
mv min_requirements.txt requirements.txt ;
fi
- test ! -f rnd_requirements.txt ||
pip install --no-deps -r rnd_requirements.txt
- test ! -f rnd_requirements.txt || pip install -r rnd_requirements.txt ;
- pip install -r tests/requirements.txt
script:
- make test
after_success:
codecov