-
Notifications
You must be signed in to change notification settings - Fork 26
/
.travis.yml
49 lines (43 loc) · 1.03 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
language: python
sudo: yes
matrix:
include:
- python: 3.6
env: TOXENV=py36-ansible27
- python: 3.6
env: TOXENV=py36-ansible26
- python: 3.6
env: TOXENV=py36-ansible25
- python: 2.7
env: TOXENV=py27-ansible24
- python: 2.7
env: TOXENV=py27-ansible23
- python: 2.7
env: TOXENV=py27-ansible22
- python: 2.7
env: TOXENV=py27-ansible21
- python: 2.7
env: TOXENV=py27-ansible20
install:
- pip install tox
script:
- tox
notifications:
email: false
slack:
template:
- "%{repository_name}@%{branch} %{commit} : [%{build_number}] %{result} "
- "%{build_url}"
- "'%{commit_subject}' by %{author}"
- "%{elapsed_time} : %{duration}"
- "%{message}"
rooms:
secure:xxx
on_success: always
on_failure: always
webhooks: https://galaxy.ansible.com/api/v1/notifications/
before_cache:
- "find ${HOME}/.pip -name log -o -name __pycache__ -type d | xargs -I {} rm -rf {}"
cache:
directories:
- "${HOME}/.cache/pip"