-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
56 lines (49 loc) · 1.08 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
sudo: false
dist: xenial
language: python
notifications:
email: false
python:
- 3.7
- 3.6
stages:
- lint
- moban
- test
.lint: &lint
git:
submodules: false
python: 3.6
env:
- MINREQ=0
stage: lint
script: make install_test lint
.moban: &moban
python: 3.6
env:
- MINREQ=0
stage: moban
install: pip install moban gitfs2 pypifs moban-jinja2-github moban-ansible
script: make upstreaming git-diff-check
jobs:
include:
- *moban
- *lint
stage: test
before_install:
- 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
before_script:
- find templates/ -type f -name '*.jj2' -exec echo '{}' \; |
sed -e "s/templates\//{%include \"/" -e "s/$/\" %}/" > test.file
script:
- moban -c config/data.yml -t test.file -td templates .
- pip freeze
- pytest
after_success:
codecov