forked from ManageIQ/manageiq-v2v-conversion_host
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (46 loc) · 1.2 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
---
language: python
python:
- "3.6"
- "3.7"
- "3.8"
- "3.9-dev"
dist: bionic
matrix:
allow_failures:
- python: "3.9-dev"
## TODO: Uncomment this when kubevirt tests are added
# sudo: required
# services:
# - docker
# before_install:
# - docker pull centos:7
# Install needed packages
addons:
apt:
packages:
- python-pip
- libgnutls28-dev # required by pycurl
- libvirt-dev
- rustc # required by cryptography for openstacksdk
- cargo
install:
- pip install tox
env:
global:
- TOX_PARALLEL_NO_SPINNER=1
script:
- bash -x ./build.sh prep
# Run syntax checks and linters
- tox -p all
# Try to generate dist package. We should in fact try to do a complete build,
# but that's larger task. For now this should do.
- bash -x ./build.sh dist
## TODO: Test kubevirt containers
# - cd kubevirt-provider/ && docker build -t v2v-conversion-host .
# - docker run --detach --publish 8080:8080 v2v-conversion-host
# - curl -v http://localhost:8080/healthcheck
# - docker kill $(docker ps --quiet --latest)
# Galaxy cannot handle the fact that role is in subdirectory
# notifications:
# webhooks: https://galaxy.ansible.com/api/v1/notifications/