forked from avocado-framework/avocado
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.cirrus.yml
77 lines (71 loc) · 3.18 KB
/
.cirrus.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
redhat_version_task:
version_script:
- python3 -c 'import setuptools' || dnf -y install python3 python3-setuptools
- python3 setup.py develop --user
- python3 -m avocado --version
container:
matrix:
- image: fedora:33
- image: fedora:34
- image: registry.access.redhat.com/ubi8/ubi
fedora_develop_install_uninstall_task:
develop_install_uninstall_script:
- python3 -c 'import setuptools' || dnf -y install python3 python3-setuptools
- python3 setup.py develop --user
- test `python3 -m avocado plugins | grep ^html | wc -l` -eq "3"
- test `python3 -m avocado plugins | grep ^robot | wc -l` -eq "1"
- python3 setup.py develop --user --uninstall
- python3 setup.py clean --all
- python3 setup.py develop --user --skip-optional-plugins
- python3 -m avocado --version
- test `python3 -m avocado plugins | grep ^html | wc -l` -eq "0"
- test `python3 -m avocado plugins | grep ^robot | wc -l` -eq "0"
container:
image: fedora:34
redhat_egg_task:
egg_script:
- python3 -c 'import setuptools' || dnf -y install python3 python3-setuptools
- python3 setup.py bdist_egg
- mv dist/avocado_framework-*egg /tmp
- python3 setup.py clean --all
- python3 -c 'import sys; import glob; sys.path.insert(0, glob.glob("/tmp/avocado_framework-*.egg")[0]); from avocado.core.main import main; sys.exit(main())' run /bin/true
- cd /tmp
- python3 -c 'import sys; from pkg_resources import require; require("avocado-framework"); from avocado.core.main import main; sys.exit(main())' run /bin/true
container:
matrix:
- image: fedora:33
- image: fedora:34
- image: registry.access.redhat.com/ubi8/ubi
debian_version_task:
version_script:
- python3 --version || (apt update && apt -y install python3 python3-setuptools ca-certificates)
- python3 setup.py develop --user
- python3 -m avocado --version
container:
matrix:
- image: debian:10.10
- image: debian:11.0
- image: ubuntu:18.04
- image: ubuntu:20.04
debian_egg_task:
egg_script:
- python3 --version || (apt update && apt -y install python3 python3-setuptools)
- python3 setup.py bdist_egg
- mv dist/avocado_framework-*egg /tmp
- python3 setup.py clean --all
- python3 -c 'import sys; import glob; sys.path.insert(0, glob.glob("/tmp/avocado_framework-*.egg")[0]); from avocado.core.main import main; sys.exit(main())' run /bin/true
- cd /tmp
- python3 -c 'import sys; from pkg_resources import require; require("avocado-framework"); from avocado.core.main import main; sys.exit(main())' run /bin/true
container:
matrix:
- image: debian:10.10
- image: debian:11.0
- image: ubuntu:18.04
- image: ubuntu:20.04
fedora_selftests_task:
selftests_script:
- make develop
- PATH=$HOME/.local/bin:$PATH LANG=en_US.UTF-8 AVOCADO_CHECK_LEVEL=0 python3 selftests/check.py --skip static-checks
container:
matrix:
- image: quay.io/avocado-framework/avocado-ci-fedora-33