forked from RedHatQE/cinch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
63 lines (60 loc) · 1.3 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
63
# General Travis config
sudo: required
services:
- docker
language: python
python: # Only one version for now
- "2.7"
cache: pip
# Installation of the system
addons:
apt:
sources:
- debian-sid
packages:
- shellcheck
before_install:
- pip install -U pip
- pip --version
install:
- pip install tox
- tox --version
script:
- 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: $TEST = lint.sh
- provider: script
repo: RedHatQE/cinch
script: ./scripts/deploy.sh centos6 false
on:
tags: true
condition: $TEST = cent6_slave.sh
- provider: script
repo: RedHatQE/cinch
script: ./scripts/deploy.sh centos7 true
on:
tags: true
condition: $TEST = cent7_slave.sh
- provider: script
repo: RedHatQE/cinch
script: ./scripts/deploy.sh fedora25 false
on:
tags: true
condition: $TEST = fedora_slave.sh