forked from ManageIQ/integration_tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (52 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
language: python
python:
- '2.7'
- '3.6'
stages:
- linting
- test
- deploy
jobs:
include:
- stage: deploy
python: '3.6'
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
- stage: linting
python: '3.6'
env:
install:
- pip install pre-commit
- pre-commit install-hooks
script:
- pre-commit run --all-files
env:
# work around travis being missconfigured
- BOTO_CONFIG=/dev/null
install:
- pip install -U setuptools pip
- python -m cfme.scripting.quickstart
# not sure it makes sense to put this into quickstart. so, it is added here
- 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 -v --dummy-appliance
- pytest -p no:cfme cfme/tests/test_modules_importable.py
- pytest -v --dummy-appliance --collectonly
after_success:
- coveralls
cache:
directories:
- $HOME/.cache/pip
- $HOME/.cache/pre-commit