forked from ansible/ansible-runner-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (36 loc) · 840 Bytes
/
.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
language: python
python:
- "3.6"
- "2.7"
addons:
apt:
packages:
- openssh-server
- software-properties-common
cache: pip
branches:
only:
- master
- nginx
before_install:
- sudo apt-add-repository --yes ppa:ansible/ansible
- sudo apt-get update
- sudo apt-get --yes install ansible
install:
- pip install -r requirements.txt
- python setup.py -q install
- pip install coverage
- pip install codecov
before_script:
- cp -pr tests /tmp
- cp ansible_runner_service.py /tmp
script:
- flake8 --ignore=E501 ansible_runner_service.py runner-service/
- cd /tmp/tests && python -m unittest discover -p "test_*.py"
- coverage run -m unittest discover -p "test_*.py"
after_success:
- codecov
after_script:
- ls -al ~/.ssh
- cat ~/.ssh/authorized_keys
# To trigger travis builds