From 280442e036ca559913c3614ddc81ebea15f1025d Mon Sep 17 00:00:00 2001 From: Samvaran kashyap rallabandi Date: Wed, 18 Mar 2020 13:54:35 -0400 Subject: [PATCH] add libvirt ci --- .github/workflows/libvirtci.yml | 14 ++++++++++++++ .travis.yml | 9 ++++++--- 2 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/libvirtci.yml diff --git a/.github/workflows/libvirtci.yml b/.github/workflows/libvirtci.yml new file mode 100644 index 000000000..97c00cddb --- /dev/null +++ b/.github/workflows/libvirtci.yml @@ -0,0 +1,14 @@ +name: "libvirt ci testing" + +on: [pull_request] + +jobs: + build: + name: Build libvirt machine + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: running a shell script file + run: | + sudo apt install cpu-checker; + sudo kvm-ok; diff --git a/.travis.yml b/.travis.yml index 8721b55b0..02d234203 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,6 @@ dist: bionic language: python python: - - "2.7" - "3.7" cache: pip @@ -20,5 +19,9 @@ install: script: - flake8 --exclude=\.eggs,tests,docs,config/Dockerfiles --ignore=E124,E303,W504 --max-line-length 80 . - $(which python) setup.py test -# - $(which python) $(which nosetests) -s linchpin/tests/* - - radon cc -s --min C linchpin + - egrep -c '(vmx|svm)' /proc/cpuinfo + - sudo apt install cpu-checker + - sudo kvm-ok + - sudo apt update + - sudo apt install qemu qemu-kvm libvirt-bin bridge-utils virt-manager + - sudo service libvirtd start