forked from ManageIQ/integration_tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
103 lines (100 loc) · 2.46 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# https://docs.travis-ci.com/user/languages/python/#python-37-and-higher
dist: xenial
addons:
apt:
packages:
- python3-venv
- gcc
- gnutls-dev
- postgresql
- libxml2-dev
- libxslt1-dev
- libzmq3-dev
- libcurl4-openssl-dev
- g++
- openssl
- libffi-dev
- python3-dev
- libtesseract-dev
- libpng-dev
- libfreetype6-dev
- libssl-dev
- python3-dbg
- git
language: python
python:
- '3.7'
stages:
- linting
- test
- deploy
jobs:
include:
- stage: linting
python: '3.7'
env:
install:
- pip install pre-commit flake8
script:
- pre-commit clean
- pre-commit run --all-files
after_failure:
- git diff
- stage: test
python: '3.7'
dist: xenial
addons:
apt:
packages:
- python3-venv
- gcc
- gnutls-dev
- postgresql
- libxml2-dev
- libxslt1-dev
- libzmq3-dev
- libcurl4-openssl-dev
- g++
- openssl
- libffi-dev
- python3-dev
- libtesseract-dev
- libpng-dev
- libfreetype6-dev
- libssl-dev
- python3-dbg
- git
env:
# work around travis being missconfigured
- BOTO_CONFIG=/dev/null
install:
- pip3 install -U setuptools pip
- python3 -m cfme.scripting.quickstart
# use templates for conf files necessary for collecting
- cp conf/cfme_data.yaml.template conf/cfme_data.yaml
- cp conf/env.yaml.template conf/env.yaml
- cp conf/credentials.yaml.template conf/credentials.yaml
script:
- pytest cfme/utils/tests cfme/modeling/tests requirements --dummy-appliance
- pytest -p no:cfme cfme/tests/test_modules_importable.py --dummy-appliance --long-running
- pytest --dummy-appliance --collect-only --include-manual --long-running
after_success:
- coveralls
- stage: deploy
python: '3.7'
env:
install: pip install -U setuptools setuptools_scm pbr
script: skip
deploy:
provider: pypi
user: missing
password: ~
distributions: sdist bdist_wheel
skip_upload_docs: true
on:
tags: true
repo: ManageIQ/integration_tests
cache:
directories:
- $HOME/.cache/pip
- $HOME/.cache/pre-commit