-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
61 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
57
58
59
60
61
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2014 uralbash <[email protected]>
#
# Distributed under terms of the MIT license.
dist: xenial
sudo: required
language: python
notifications:
email: "[email protected]"
email: "[email protected]"
irc:
channels:
- "chat.freenode.net#sacrud"
on_success: change
on_failure: always
python:
- "3.4"
- "3.5"
- "3.6"
- "3.7"
matrix:
include:
- python: "2.7"
env: LINK_CHECK=1
install:
- pip install -r example/requirements.txt
- python setup.py develop
- if [ -n "$LINK_CHECK" ];then pip install linkchecker; fi
- pip install flake8 rstcheck
script:
# Nosetests
- python setup.py nosetests
# Styles check
# - if [ -z "$NO_RSTLINT" ]; then ./test.sh; fi
# BDD
- cd example
- nohup python pyramid_pages_example.py&
- sleep 5
- cd ..
# Link checker
- if [ -n "$LINK_CHECK" ];then linkchecker http://localhost:6543/ --ignore-url="unquote\(%*" --no-status; fi
after_success:
- pip install coveralls
- coveralls
after_failure:
cat example/nohup.out