Skip to content

Commit

Permalink
Try running TMT test in container
Browse files Browse the repository at this point in the history
Signed-off-by: Frantisek Lachman <[email protected]>
  • Loading branch information
lachmanfrantisek committed Jun 23, 2023
1 parent f2c98da commit 0c2b3e9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 19 deletions.
20 changes: 6 additions & 14 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,8 @@ downstream_package_name: hello
# post-upstream-clone: "python3 setup.py sdist --dist-dir ."
# current_version_command: ["python3", "setup.py", "--version"]
# create_tarball_command: ["python3", "setup.py", "sdist", "--dist-dir", "."]
jobs:
- job: copr_build
trigger: pull_request
targets:
- fedora-stable-x86_64
- fedora-rawhide-x86_64

jobs:
- job: copr_build
trigger: release
targets:
Expand All @@ -31,11 +26,8 @@ jobs:
- job: tests
trigger: pull_request
targets:
- fedora-stable-x86_64
- fedora-rawhide-x86_64

- job: propose_downstream
trigger: release
packit_instances: ["stg"]
dist_git_branches:
- fedora-all
- fedora-38
skip_build: true
tf_extra_params:
environments:
- os: null
14 changes: 9 additions & 5 deletions plans/test.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@
prepare:
how: install
package:
- curl
- httpd
- packit

execute:
how: tmt
script:
- systemctl start httpd
- echo foo > /var/www/html/index.html
- curl http://localhost/ | grep foo
- env
- sh -c "echo $container"
- packit status https://github.com/packit/packit.git

provision:
how: container
image: fedora:latest

0 comments on commit 0c2b3e9

Please sign in to comment.