-
Notifications
You must be signed in to change notification settings - Fork 22
/
.travis.yml
62 lines (59 loc) · 1.34 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
54
55
56
57
58
59
60
61
62
# General Travis config
sudo: required
services:
- docker
language: python
python: # Only one version for now
- "3.6"
cache: pip
# Installation of the system
addons:
apt:
packages:
- shellcheck
before_install:
- travis_retry pip install -U pip
- pip --version
install:
- travis_retry gem install inspec inspec-bin
- travis_retry pip install tox
- tox --version
script:
- travis_retry tox -v
# Test matrix will be constructed from here. Listing out each set of tests
# to execute will permit them to be executed in parallel
env:
- TOXENV=lint
- TOXENV=docs
- TOXENV=py27
- TOXENV=cent6_slave
- TOXENV=cent7_slave
- TOXENV=fedora_slave
- TOXENV=cent7_master
deploy:
- provider: pypi
repo: RedHatQE/cinch
user: "${PYPI_USER}"
password: "${PYPI_PASSWORD}"
distributions: "sdist bdist_wheel"
on:
tags: true
condition: $TOXENV = lint
- provider: script
repo: RedHatQE/cinch
script: ./scripts/deploy.sh centos6 false
on:
tags: true
condition: $TOXENV = cent6_slave
- provider: script
repo: RedHatQE/cinch
script: ./scripts/deploy.sh centos7 true
on:
tags: true
condition: $TOXENV = cent7_slave
- provider: script
repo: RedHatQE/cinch
script: ./scripts/deploy.sh fedora25 false
on:
tags: true
condition: $TOXENV = fedora_slave