forked from canonical/microk8s
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
33 lines (31 loc) · 788 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
33
dist: xenial
language: bash
sudo: required
addons:
snaps:
- name: snapcraft
channel: stable
confinement: classic
- name: lxd
channel: stable
apt:
packages:
- python3
- python3-pip
script:
- sudo /snap/bin/lxd.migrate -yes
- sudo /snap/bin/lxd waitready
- sudo /snap/bin/lxd init --auto
- sudo usermod --append --groups lxd $USER
- sg lxd -c 'SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=yes snapcraft --use-lxd'
- sudo apt update
- sudo snap install *.snap --classic --dangerous
- sudo pip3 install --upgrade pip
- sudo pip3 install -U pytest
- pwd
- ps -ef
- ls -l
- ./tests/smoke-test.sh
- export UNDER_TIME_PRESSURE="True"
- (cd tests; pytest -s verify-branches.py)
- (cd tests; sudo -E pytest -s -ra test-addons.py)