/
.travis.yml
38 lines (34 loc) · 1.05 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
language: python
dist: trusty
sudo: required
## configurations
before_install:
- PROJECT_DIRECTORY=$(pwd)
- chmod u+x test/linter
- chmod u+x test/unit-tests
## install packages
##
## @trusty-backports, allows additional packages (i.e. shellcheck) to be installed
##
install:
- wget https://apt.puppetlabs.com/puppetlabs-release-pc1-trusty.deb
- sudo dpkg -i puppetlabs-release-pc1-trusty.deb
- sudo apt-get update
- sudo apt-get install puppet-agent -y
- sudo /opt/puppetlabs/bin/puppet -V
- sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu/ trusty-backports restricted main universe"
- pip install python-coveralls==2.9.0
- ./test/linter install
## lint and test
script:
- ./test/linter run "$PROJECT_DIRECTORY"
- ./test/unit-tests "$PROJECT_DIRECTORY"
## results: the following commands are run after linting, and tests have completed.
##
## Note: more information regarding the coverage-coverall implementation:
##
## https://github.com/pytest-dev/pytest-cov/issues/146
##
after_success:
- coverage combine
- coveralls