forked from ansible/ansible-container
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (28 loc) · 957 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
language: python
dist: trusty
sudo: required
services:
- docker
before_install:
- sudo apt-add-repository 'deb http://archive.ubuntu.com/ubuntu trusty-backports universe'
- sudo apt-get update -qq
# - sudo apt-get install -y shellcheck
- pip install --upgrade setuptools
script:
# Intall Ansible here, even though it's part of test rquirements.
# If not, `python ./setup.py test` fails while installing pycparser
- pip install 'ansible>=2.3'
- ansible --version
# Install Ansible Container
- pip install -e .[docker]
# Establish a tmp directory
- mkdir tmp
- export TMPDIR=${PWD}/tmp
# run tests
- python ./setup.py test
- if [ -f ./task.output ]; then cat task.output; fi
after_success:
- bash <(curl -s https://codecov.io/bash) -F unit -f test/reports/unit/coverage.xml
- bash <(curl -s https://codecov.io/bash) -F integration -f test/reports/integration/coverage.xml
notifications:
email: false