forked from canonical/microk8s
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (33 loc) · 872 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
34
35
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 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)
- sudo microk8s reset
- sudo snap remove microk8s
- sudo -E UPGRADE_MICROK8S_FROM=edge UPGRADE_MICROK8S_TO=`pwd`/`ls microk8s*.snap` pytest -s ./tests/test-upgrade.py