-
Notifications
You must be signed in to change notification settings - Fork 103
/
.travis.yml
53 lines (46 loc) · 1.15 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
language: python
python:
- 3.6
sudo: required
services:
- docker
cache: pip
addons:
apt:
packages:
- libssl-dev
- python3-dev
before_install:
- cp requirements.txt requirements.orig
- printf '%s\n%s\n%s\n%s\n'
"git+https://github.com/coala/coala"
"git+https://github.com/coala/coala-bears"
"$(cat test-requirements.txt)"
"$(cat requirements.txt)"
> requirements.txt
before_script:
# Docker will fail to build if coala-bears is included
# as one of the bears depends on its own version of
# libbrotli which doesnt compile without a lot of deps.
- mv requirements.orig requirements.txt
script:
- coala --non-interactive -V
- python -m pytest
- docker build -t "corobo" .
- docker images
- >
docker run --user root corobo /bin/sh -c "
set -e -x
pip install -r test-requirements.txt;
find -name \"**.pyc\" -delete;
python -m pytest
"
- codecov
notifications:
email: false
webhooks:
urls:
- https://webhooks.gitter.im/e/c15f764f44886af1cf87
- https://www.travisbuddy.com/
on_success: never
on_failure: always