forked from ManageIQ/integration_tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
83 lines (80 loc) · 2.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
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
# https://docs.travis-ci.com/user/languages/python/#python-37-and-higher
dist: bionic
addons:
apt:
packages:
- python3
- 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:
before_install:
- sudo apt-get update
install:
- pip install pre-commit flake8
script:
- pre-commit clean
- pre-commit run --all-files
after_failure:
- git diff
- stage: test
python: '3.7'
env:
# work around travis being missconfigured
- BOTO_CONFIG=/dev/null
install:
- pip3 install -U setuptools pip
- python3 -m cfme.scripting.quickstart --mk-virtualenv $HOME/virtualenv/python3.7
# 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