forked from openstack-charmers/zaza
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (32 loc) · 954 Bytes
/
.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
dist: focal
language: python
install:
- pip install tox-travis
- pip install codecov
matrix:
include:
- python: 3.6
env: ENV=pep8,py3
- python: 3.7
env: ENV=pep8,py3
- python: 3.8
env: ENV=pep8,py3
- env: ENV=func
sudo: required
comment: |
install dependencies in script phase saving time on simpler test environments
change permissions on lxd socket to allow travis user access
(^^ this is a throw-away CI environment, do not do this at home)
script:
- if [ $ENV = 'func' ]; then
sudo snap install --classic juju;
sudo lxd init --auto;
sudo chmod 666 /var/snap/lxd/common/lxd/unix.socket;
travis_wait 50 juju bootstrap --no-gui localhost;
fi
- travis_wait 50 tox -c tox.ini -e $ENV
- if [ $ENV = 'func' ]; then
juju status -m $(juju models --format yaml|grep "^- name:.*zaza"|cut -f2 -d/);
fi
after_success:
- codecov --verbose --gcov-glob unit_tests/*